Skip to main content
POST
Get Token
We currently support one OAuth2 grant type: Client Credentials.

Client Credentials

You can exchange your client_id and client_secret for an access token directly.

Headers

Content-type
string
default:application/x-www-form-urlencoded

Body

application/x-www-form-urlencoded
grant_type
string
default:client_credentials
required

We currently only support client_credentials grant type.

client_id
string

Client ID that was supplied to you with your credentials

client_secret
string

Client Secret that was provided to you with your credentials

scope
string

Currently in closed Beta for select customers. Optional. Space-separated list of scopes to request. If omitted, defaults to apiv2 which grants the token access to all API resources. To enable user impersonation, include act_as_user.

Response

200

access_token
string
Example:

"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm"

token_type
string
Example:

"Bearer"

expires_in
integer
default:0
Example:

36000

refresh_token
string
Example:

"44fpQdEzMP36klMm8xrg8CuD75jPnF"

scope
string
Example:

"..."