Skip to content
Last updated

OAuth 2.0

In order to acquire the Bearer Token, OAuth's Password Flow must be used.

For that, you have to send the following POST request to the provided OAuth URL, using credentials from the Fact Sheet

NB! Note different audience for different endpoints.

Example requests

curl --request POST \
  --url 'https://{OAuth_URL}' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data grant_type=password \
  --data client_id=CLIENT_ID \
  --data audience=AUDIENCE \
  --data username=USERNAME \
  --data password=PASSWORD

Response

A successful response would return the following JSON with token

{
  "access_token":"eyJz93a...k4laUWw",
  "token_type":"Bearer",
  "expires_in":86400
}

Issued Bearer tokens are valid for 24 hours, after which you would need to request a new token.