Once you have client credentials you can create the authentication token required to make all other calls to this api.
Method | URI | Headers |
---|---|---|
POST | /oauth/token |
Default |
{
"grant_type" : "client_credentials",
"client_id" : "{client_id}",
"client_secret" : "{client_secret}",
}
{success} Success Response
200
{
"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}
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