Skip to content

Authentication

All API requests use Bearer token authentication.


TypePrefixTied toUse case
Personal Access Token (PAT)ul_pat_…Your user accountRecommended for development, testing, scripts, and integrations

PATs inherit the permissions of the role assigned when the token is created. Personal Access Tokens are the recommended authentication method for the Unleash Live API.


Before you create a PAT, make sure you are signed in to your Unleash Live account and that Developer mode is enabled on your profile.

  1. Go to Your Profile → Developers.
  2. In the Personal Access Tokens (PAT) section, click Create Token.
  3. Enter a descriptive token name.
  4. Select the appropriate role:
    • Viewer for read-only access
    • Contributor for create and update access
    • Admin for full administrative access
  5. Choose an expiration period: 7 days, 30 days, 60 days, 90 days, or 1 year.
  6. Click Create.
  7. Copy the token immediately and store it securely. The full token value is shown only once.

Use the principle of least privilege and choose the lowest role and shortest expiry that still works for your integration.


Use your PAT as a Bearer token in the Authorization header:

Terminal window
curl https://api.unleashlive.com/v1/analytics/version \
-H 'Authorization: Bearer <YOUR_PAT>'

Use the public API base URL:

https://api.unleashlive.com

  • PAT default expiry: 30 days
  • Revoke a token any time via Your Profile → Developers

The cognito.js module provides helper functions for:

  • Initialising the AWS SDK client with identity pool credentials
  • Creating a Cognito user pool and user instances
  • Decoding JWT tokens
  • Building authentication details

The actions.js module uses the Cognito helpers to authenticate a user. On success it returns the access token, ID token, refresh token, and custom claims (identityId, companyId, teamId).

An example sign-in script can be run from any of the sample entry points, such as media-drive and flights.

Every GraphQL request must include the header authorization with the ID token. Every REST request must include the header X-Amz-Cognito-Security-Token with the security token.

If you are using another programming language, you can use the following command in your terminal to generate a security token:

Terminal window
aws cognito-idp initiate-auth --auth-flow USER_PASSWORD_AUTH --region ap-southeast-2 --client-id 7jhe1lfkb5pvhbkicc3d14m0ej --auth-parameters USERNAME=<USER_LOGIN_EMAIL>,PASSWORD=<PASSWORD>

This authentication method is mainly used to fetch analytics data generated during your AI sessions. Please contact here or your Account Manager to sort out API keys for you. Further, you can also email us at support@unleashlive.com.