Skip to main content
POST
/
v0
/
auth
/
token
Get an Access Token
curl --request POST \
  --url https://api.sandbox.getasset.com/v0/auth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'client_id=<string>' \
  --data 'client_secret=The client secret' \
  --data grant_type=client_credentials \
  --data 'business_id=<string>' \
  --data expires_in=3600
{
  "access_token": "<string>",
  "token_type": "Bearer"
}

Body

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

The client id

client_secret
string
default:The client secret
grant_type
enum<string>

The grant type. Defaults to client_credentials

Available options:
client_credentials
business_id
string | null

Access token scoped to business

expires_in
integer
default:3600

Access token expiration time in seconds

Required range: x > 0

Response

Successful Response

access_token
string
required

The access token

token_type
string
default:Bearer

The token type