curl -sS "$BMA_BASE_URL/v1/user_profiles/uprof_agray2nefbytbbjt7cslohtp2q" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"type": "user_profile",
"id": "uprof_agray2nefbytbbjt7cslohtp2q",
"name": "Northwind Traders",
"access_type": "application",
"external_user_details": {
"account_status": "active",
"country": "DE",
"email_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"entity_type": "business",
"name_hash": null,
"onboarded_at": "2026-09-14T10:00:00Z",
"reference_id": "cust_48213"
},
"metadata": {
"plan": "enterprise"
},
"trust_grants": {},
"created_at": "2026-11-18T09:12:44.150Z",
"updated_at": "2026-11-22T16:03:10.027Z"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}Retrieve a user profile
Returns one user profile of the workspace the request acts in. A profile of another workspace, or an ID that is not a user profile ID, answers 404 not_found_error without an error.code. With a legacy anthropic-beta header (user-profiles-2026-03-24, user-profiles-2026-08-18) the answer also carries the earlier top-level fields. Read only.
Authorization: Any credential that may use the workspace the request acts in: an organization API key (x-api-key: bma_org_v1_…; a workspace key acts in its workspace), or a personal access token (Authorization: Bearer bma_pat_v1_…), signed-in dashboard access token or dashboard session of a member of the workspace, naming the organization with bma-organization-id (org_…). The workspace is the one bma-workspace-id (or anthropic-workspace-id) names, else the credential’s own; a credential that can use several workspaces must name one (400 project_required), and a workspace the caller cannot use answers 404.
Limits:
- No limits specific to this endpoint.
- Rate limit: one request of the organization’s read budget (Rate limits).
Errors (besides the common errors (401 authentication, 429 rate_limited, 500)):
| Status | error.type | error.code | Cause | Fix |
|---|---|---|---|---|
| 400 | invalid_request_error | organization_required | A user credential sent no bma-organization-id header. | Send bma-organization-id with the org_… ID of the organization. |
| 400 | invalid_request_error | project_required | The credential can use several workspaces and the request names none. | Correct the request as the message describes and send it again; the same request will keep failing. |
| 400 | invalid_request_error | workspace_id_conflict | bma-workspace-id and anthropic-workspace-id name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |
curl -sS "$BMA_BASE_URL/v1/user_profiles/uprof_agray2nefbytbbjt7cslohtp2q" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"type": "user_profile",
"id": "uprof_agray2nefbytbbjt7cslohtp2q",
"name": "Northwind Traders",
"access_type": "application",
"external_user_details": {
"account_status": "active",
"country": "DE",
"email_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"entity_type": "business",
"name_hash": null,
"onboarded_at": "2026-09-14T10:00:00Z",
"reference_id": "cust_48213"
},
"metadata": {
"plan": "enterprise"
},
"trust_grants": {},
"created_at": "2026-11-18T09:12:44.150Z",
"updated_at": "2026-11-22T16:03:10.027Z"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}Headers
Path Parameters
Response
Success.
A user profile: an entity the caller's platform serves through the API, kept per workspace with the facts the platform states about it.