Skip to main content
POST
/
auth
/
token
Get an access token
curl --request POST \
  --url https://api.example.com/auth/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "grant_type": "client_credentials",
  "client_id": "<string>",
  "client_secret": "<string>"
}
'
{
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
grant_type
enum<string>
Available options:
client_credentials
client_id
string
client_secret
string

Response

OK

access_token
string
token_type
string
expires_in
integer