Request an access token
Exchange your client ID and client secret for an OAuth2 access token using the client-credentials grant. Send the credentials with HTTP Basic authentication and the form fields as application/x-www-form-urlencoded.
Authorizations
Your client ID and client secret, sent as HTTP Basic credentials.
Body
Must be client_credentials.
client_credentials Space-delimited list of scopes to request. Required — there are no default scopes. Must be a subset of the scopes provisioned on your client.
"decisions:create"
Space-delimited list of audiences — the service instances the token may call. Each audience is the instance name only, not its full hostname (for example, my-lovely-specter-42, not my-lovely-specter-42.eu1.on-hellgate.cloud). Required — there is no default audience. Must be within the audiences provisioned on your client. The target service validates the token's aud claim on each request.
"my-lovely-specter-42"
Response
The access token was issued.
The signed JWT to send as a bearer token on API requests.
Always bearer.
"bearer"
Seconds until the token expires. Tokens are valid for 30 minutes.
1800
The scopes granted on the token.
"decisions:create"