Create API token
POST/tokens
Creates a new JWT-based API token with specified scopes and optional expiration. The token is only returned once and should be stored securely. User can have a maximum of 10 API tokens. Default expiration is 2 years if not specified.
Request
Responses
- 200
- 400
- 401
- 409
- 500
Created API token (includes token - only shown once)
Invalid request body or validation error
Unauthorized - admin role and credentials.manage scope required
User has reached maximum of 10 API tokens
Internal server error