Get OAuth2 token

Beta

Gets a new short-lived token using the specified client credentials

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
grant_type"client_credentials"Required
The type of grant being requested
client_idstringOptional
The client identifier
client_secretstringOptionalformat: "password"
The client secret

Response

Access token response
access_tokenstring
The access token
token_typestring

The type of token (typically “Bearer”)

expires_ininteger
Lifetime of the access token in seconds
refresh_expires_ininteger
Lifetime of the refresh token
not-before-policyinteger
Enforce that a token cannot be used before a specific unixtime
scopestring
The scope of the access token

Errors

400
Bad Request Error
401
Unauthorized Error