API Tokens
Create API token
Generates a new scoped API token. The full token is only returned in the creation response and cannot be retrieved again. Requires admin role.
Note: API tokens cannot create other API tokens.
post/api/api-tokens
Request body
Example request
{
"name": "CI/CD Deploy Token",
"expires_in": 90
}Response
Token created. The token field contains the full JWT. Save it now; it will not be shown again.