Skip to main content

Authorization

Authorization

To authorize your application and make further API requests, you need to obtain an API token first.

To register a new account, please contact admin@brownbook.net to provide the necessary credentials for accessing our API. Upon successful registration, we will send you an email with your newly generated username and password.

To authorize your app, make an API request using your email and password.

Example:

curl --request POST \
--url /access-token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data email=testerT0@example.com \
--data password=qwerty

Response:

{
"message": "Access token has been generated",
"data": {
"token": "eyJpdiI6Ijl5T29nMFF5SEFibXhIUXNTYjFyU2c9PSIsInZhbHVlIjo"
}
}