Authentication

Get your API access token and website token, and send the headers every Athena XAI API request needs.

Last updated

On this page

Tokens and headers

Every Athena XAI API request needs two credentials: an API access token and a website token.

CredentialWhere to find itHow to send it
API access tokenAthena Dashboard, under Settings -> General SettingsAs a Bearer token in the HTTP header
Website tokenUnique per store, for each organizationIn the HTTP body, as the parameter token

Set the correct Website domain on the dashboard, then save the configuration.

Credentials on the Athena Dashboard
Credentials on the Athena Dashboard, continued

Required headers

Include these headers when you call Athena XAI APIs:

  • Content-Type:application/json
  • Authorization: Bearer {{access-token}}

OAuth 2.0

Athena XAI authenticates APIs using the OAuth 2.0 standard. To generate access tokens from a Client ID and Client Secret, follow the OAuth2 flow.