Skip to main content
POST
/
oauth
/
token
Create token
curl --request POST \
  --url https://api.example.com/oauth/token \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "<string>",
  "client_secret": "<string>"
}
'
{
  "access_token": "<string>",
  "expires_in": "<string>",
  "token_type": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
client_id
string
client_secret
string

Response

Token created successfully

access_token
string
expires_in
string
token_type
string