Skip to main content

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 the Authorization header.

Common Workflows

New team member onboarding: A BANK_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
Example Response -200 OK
Example Response -401 Unauthorized

Refresh Token

Obtain a new access token without re-entering credentials. Request Body Example Request
Example Response -200 OK
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 Request
Example Response -200 OK

List Users

Retrieve all users within your tenant. Query Parameters Example Request
Example Response -200 OK

Create User

Add a new user to your tenant. The new user will receive a welcome email with login instructions. Request Body Example Request
Example Response -201 Created
Example Response -409 Conflict

Update User

Modify a user’s details or role. Path Parameters Request Body All fields are optional. Example Request
Example Response -200 OK

Deactivate User

Soft-delete a user by deactivating their account. Path Parameters Example Request
Example Response -200 OK
Deactivated users cannot log in but their audit history and case contributions are preserved for compliance.