Skip to main content
Generate a new JWT access token with specific permissions. The calling token must have 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

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.
Store the returned token securely. It cannot be retrieved again after generation.