Access Token

Request an access token

Changed on

Obtain a Bearer token using OAuth 2.0 client credentials. Send either (1) JSON body with client_id, client_secret, and grant_type, or (2) application/x-www-form-urlencoded body with grant_type=client_credentials and Basic Auth header (Client ID as username, Client Secret as password). Tokens expire after 24 hours.

post/oauth/token

Request

  • Base URL
    / (relative, and the document’s source URL is not known)
  • URL
    /oauth/token
  • Auth
    • none
    • or HTTP basic

Request body

(unresolved $ref)

Response

Created

token_typestring
expires_innumber

Seconds until the token expires (typically 86400 for 24 hours)

access_tokenstring

Use in Authorization header as Bearer {access_token}

Example response

{
  "token_type": "Bearer",
  "expires_in": 86400,
  "access_token": "2YotnFZFEjr1zCsicMWpAA"
}

Changes