MonetaryAI / Docs
API ReferenceUsers and roles

Remove a user from this company

Soft deletion ends this membership and revokes its grants and sessions. The global identity, other companies and historical documents/audit remain intact. Ended memberships cannot be edited or reactivated by the settings API. Supply the last read lockVersion as a query parameter. Company permission: `deleteCompanyUser`. Defaults: ADMIN. Current company role permissions and active membership are checked on every request; signed legacy role claims alone do not authorize this operation.

DELETE
/api/v1/settings/users/{id}

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.

Path Parameters

id*string
Formatuuid

Query Parameters

lockVersion*integer
Formatint32

Response Body

Membership ended, credentials revoked and removal audited

curl -X DELETE 'https://api.monetaryai.uz/api/v1/settings/users/497f6eca-6276-4993-bfeb-53cbbbba6f08?lockVersion=0'
Empty