Overview
The Authentication API provides endpoints for issuing and refreshing JWT tokens. These endpoints are used to authenticate users and maintain their sessions.Generate Token
Issue JWT access and refresh tokens by submitting user credentials.HTTP Request
POST /api/v1/identity/token/issue
Headers
The tenant context for authentication. Defaults to ‘root’ if not provided.
Request Body
User’s email address
User’s password
Response
JWT access token for API authentication
Refresh token used to obtain new access tokens
Expiration timestamp for the refresh token
Expiration timestamp for the access token
Response Example
Error Responses
Unauthorized - Invalid email or password
Bad Request - Invalid request format or missing required fields
Internal Server Error - An unexpected error occurred
Refresh Token
Use a valid (possibly expired) access token together with a valid refresh token to obtain new tokens.HTTP Request
POST /api/v1/identity/token/refresh
Headers
The tenant context for token refresh
Request Body
The current access token (may be expired)
The valid refresh token
Response
New JWT access token
New rotated refresh token (the old refresh token is invalidated)
Expiration timestamp for the new refresh token
Response Example
Error Responses
Unauthorized - Invalid or expired refresh token
Bad Request - Invalid request format or missing required fields
Internal Server Error - An unexpected error occurred
Notes
- Refresh tokens are rotated on each use for security purposes
- The old refresh token becomes invalid immediately after a successful refresh
- Both access and refresh tokens are scoped to the tenant specified in the header
