token:generate or token:* permission, and can only grant permissions it already holds.
Request parameters
Identifier for the token subject (e.g., service name, user ID).
Set of permission scopes to grant. See available permissions.
Optional human-readable name for the token.
Token lifetime in seconds. Defaults to 1 hour.
Optional list of intended audiences for the token.
Optional delay before the token becomes valid.
Generate a token
- TypeScript
- Python
- cURL
Response fields
The signed JWT to use in
Authorization: Bearer headers.Unique token identifier (JWT ID). Use this to revoke the token later.