Working with Authentication Tokens
Creating a New Authentication Token
To create a new token for AI Gateway authentication:
Go to the Authentication Token tab in the AI Gateway management interface.
Click the Create authentication token button to open the token creation popup.
In the popup window:
Enter a Token name (required). This is an identifier to help you manage tokens more easily.
Examples:
token-user01, token-user02,...
Click Create to generate the token.
Each token is associated with a specific AI Gateway and can be used to securely call APIs or access the Gateway.



Managing the Token List
After creation, the token will appear in the list with the following information:
Token name
The identifier you assigned when creating the token
Created at
Creation timestamp
Status
Token status (e.g: ACTIVE)
Action
Delete the token when it is no longer needed
Only tokens with ACTIVE status can be used to authenticate API Gateway requests.

Deleting an Authentication Token
To delete a token:
Select the token from the list.
Click the Delete button.
Confirm the deletion to complete the action.
Once deleted, the token can no longer be used to authenticate access to the AI Gateway.

Integrating Authentication Tokens to Call APIs
Once a token has been created and is in ACTIVEstatus, you can use it to call APIs through the AI Gateway.
You must include the token in the HTTP request header. The AI Gateway will validate the token before forwarding the request to the LLM model.
Example with curl:
Where:
<YOUR_TOKEN>is the token you created earlier.
If the token is invalid or expired, AI Gateway will return the error Invalid authentication token.
Last updated

