Skip to main content

Get an access token

To authenticate with the Platform API, you need get an access token using site and global credentials.

Requirements and considerations

  • This token is only available for 24 hours, and will need to be regenerated as needed.
  • Then endpoint for this call is:

Get token

For your call, input the following information:

  • client_id: Your client ID, provided in step 1.
  • client_secret: Your client secret, provided in step 1.
  • grant_type: client_credentials
"client_id": "{your_client_id}",
"client_secret": "{your_client_secret}",
"grant_type": "client_credentials"

The output of the call contains the following information:

  • access_token: Your orgToken. This JWT token is used in other requests as an Authorization header.
  • token_type: Format or type of token. In this case, Bearer.
  • expires_in: When the token expires. In this case, it is 86400 seconds, which is 24 hours.


If you receive the following error, you have most likely used the wrong endpoint for your call. For example, you used the endpoint for the development environment rather than the production environment.

Error: Cannot read properties of undefined (reading 'address')