This is a beta feature according to Algolia’s Terms of Service (“Beta Services”).
sub: your user’s unique identifierexp: token expiration timestamp (defaults to 24 hours from now)kid(header): your Algolia authentication key ID
This helper is currently available for JavaScript and Python only.
For other languages, generate the JWT manually.
For more information, see User authentication.
Usage
X-Algolia-Secure-User-Token header when making Agent Studio API requests.
Parameters
- JavaScript
- Python
Your Algolia authentication key.
This is the full
sk-alg-... value from the Agent Studio Settings > User authentication page.Your Algolia authentication key ID.
This is the value in the ID column of the authentication keys table in the Agent Studio dashboard.
A unique identifier for the user.
This value is set as the
sub (subject) claim in the JWT.Token lifetime in seconds.
Defaults to
86400 (24 hours).Response
The method returns astring: a signed JWT that you can pass in the X-Algolia-Secure-User-Token header.