Skip to content

Administrator Token

  1. To obtain an access token, you need to send a POST request to the API login endpoint. The default login endpoint is /api/auth/login.
  2. After sending the login request, you will receive a response from the server. The access token will be included in the response as access_token. This token will be used to authenticate subsequent requests to the Toolzz Platform APIs.
  3. To access protected endpoints in the APIs, you must include the access token in the authorization header of your requests. The header must be configured as follows: Authorization: Bearer YOUR_TOKEN_HERE.
  4. Now that you have a valid access token, you can use it to make requests to the API endpoints that provide access to the data and functionalities of your linked institution.
Terminal window
curl --request POST \
--url https://kong.api.toolzz.com.br/api/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "admin@institution.com",
"institution_code": "subdomain-name",
"password": "your_password"
}
'
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
ParameterTypeDescriptionRequired
emailStringEmail of the administrator account.Yes
institution_codeStringSubdomain or code of the institution.Yes
passwordStringPassword for the account.Yes

KeyTypeDescription
access_tokenStringJWT Access token used for authentication in protected endpoints.