Access Token

The token object

The token object represents an OAuth 2.0 access token used for authentication in API requests. It includes the access token string, expiration time, and token type.

Properties

  • Name
    access_token
    Type
    string
    Description

    OAuth 2.0 Access Token. JSON Web Token (JWT) format.

  • Name
    expires_in
    Type
    integer
    Description

    Token expiry time, in seconds.

  • Name
    token_type
    Type
    string
    Description

    Bearer token type.


POST/token

Request an access token

Request an OAuth 2.0 Access Token. Client ID and Client Secret are needed for the Basic Authentication.

Required attributes

  • Name
    grant_type
    Type
    string
    Description

    OAuth 2.0 Client Credentials grant flow.

Optional attributes

  • Name
    scope
    Type
    string
    Description

    OAuth 2.0 scopes.

Request

POST
/token
curl --location -g '{{authUrl}}/token' \
  --header 'Authorization: Basic <credentials>' \
  --data-urlencode 'grant_type=client_credentials' \
  --data-urlencode 'scope=riskcalc/get'

Response

{
  "access_token": "eyJraWQiOiJ3RGk0UdzM4ZDJ...",
  "expires_in": 86400,
  "token_type": "Bearer"
}

Was this page helpful?