Skip to main content
POST
/
auth
/
token
Issue an OAuth token
curl --request POST \
  --url https://api.example.com/auth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>' \
  --data 'grant_type=<string>' \
  --data 'scope=<string>'
{
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123,
  "scope": "<string>"
}

Body

application/x-www-form-urlencoded
client_id
string
required

Your OAuth2 client ID, provided to you during onboarding.

client_secret
string
required

Your OAuth2 client secret, provided to you during onboarding.

grant_type
string
required

The grant type to use. Always client_credentials.

scope
string
required

The scopes to include in the token. Comma-separated list of scopes. Currently only read and write are supported. read grants read-only access to all resources, and write grants read/write access to all resources.

Response

OK

access_token
string
required

The access token.

token_type
string
required

The token type. Always 'bearer' for JWT tokens.

expires_in
integer
required

The number of seconds until the token expires.

scope
string
required

The scopes of the token, comma-separated.