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