Authorization header.
Base URL
localhost:5000 with your configured API_GATEWAY_HOST and API_GATEWAY_PORT.
Getting started
1
Register your account
Send your email to
POST /auth/verification-mail. The platform sends a verification code to that address.2
Verify your email
Call
GET /auth/verify with your email and the verification code you received.3
Complete your profile
Submit your name, password, and other details to
POST /auth/signup.4
Sign in
Call
POST /auth/signin with your email and password. The response contains an access_token and a refresh_token.5
Call protected endpoints
Include the
access_token in every subsequent request as a Bearer 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.