Common
User Get
Markdown for LLMsReturns the calling user: their id and name, their membership of the subscription the bearer token was issued for, their roles, and the settings in effect for them.
The user is the one the bearer token identifies, so the path takes no id, and any query parameter sent is ignored. A call without a bearer token is rejected at the gateway with 401 AUTHORIZATION_ERROR.
AuthorizationBearer <token>
JWT token to authenticate the request.
In: header
X-Api-Key<token>
API key, sent as a request header.
In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/common/user/get"{ "result": { "statusCode": 200, "message": "OK", "data": { "user": { "id": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "subscriptionId": "44b20059-2442-44cc-82ed-a0d0070804d2", "fullName": "Jane Doe", "userEmail": "jane.doe@example.com", "isActive": true, "startDate": "2026-04-14T07:28:24.000Z", "type": "paid", "accountId": "c093af1a-ca95-4456-afee-de0e7bad038b", "roles": { "accountRole": { "name": "Account Owner", "scope": "Account", "level": "Owner" }, "subscriptionRole": { "name": "Subscription Owner", "scope": "Subscription", "level": "Owner" }, "moduleRoles": [] }, "settings": [ { "settingKey": "COMPLETION_EMAIL_ATTACH_AUDIT_TRAIL", "label": "Attach Audit Trail to Completion Email", "type": "Boolean", "application": "MDS", "category": "Delivery Settings", "subCategory": "Attachments", "value": "true", "isAnonymousSetting": false, "preserve": true } ] } } }, "origin": "GET https://api.doctavian.com/v1/common/user/get", "dateTime": "2026-10-16T10:02:00.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "c5c015fa077f2e03a4b2d6ba7cb4cbd7"}{ "error": { "statusCode": 401, "message": "Unauthorized", "innerErrors": [ { "code": "AUTHORIZATION_ERROR", "message": "Authorization header is missing.", "userMessage": "Authorization header is missing." } ] }, "origin": "GET https://api.doctavian.com/v1/common/user/get", "dateTime": "2026-10-16T10:02:01.000Z"}{ "error": { "statusCode": 500, "message": "Internal Server Error", "innerErrors": [ { "code": "GET_USER_FAILED", "message": "Failed to load the current user.", "userMessage": "Something went wrong. Please contact support.", "eventId": "5d1a8c3e-7b0f-4294-9e6a-2c4b8d0f1a37" } ], "externalErrors": [] }, "origin": "GET https://api.doctavian.com/v1/common/user/get", "dateTime": "2026-10-16T10:02:03.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "f2b861f965f587b16f96486fbdfdfa4b"}