Last updated Apr 7, 2023

Rate this page:

Authenticating to AAG

If you have not created a User API token or an Org API key, you'll need to do so before proceeding

Authorization Header

Whether authenticating to AGG playground for testing or direct requests during implementation, an Authorization is required

Org API Key

Org API keys are used directly in the Authorization header in form of Bearer token:

1
2
Authorization: Bearer <org_api_key>

User API Token

User API tokens are used in place of password for authorization credentials. Credentials are constructed by joining username (email) and password with a colon, then base64 encoded. This is then used in form of BasicAuth.

Terminal command:

1
2
echo -n '<email>:<user_api_token>' | base64

Once you have the encoded credentials you can build the header as follows:

1
2
Authorization: Basic <encoded_credencials>

Rate this page: