Skip to content

Request a token for the provided scope and grant type (only client_credentials supported)

Request

Returns a token. Only client_credentials grant type is supported.

Bodyapplication/x-www-form-urlencoded
grant_typestring
client_idstring
client_secretstring
scopestring
curl -i -X POST \
  https://uk.api.atto.co/v1/oauth2/token \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode grant_type=string \
  --data-urlencode client_id=string \
  --data-urlencode client_secret=string \
  --data-urlencode scope=string

Responses

Returns a token.

Bodyapplication/json
tokenTypestring or null
expiresIninteger, (int64)
accessTokenstring or null
Response
{ "tokenType": "string", "expiresIn": 0, "accessToken": "string" }