Access Token
Request an access token with the client ID and secret Stafflion issued for the environment. Send the token as a Bearer token on every other request. The token lasts 24 hours.
Request
This endpoint expects an object.
client_id
Partner unique client ID.
audience
Target API audience. Staging: https://staging.stafflion.com/api/v1. Production: https://app.stafflion.com/api/v1.
grant_type
Must be client_credentials.
client_secret
Partner unique client secret.
Response
OK
expires_in
Token lifetime in seconds. 86400 = 24 hours.
token_type
Always Bearer.
access_token
JWT. Send as Authorization: Bearer <access_token>.
Errors
401
Unauthorized Error
422
Unprocessable Entity Error