Skip to main content
POST
/
v1
/
oauth
/
token
Obtain Access Token
curl --request POST \
  --url https://api.aspect-dev.systems/v1/oauth/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "grant_type": "client_credentials",
  "client_id": "<string>",
  "client_secret": "<string>"
}
'
{
  "token_type": "Bearer",
  "expires_in": 123,
  "access_token": "<string>"
}

Body

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

Response

AccessToken

token_type
enum<string>
required
Available options:
Bearer
expires_in
integer
required

When the access token expires, in seconds

Example:

2592000

access_token
string
required
Example:

"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."