Obtain Access Token
POST/api/v1/authentication/login
Obtains an access token for a client using x-client-id and x-api-key headers. The token must be included in the Authorization: Bearer [token] header of all subsequent API requests. The access token is typically valid for 30 minutes.
Request
Responses
- 200
- 400
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
access_token Access Tokenrequired
The access token provided for client authentication.
token_type Token Typerequired
The type of the token.
{
"access_token": "string",
"token_type": "string"
}
Bad request
- application/json
- Schema
- Incorrect headers
- Incorrect client data
- Inactive company
Schema
- any
{
"detail": "Incorrect headers. Check x-client-id and x-api-key."
}
{
"detail": "Incorrect client data."
}
{
"detail": "Inactive company."
}
Loading...