MonetaryAI / Docs
API ReferenceUsers and roles

List the four company default roles

Always returns ADMIN, ACCOUNTANT, MANAGER and EMPLOYEE with effective permission IDs and optimistic lock versions. Permission customization is isolated to the signed tenant. Company permission: `listCompanyRoles`. Defaults: ADMIN. Current company role permissions and active membership are checked on every request; signed legacy role claims alone do not authorize this operation.

GET
/api/v1/settings/roles

Authorization

bearerAuth
headerAuthorizationBearer <token>

Obtained from POST /api/v1/auth/login, on the tenant's own subdomain. Presenting it on another tenant's subdomain is a 403.

Response Body

OK

*/*
  1. response
[index: integer]?
curl -X GET 'https://api.monetaryai.uz/api/v1/settings/roles'
[  {    "code": "string",    "defaultPermissions": true,    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "lockVersion": 0,    "name": "string",    "permissions": [      "string"    ]  }]