Overview
The Authentication module handles identity verification for all users and provides user lifecycle management within your tenant. Every API call (except login) requires a valid Bearer token in theAuthorization header.
Common Workflows
New team member onboarding: ABANK_ADMIN creates a user account → The new user receives a welcome email → They log in and begin using the dashboard.
Session refresh: When your access token expires (every 15 minutes), use the refresh token to obtain a new pair without prompting for credentials again.
Permissions
Endpoints
Login
Authenticate with email and password to receive an access token and refresh token. Request Body
Example Request
Refresh Token
Obtain a new access token without re-entering credentials. Request Body
Example Request
Access tokens expire after 15 minutes (
expiresIn: 900). Refresh tokens
expire after 7 days.Get My Profile
Retrieve the currently authenticated user’s details, including their tenant. Example RequestList Users
Retrieve all users within your tenant. Query Parameters
Example Request
Create User
Add a new user to your tenant. The new user will receive a welcome email with login instructions. Request Body
Example Request
Update User
Modify a user’s details or role. Path Parameters
Request Body
All fields are optional.
Example Request
Deactivate User
Soft-delete a user by deactivating their account. Path Parameters
Example Request