Last updated Aug 16, 2023

Rate this page:

Authenticating to AAG

If you have not created a Container Token or a User API token, 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

Container Token

Container tokens are used directly in the Authorization header in form of Bearer token:

1
2
Authorization: Bearer <container_token>

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: