Skip to main content
Obtain an access token (OAuth 2.0 Client Credentials)
curl --request POST \
  --url https://api.sandbox.thrivory.com/v1/oauth/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "<string>",
  "client_secret": "<string>",
  "grant_type": "<string>"
}'
{
  "access_token": "<string>",
  "token_type": "Bearer",
  "expires_in": 3600
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
client_id
string
required
client_secret
string
required
grant_type
string
required
Allowed value: "client_credentials"

Response

Access token

access_token
string
required
token_type
string
required
Example:

"Bearer"

expires_in
integer
required
Example:

3600