Skip to main content

Documentation Index

Fetch the complete documentation index at: https://ratel-docs.bevars.com/llms.txt

Use this file to discover all available pages before exploring further.

Purpose: Manage login sessions, user accounts, and role assignments.
ActionEndpointWho Can Do It
LoginPOST /api/v1/auth/loginAnyone
Refresh tokenPOST /api/v1/auth/refreshAuthenticated users
Get my profileGET /api/v1/auth/meAuthenticated users
List usersGET /api/v1/auth/usersSUPER_ADMIN, BANK_ADMIN
Create userPOST /api/v1/auth/usersSUPER_ADMIN, BANK_ADMIN
Update userPATCH /api/v1/auth/users/:idSUPER_ADMIN, BANK_ADMIN
Deactivate userDELETE /api/v1/auth/users/:idSUPER_ADMIN, BANK_ADMIN
Login Request:
{ "email": "analyst@bank.com", "password": "SecurePass123!" }
Login Response:
{
  "accessToken": "eyJhbG...",
  "refreshToken": "eyJhbG...",
  "user": {
    "id": "uuid",
    "email": "analyst@bank.com",
    "role": "ANALYST",
    "tenantId": "uuid"
  }
}
Create User Request:
{
  "email": "new.officer@bank.com",
  "password": "SecurePass123!",
  "firstName": "Jane",
  "lastName": "Smith",
  "role": "COMPLIANCE_OFFICER"
}
Access tokens expire after 15 minutes. Use the refresh token to obtain a new access token without re-authenticating.