Auth endpoints

Generate access token

Use this endpoint to generate an access token.

post/token

Request

Request body multipart/form-data

client_idstring required

The client identifier.

client_secretstring required

The client secret.

grant_typestring required

The grant type. Supports client_credentials ONLY.

scopestring required

The scope for the access request. Supports pos ONLY.

Response

Token generated successfully

access_tokenstring

The authorization token.

token_typestring

The token's type.

expires_innumber

The token's lifetime in seconds after the issue time.

scopestring

The token's scope.

Example response

{
  "access_token": "JSON Web Token",
  "token_type": "Bearer",
  "expires_in": 86399,
  "scope": "pos"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.