curl -sS "$BMA_BASE_URL/v1/user_profiles?limit=50&order=asc&order_by=name" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"data": [
{
"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"
}
],
"next_page": "eyJjIjoiMjAyNi0xMS0xOFQwOToxMjo0NC4xNVoiLCJpIjoiMDFhMjBjNjktYTQyOC03MTMwLTg1MzMtZjhhNGI3MWU2ZmQ0In0"
}{
"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>"
}List user profiles
Lists the user profiles of the workspace the request acts in, newest first by default. order_by and order choose the sort; ties go by profile ID in the same direction, and with order_by=name profiles without a name come last either way. Page with the opaque next_page cursor (send it as page with the same order and order_by); next_page is null on the last page. Profiles of other workspaces are never listed. 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:
limit: default 20, from 1 to 100 profiles per page (out of range or not an integer is 400).- 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 | invalid_cursor | page is not a cursor this list issued. | Correct the request as the message describes and send it again; the same request will keep failing. |
| 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?limit=50&order=asc&order_by=name" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"data": [
{
"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"
}
],
"next_page": "eyJjIjoiMjAyNi0xMS0xOFQwOToxMjo0NC4xNVoiLCJpIjoiMDFhMjBjNjktYTQyOC03MTMwLTg1MzMtZjhhNGI3MWU2ZmQ0In0"
}{
"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>"
}