Get OAuth Token

Beta

Exchange credentials for an access token. Supports client_credentials grant type.

Headers

X-Api-KeystringRequired
API key for authentication
X-API-VersionenumOptional

API version to use (optional, defaults to latest)

Allowed values:

Request

OAuth 2.0 parameters
grant_typeenumRequired

Grant type for the request. Must be ‘client_credentials’.

Allowed values:
client_idstringRequired
The client ID issued to the client.
client_secretstringRequired
The client secret issued to the client.
scopestringOptional
The scope of the access request.

Response

Successful token response
access_tokenstring
The access token.
token_typestring

The type of the token (e.g., Bearer).

expires_ininteger
The lifetime in seconds of the access token.
scopestring
The scope of the access token.

Errors

400
Bad Request Error
401
Unauthorized Error