Obtaining an Authentication Token


Once you have client credentials you can create the authentication token required to make all other calls to this api.

Endpoint

Method URI Headers
POST /oauth/token Default

Data Params

{
    "grant_type"    : "client_credentials",
    "client_id"     : "{client_id}",
    "client_secret" : "{client_secret}",
}

{success} Success Response

Code: 200

Content

{
  "token_type"    : "Bearer",
  "expires_in"    : "integer",
  "access_token"  : "string|token",
}

From here on, you can include the access token in the header of all ongoing API requests:

 Authorization: Bearer {access_token}

Caching

Note that it is not required to create a new access_token for every api call being made. Instead, an access token can be cached or stored and then refreshed as needed per the "expires_in" value