Authorization header.
Base URL
localhost:5000 with your configured API_GATEWAY_HOST and API_GATEWAY_PORT.
Getting started
Register your account
Send your email to
POST /auth/verification-mail. The platform sends a verification code to that address.Sign in
Call
POST /auth/signin with your email and password. The response contains an access_token and a refresh_token.Including the token in requests
Pass the JWT in theAuthorization header using the Bearer scheme.
Token format and expiry
Tokens are standard JWTs signed with RS256. Theexpires_in field in the sign-in response indicates how many seconds until the token expires (for example, 86400 for 24 hours).
Store tokens securely. Never expose them in URLs, logs, or client-side source
code.
Refreshing tokens
When your access token expires, usePOST /auth/refresh-token with the refreshToken you received at sign-in to obtain a new access token without requiring the user to sign in again. See the login and session page for full details.
Multi-client support
Some endpoints that initiate user flows (such as sending a verification email) accept an optionalclientAlias query parameter. This allows the platform to customise email branding and redirect URLs for different front-end clients deployed against the same API.
Use GET /auth/clientAliases to retrieve the list of valid aliases configured on your deployment.
Authentication errors
| Status | Meaning |
|---|---|
401 Unauthorized | The request has no token, the token is malformed, or the token has expired. |
403 Forbidden | The token is valid but the caller does not have the required role or organisation permission for the requested resource. |