Issue an access token

Preview

Exchange client credentials for a short-lived bearer access token (OAuth 2.0 client_credentials grant). There is no refresh token; request a new token when the current one expires.

Request

This endpoint expects an object.
grant_typeenumRequired
client_idstringRequired
client_secretstringRequired
scopestringOptional

Space-delimited scopes. Defaults to all scopes granted to the client.

Response

Token issued.
access_tokenstring

A short-lived RS256 bearer JWT.

token_typeenum
expires_ininteger
Seconds until the token expires.
scopestringOptional

Errors

400
Bad Request Error
401
Unauthorized Error
429
Too Many Requests Error