Get Token

Exchange your client id and client secret for a bearer token.

post/oauth2/token/

Request

Headers

Content-typestring

Request body application/x-www-form-urlencoded

grant_typestring required

We currently only support client_credentials grant type.

client_idstring

Client ID that was supplied to you with your credentials

client_secretstring

Client Secret that was provided to you with your credentials

scopestring

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.

Response

200

access_tokenstring
token_typestring
expires_ininteger
refresh_tokenstring
scopestring

Example response

{
  "access_token": "TyEPKw8fVGRKpCBa81ygwjCLXDNIAm",
  "token_type": "Bearer",
  "expires_in": 36000,
  "refresh_token": "44fpQdEzMP36klMm8xrg8CuD75jPnF",
  "scope": "..."
}

Changes

No recorded changes to this operation across all 1 revision of this API.