Records a user profile in the workspace the request acts in: an entity (a person or business) that the caller’s platform serves through the API, with the facts the platform states about it. Every field is optional; access_type defaults to application. BMA stores what is sent and grants no trust, so trust_grants stays empty. Idempotency-Key is supported: the same key and body within 24 hours replays the first answer instead of creating a second profile. With the anthropic-beta header user-profiles-2026-03-24 or user-profiles-2026-08-18 the body takes the earlier top-level external_id (and, for 08-18, external_user_onboarded_at) instead of external_user_details.
Authorization:workspace_admin or workspace_developer in the workspace the request acts in (organization owners and admins hold workspace_admin everywhere; a workspace organization API key acts as workspace_developer, an admin key as admin); other roles are refused with 403 permission_denied. Accepted credentials: an organization API key (x-api-key: bma_org_v1_…), or a personal access token (Authorization: Bearer bma_pat_v1_…), signed-in dashboard access token or dashboard session 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:
Request body: at most 64 KiB of JSON.
name: at most 255 characters.
metadata: at most 16 keys; keys 1 to 64 characters, values up to 512 characters.
external_user_details strings (email_hash, name_hash, reference_id): 1 to 255 characters; onboarded_at at most 1 minute in the future.
Field rule violations are 400 invalid_request_error without an error.code; the message names the field.
Rate limit: one request of the organization’s write 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
idempotency_key_reused
The Idempotency-Key was used with a different request within the last 24 hours.
Correct the request as the message describes and send it again; the same request will keep failing.
400
invalid_request_error
invalid_body
The body is not a JSON object, or is larger than 64 KiB.
Correct the request as the message describes and send it again; the same request will keep failing.
400
invalid_request_error
invalid_idempotency_key
Idempotency-Key is not 1 to 255 visible ASCII characters.
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.
403
permission_error
permission_denied
The caller’s role in the workspace is neither workspace_admin nor workspace_developer, or the credential cannot call this API.
Use a credential with the required role or access; retrying with the same credential will not help.
409
conflict_error
idempotency_key_in_use
A request with the same Idempotency-Key is still running.
Retry the same request after a short delay.
413
request_too_large
request_too_large
The body is larger than 1 MiB.
Reduce the size of the request body or upload in smaller parts.
Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict.
Idempotency-Key
string
Replays the first result of a create; the same key with another body is 400 idempotency_key_reused, one while the first still runs 409 idempotency_key_in_use.
Required string length: 1 - 255
Body
application/json
The fields of a user profile create or update; every field is optional. On an update a field that is left out stays as it is.
name
string | null
Display name of the entity, at most 255 characters; null clears it.
access_type
enum<string>
application (the default on create) or passthrough.
Available options:
application,
passthrough
external_user_details
object
The facts to state about the entity (see UserProfileDetails); every field optional, and a field left out stays as it is. Null is accepted on create and refused on an update (a stated detail cannot be cleared); an unknown field is 400. Not accepted with a legacy anthropic-beta user-profiles header.
Show child attributes
external_id
string | null
Legacy spelling of external_user_details.reference_id, accepted only with the anthropic-beta header user-profiles-2026-03-24 or user-profiles-2026-08-18 (otherwise 400). Null is refused on an update.
external_user_onboarded_at
string<date-time> | null
Legacy spelling of external_user_details.onboarded_at, accepted only with the anthropic-beta header user-profiles-2026-08-18 (otherwise 400). Null is refused on an update.
metadata
object
String key-value pairs to store with the profile (keys 1 to 64 characters, values up to 512, at most 16 keys in total). On create every value must be non-empty; on an update the pairs merge into the stored map and an empty value removes its key.
Show child attributes
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.
id
string
required
ID of the user profile (uprof_ followed by 26 lowercase base32 characters).
type
string
required
Always user_profile.
Allowed value: "user_profile"
name
string | null
required
Display name of the entity, at most 255 characters; null when none was given.
access_type
enum<string>
required
How the entity reaches the API through the caller's platform, application (the default) or passthrough.
Available options:
application,
passthrough
external_user_details
object
required
The facts the caller's platform stated about the entity; each is null until it is sent.
Show child attributes
metadata
object
required
The caller's own string key-value pairs (at most 16 keys); {} when none.
Show child attributes
trust_grants
object
required
Always empty; BMA has no trust program.
Show child attributes
created_at
string<date-time>
required
When the profile was created (RFC 3339, UTC).
updated_at
string<date-time>
required
When the profile last changed (RFC 3339, UTC); equal to created_at until the first update.
external_id
string | null
Legacy field: the value of external_user_details.reference_id, returned only when the request carries the anthropic-beta header user-profiles-2026-03-24 or user-profiles-2026-08-18.
external_user_onboarded_at
string<date-time> | null
Legacy field: the value of external_user_details.onboarded_at, returned only when the request carries the anthropic-beta header user-profiles-2026-08-18.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"BMA Developer Docs","description":"BMA (BeeOS Managed Agents): an open-source agent runtime. Any brain × any hands, computer use, remote desktop, terminal, a replaceable scheduler and a durable event log, with the Anthropic Managed Agents API under /v1, the official SDKs and the Executor Protocol.","colors":{"primary":"#F97316","light":"#FB923C","dark":"#C2410C"},"logo":{"light":"/logo/light.svg","dark":"/logo/dark.svg","href":"/"},"favicon":"/favicon.svg","api":{"playground":{"display":"simple"},"examples":{"languages":["curl","python","javascript","go"]}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"https://github.com/beeos-ai/bma-sdk","label":"bma-sdk"},{"href":"https://github.com/beeos-ai/bma-executor-sdk","label":"bma-executor-sdk"}]},"footer":{"socials":{"github":"https://github.com/beeos-ai"}},"fonts":{"heading":{"family":"Inter","weight":600},"body":{"family":"Inter","weight":400}},"integrations":{"telemetry":{"enabled":false}},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"zh","href":"zh"},{"language":"zh-Hant","href":"zh-Hant"},{"language":"ja","href":"ja"},{"language":"ko","href":"ko"}]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4338"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false,"mintExport":{}},"customCss":[{"filePath":"style.css","content":"html:lang(zh){--font-family-body-custom: Inter, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"Noto Sans SC\", \"Noto Sans CJK SC\";--font-family-headings-custom: var(--font-family-body-custom)}html:lang(zh-Hant){--font-family-body-custom: Inter, \"PingFang TC\", \"Microsoft JhengHei\", \"Noto Sans TC\", \"Noto Sans CJK TC\"}html:is(:lang(zh),:lang(ja),:lang(ko)) [data-layout-item=\"page-header\"] .prose{font-size:1.0625rem;line-height:1.8}html:is(:lang(zh),:lang(ja),:lang(ko)) :is(h1,h2,h3,h4){letter-spacing:normal}html:is(:lang(zh),:lang(ja),:lang(ko)) .prose :not(pre)>code{padding:0.125em 0.3em}html:is(:lang(zh),:lang(ja),:lang(ko)) .prose :is(td,th){line-height:1.65}"}]}
{"page":{"pagePath":"api-reference/endpoints/user-profiles/create-a-user-profile","slug":"/api-reference/endpoints/user-profiles/create-a-user-profile","pageMetadata":{"openapi":"/api-reference/bma.openapi.yaml post /v1/user_profiles","description":"Records a user profile in the workspace the request acts in: an entity (a person or business) that the caller's platform serves through the API, with the facts the platform states about it. Every field is optional; `access_type` defaults to `application`. BMA stores what is sent and grants no trust, so `trust_grants` stays empty. `Idempotency-Key` is supported: the same key and body within 24 hours replays the first answer instead of creating a second profile. With the `anthropic-beta` header `user-profiles-2026-03-24` or `user-profiles-2026-08-18` the body takes the earlier top-level `external_id` (and, for 08-18, `external_user_onboarded_at`) instead of `external_user_details`.\n\n**Authorization:** `workspace_admin` or `workspace_developer` in the workspace the request acts in (organization owners and admins hold `workspace_admin` everywhere; a workspace organization API key acts as `workspace_developer`, an admin key as admin); other roles are refused with 403 `permission_denied`. Accepted credentials: an organization API key (`x-api-key: bma_org_v1_…`), or a personal access token (`Authorization: Bearer bma_pat_v1_…`), signed-in dashboard access token or dashboard session 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.\n\n**Limits:**\n\n- Request body: at most 64 KiB of JSON.\n- `name`: at most 255 characters.\n- `metadata`: at most 16 keys; keys 1 to 64 characters, values up to 512 characters.\n- `external_user_details` strings (`email_hash`, `name_hash`, `reference_id`): 1 to 255 characters; `onboarded_at` at most 1 minute in the future.\n- Field rule violations are 400 `invalid_request_error` without an `error.code`; the message names the field.\n- Rate limit: one request of the organization's write budget ([Rate limits](https://docs.beeos.ai/guides/limits)).\n\n**Errors** (besides the [common errors](https://docs.beeos.ai/api-reference/errors) (401 authentication, 429 `rate_limited`, 500)):\n\n| Status | `error.type` | `error.code` | Cause | Fix |\n| --- | --- | --- | --- | --- |\n| 400 | `invalid_request_error` | `idempotency_key_reused` | The `Idempotency-Key` was used with a different request within the last 24 hours. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 400 | `invalid_request_error` | `invalid_body` | The body is not a JSON object, or is larger than 64 KiB. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 400 | `invalid_request_error` | `invalid_idempotency_key` | `Idempotency-Key` is not 1 to 255 visible ASCII characters. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 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. |\n| 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. |\n| 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. |\n| 403 | `permission_error` | `permission_denied` | The caller's role in the workspace is neither `workspace_admin` nor `workspace_developer`, or the credential cannot call this API. | Use a credential with the required role or access; retrying with the same credential will not help. |\n| 409 | `conflict_error` | `idempotency_key_in_use` | A request with the same `Idempotency-Key` is still running. | Retry the same request after a short delay. |\n| 413 | `request_too_large` | `request_too_large` | The body is larger than 1 MiB. | Reduce the size of the request body or upload in smaller parts. |","href":"/api-reference/endpoints/user-profiles/create-a-user-profile","title":"Create a user profile"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n table: \"table\",\n tbody: \"tbody\",\n td: \"td\",\n th: \"th\",\n thead: \"thead\",\n tr: \"tr\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Records a user profile in the workspace the request acts in: an entity (a person or business) that the caller’s platform serves through the API, with the facts the platform states about it. Every field is optional; \", _jsx(_components.code, {\n children: \"access_type\"\n }), \" defaults to \", _jsx(_components.code, {\n children: \"application\"\n }), \". BMA stores what is sent and grants no trust, so \", _jsx(_components.code, {\n children: \"trust_grants\"\n }), \" stays empty. \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" is supported: the same key and body within 24 hours replays the first answer instead of creating a second profile. With the \", _jsx(_components.code, {\n children: \"anthropic-beta\"\n }), \" header \", _jsx(_components.code, {\n children: \"user-profiles-2026-03-24\"\n }), \" or \", _jsx(_components.code, {\n children: \"user-profiles-2026-08-18\"\n }), \" the body takes the earlier top-level \", _jsx(_components.code, {\n children: \"external_id\"\n }), \" (and, for 08-18, \", _jsx(_components.code, {\n children: \"external_user_onboarded_at\"\n }), \") instead of \", _jsx(_components.code, {\n children: \"external_user_details\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Authorization:\"\n }), \" \", _jsx(_components.code, {\n children: \"workspace_admin\"\n }), \" or \", _jsx(_components.code, {\n children: \"workspace_developer\"\n }), \" in the workspace the request acts in (organization owners and admins hold \", _jsx(_components.code, {\n children: \"workspace_admin\"\n }), \" everywhere; a workspace organization API key acts as \", _jsx(_components.code, {\n children: \"workspace_developer\"\n }), \", an admin key as admin); other roles are refused with 403 \", _jsx(_components.code, {\n children: \"permission_denied\"\n }), \". Accepted credentials: an organization API key (\", _jsx(_components.code, {\n children: \"x-api-key: bma_org_v1_…\"\n }), \"), or a personal access token (\", _jsx(_components.code, {\n children: \"Authorization: Bearer bma_pat_v1_…\"\n }), \"), signed-in dashboard access token or dashboard session naming the organization with \", _jsx(_components.code, {\n children: \"bma-organization-id\"\n }), \" (\", _jsx(_components.code, {\n children: \"org_…\"\n }), \"). The workspace is the one \", _jsx(_components.code, {\n children: \"bma-workspace-id\"\n }), \" (or \", _jsx(_components.code, {\n children: \"anthropic-workspace-id\"\n }), \") names, else the credential’s own; a credential that can use several workspaces must name one (400 \", _jsx(_components.code, {\n children: \"project_required\"\n }), \"), and a workspace the caller cannot use answers 404.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Limits:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Request body: at most 64 KiB of JSON.\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"name\"\n }), \": at most 255 characters.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"metadata\"\n }), \": at most 16 keys; keys 1 to 64 characters, values up to 512 characters.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"external_user_details\"\n }), \" strings (\", _jsx(_components.code, {\n children: \"email_hash\"\n }), \", \", _jsx(_components.code, {\n children: \"name_hash\"\n }), \", \", _jsx(_components.code, {\n children: \"reference_id\"\n }), \"): 1 to 255 characters; \", _jsx(_components.code, {\n children: \"onboarded_at\"\n }), \" at most 1 minute in the future.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Field rule violations are 400 \", _jsx(_components.code, {\n children: \"invalid_request_error\"\n }), \" without an \", _jsx(_components.code, {\n children: \"error.code\"\n }), \"; the message names the field.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Rate limit: one request of the organization’s write budget (\", _jsx(_components.a, {\n href: \"https://docs.beeos.ai/guides/limits\",\n children: \"Rate limits\"\n }), \").\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Errors\"\n }), \" (besides the \", _jsx(_components.a, {\n href: \"https://docs.beeos.ai/api-reference/errors\",\n children: \"common errors\"\n }), \" (401 authentication, 429 \", _jsx(_components.code, {\n children: \"rate_limited\"\n }), \", 500)):\"]\n }), \"\\n\", _jsxs(_components.table, {\n children: [_jsx(_components.thead, {\n children: _jsxs(_components.tr, {\n children: [_jsx(_components.th, {\n children: \"Status\"\n }), _jsx(_components.th, {\n children: _jsx(_components.code, {\n children: \"error.type\"\n })\n }), _jsx(_components.th, {\n children: _jsx(_components.code, {\n children: \"error.code\"\n })\n }), _jsx(_components.th, {\n children: \"Cause\"\n }), _jsx(_components.th, {\n children: \"Fix\"\n })]\n })\n }), _jsxs(_components.tbody, {\n children: [_jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"400\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invalid_request_error\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"idempotency_key_reused\"\n })\n }), _jsxs(_components.td, {\n children: [\"The \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" was used with a different request within the last 24 hours.\"]\n }), _jsx(_components.td, {\n children: \"Correct the request as the message describes and send it again; the same request will keep failing.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"400\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invalid_request_error\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invalid_body\"\n })\n }), _jsx(_components.td, {\n children: \"The body is not a JSON object, or is larger than 64 KiB.\"\n }), _jsx(_components.td, {\n children: \"Correct the request as the message describes and send it again; the same request will keep failing.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"400\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invalid_request_error\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invalid_idempotency_key\"\n })\n }), _jsxs(_components.td, {\n children: [_jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" is not 1 to 255 visible ASCII characters.\"]\n }), _jsx(_components.td, {\n children: \"Correct the request as the message describes and send it again; the same request will keep failing.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"400\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invalid_request_error\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"organization_required\"\n })\n }), _jsxs(_components.td, {\n children: [\"A user credential sent no \", _jsx(_components.code, {\n children: \"bma-organization-id\"\n }), \" header.\"]\n }), _jsxs(_components.td, {\n children: [\"Send \", _jsx(_components.code, {\n children: \"bma-organization-id\"\n }), \" with the \", _jsx(_components.code, {\n children: \"org_…\"\n }), \" ID of the organization.\"]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"400\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invalid_request_error\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"project_required\"\n })\n }), _jsx(_components.td, {\n children: \"The credential can use several workspaces and the request names none.\"\n }), _jsx(_components.td, {\n children: \"Correct the request as the message describes and send it again; the same request will keep failing.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"400\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invalid_request_error\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"workspace_id_conflict\"\n })\n }), _jsxs(_components.td, {\n children: [_jsx(_components.code, {\n children: \"bma-workspace-id\"\n }), \" and \", _jsx(_components.code, {\n children: \"anthropic-workspace-id\"\n }), \" name different workspaces.\"]\n }), _jsx(_components.td, {\n children: \"Correct the request as the message describes and send it again; the same request will keep failing.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"403\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"permission_error\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"permission_denied\"\n })\n }), _jsxs(_components.td, {\n children: [\"The caller’s role in the workspace is neither \", _jsx(_components.code, {\n children: \"workspace_admin\"\n }), \" nor \", _jsx(_components.code, {\n children: \"workspace_developer\"\n }), \", or the credential cannot call this API.\"]\n }), _jsx(_components.td, {\n children: \"Use a credential with the required role or access; retrying with the same credential will not help.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"409\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"conflict_error\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"idempotency_key_in_use\"\n })\n }), _jsxs(_components.td, {\n children: [\"A request with the same \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" is still running.\"]\n }), _jsx(_components.td, {\n children: \"Retry the same request after a short delay.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: \"413\"\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"request_too_large\"\n })\n }), _jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"request_too_large\"\n })\n }), _jsx(_components.td, {\n children: \"The body is larger than 1 MiB.\"\n }), _jsx(_components.td, {\n children: \"Reduce the size of the request body or upload in smaller parts.\"\n })]\n })]\n })]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"/api-reference/bma.openapi.yaml post /v1/user_profiles","description":"Records a user profile in the workspace the request acts in: an entity (a person or business) that the caller's platform serves through the API, with the facts the platform states about it. Every field is optional; `access_type` defaults to `application`. BMA stores what is sent and grants no trust, so `trust_grants` stays empty. `Idempotency-Key` is supported: the same key and body within 24 hours replays the first answer instead of creating a second profile. With the `anthropic-beta` header `user-profiles-2026-03-24` or `user-profiles-2026-08-18` the body takes the earlier top-level `external_id` (and, for 08-18, `external_user_onboarded_at`) instead of `external_user_details`.\n\n**Authorization:** `workspace_admin` or `workspace_developer` in the workspace the request acts in (organization owners and admins hold `workspace_admin` everywhere; a workspace organization API key acts as `workspace_developer`, an admin key as admin); other roles are refused with 403 `permission_denied`. Accepted credentials: an organization API key (`x-api-key: bma_org_v1_…`), or a personal access token (`Authorization: Bearer bma_pat_v1_…`), signed-in dashboard access token or dashboard session 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.\n\n**Limits:**\n\n- Request body: at most 64 KiB of JSON.\n- `name`: at most 255 characters.\n- `metadata`: at most 16 keys; keys 1 to 64 characters, values up to 512 characters.\n- `external_user_details` strings (`email_hash`, `name_hash`, `reference_id`): 1 to 255 characters; `onboarded_at` at most 1 minute in the future.\n- Field rule violations are 400 `invalid_request_error` without an `error.code`; the message names the field.\n- Rate limit: one request of the organization's write budget ([Rate limits](https://docs.beeos.ai/guides/limits)).\n\n**Errors** (besides the [common errors](https://docs.beeos.ai/api-reference/errors) (401 authentication, 429 `rate_limited`, 500)):\n\n| Status | `error.type` | `error.code` | Cause | Fix |\n| --- | --- | --- | --- | --- |\n| 400 | `invalid_request_error` | `idempotency_key_reused` | The `Idempotency-Key` was used with a different request within the last 24 hours. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 400 | `invalid_request_error` | `invalid_body` | The body is not a JSON object, or is larger than 64 KiB. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 400 | `invalid_request_error` | `invalid_idempotency_key` | `Idempotency-Key` is not 1 to 255 visible ASCII characters. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 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. |\n| 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. |\n| 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. |\n| 403 | `permission_error` | `permission_denied` | The caller's role in the workspace is neither `workspace_admin` nor `workspace_developer`, or the credential cannot call this API. | Use a credential with the required role or access; retrying with the same credential will not help. |\n| 409 | `conflict_error` | `idempotency_key_in_use` | A request with the same `Idempotency-Key` is still running. | Retry the same request after a short delay. |\n| 413 | `request_too_large` | `request_too_large` | The body is larger than 1 MiB. | Reduce the size of the request body or upload in smaller parts. |","href":"/api-reference/endpoints/user-profiles/create-a-user-profile","title":"Create a user profile"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createUserProfile","tags":["User profiles"],"summary":"Create a user profile","description":"Records a user profile in the workspace the request acts in: an entity (a person or business) that the caller's platform serves through the API, with the facts the platform states about it. Every field is optional; `access_type` defaults to `application`. BMA stores what is sent and grants no trust, so `trust_grants` stays empty. `Idempotency-Key` is supported: the same key and body within 24 hours replays the first answer instead of creating a second profile. With the `anthropic-beta` header `user-profiles-2026-03-24` or `user-profiles-2026-08-18` the body takes the earlier top-level `external_id` (and, for 08-18, `external_user_onboarded_at`) instead of `external_user_details`.\n\n**Authorization:** `workspace_admin` or `workspace_developer` in the workspace the request acts in (organization owners and admins hold `workspace_admin` everywhere; a workspace organization API key acts as `workspace_developer`, an admin key as admin); other roles are refused with 403 `permission_denied`. Accepted credentials: an organization API key (`x-api-key: bma_org_v1_…`), or a personal access token (`Authorization: Bearer bma_pat_v1_…`), signed-in dashboard access token or dashboard session 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.\n\n**Limits:**\n\n- Request body: at most 64 KiB of JSON.\n- `name`: at most 255 characters.\n- `metadata`: at most 16 keys; keys 1 to 64 characters, values up to 512 characters.\n- `external_user_details` strings (`email_hash`, `name_hash`, `reference_id`): 1 to 255 characters; `onboarded_at` at most 1 minute in the future.\n- Field rule violations are 400 `invalid_request_error` without an `error.code`; the message names the field.\n- Rate limit: one request of the organization's write budget ([Rate limits](https://docs.beeos.ai/guides/limits)).\n\n**Errors** (besides the [common errors](https://docs.beeos.ai/api-reference/errors) (401 authentication, 429 `rate_limited`, 500)):\n\n| Status | `error.type` | `error.code` | Cause | Fix |\n| --- | --- | --- | --- | --- |\n| 400 | `invalid_request_error` | `idempotency_key_reused` | The `Idempotency-Key` was used with a different request within the last 24 hours. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 400 | `invalid_request_error` | `invalid_body` | The body is not a JSON object, or is larger than 64 KiB. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 400 | `invalid_request_error` | `invalid_idempotency_key` | `Idempotency-Key` is not 1 to 255 visible ASCII characters. | Correct the request as the message describes and send it again; the same request will keep failing. |\n| 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. |\n| 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. |\n| 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. |\n| 403 | `permission_error` | `permission_denied` | The caller's role in the workspace is neither `workspace_admin` nor `workspace_developer`, or the credential cannot call this API. | Use a credential with the required role or access; retrying with the same credential will not help. |\n| 409 | `conflict_error` | `idempotency_key_in_use` | A request with the same `Idempotency-Key` is still running. | Retry the same request after a short delay. |\n| 413 | `request_too_large` | `request_too_large` | The body is larger than 1 MiB. | Reduce the size of the request body or upload in smaller parts. |","x-bma-auth":"`workspace_admin` or `workspace_developer` in the workspace the request acts in (organization owners and admins hold `workspace_admin` everywhere; a workspace organization API key acts as `workspace_developer`, an admin key as admin); other roles are refused with 403 `permission_denied`. Accepted credentials: an organization API key (`x-api-key: bma_org_v1_…`), or a personal access token (`Authorization: Bearer bma_pat_v1_…`), signed-in dashboard access token or dashboard session 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.","x-bma-limits":["Request body: at most 64 KiB of JSON.","`name`: at most 255 characters.","`metadata`: at most 16 keys; keys 1 to 64 characters, values up to 512 characters.","`external_user_details` strings (`email_hash`, `name_hash`, `reference_id`): 1 to 255 characters; `onboarded_at` at most 1 minute in the future.","Field rule violations are 400 `invalid_request_error` without an `error.code`; the message names the field."],"x-bma-errors":[{"code":"organization_required","when":"A user credential sent no `bma-organization-id` header.","fix":"Send `bma-organization-id` with the `org_…` ID of the organization."},{"code":"project_required","when":"The credential can use several workspaces and the request names none."},{"code":"workspace_id_conflict","when":"`bma-workspace-id` and `anthropic-workspace-id` name different workspaces."},{"code":"permission_denied","when":"The caller's role in the workspace is neither `workspace_admin` nor `workspace_developer`, or the credential cannot call this API."},{"code":"invalid_body","when":"The body is not a JSON object, or is larger than 64 KiB."},{"code":"idempotency_key_reused","when":"The `Idempotency-Key` was used with a different request within the last 24 hours."},{"code":"idempotency_key_in_use","when":"A request with the same `Idempotency-Key` is still running."},{"code":"invalid_idempotency_key","when":"`Idempotency-Key` is not 1 to 255 visible ASCII characters."},{"code":"request_too_large","when":"The body is larger than 1 MiB."}],"parameters":["6fbcd37d-1755-4517-819a-87b3b14b4542","623ae68f-0cbc-460d-8e88-0d8dd7274f34"],"requestBody":"2d64bdfa-6453-4186-8510-8883dd424d8a","responses":{"200":"b326013a-d89a-4063-9917-e3a04a45b636","4XX":"4d3aa39b-a084-49fd-912d-268236151c5b","5XX":"35f1e929-0491-4860-bf7c-a76a1cd97023"},"x-bma-extension":false,"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -sS -X POST \"$BMA_BASE_URL/v1/user_profiles\" \\\n -H \"x-api-key: $BMA_API_KEY\" \\\n -H \"bma-workspace-id: $BMA_PROJECT_ID\" \\\n -H \"Idempotency-Key: $(uuidgen)\" \\\n -H \"content-type: application/json\" \\\n -d '{\n \"name\": \"Northwind Traders\",\n \"access_type\": \"application\",\n \"metadata\": {\n \"plan\": \"enterprise\"\n }\n}'"},{"lang":"python","label":"Python","source":"from bma_sdk import Bma\n\nclient = Bma() # BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nresult = client.beta.user_profiles.create(\n name=\"Northwind Traders\",\n access_type=\"application\",\n metadata={\n \"plan\": \"enterprise\",\n },\n)\nprint(result)\n"},{"lang":"typescript","label":"TypeScript","source":"import { BmaClient } from \"@beeos-ai/bma-sdk\";\n\nconst client = new BmaClient(); // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nconst result = await client.beta.userProfiles.create({\n name: \"Northwind Traders\",\n access_type: \"application\",\n metadata: {\n plan: \"enterprise\",\n },\n});\nconsole.log(result);\n"},{"lang":"go","label":"Go","source":"import (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\tbmasdk \"github.com/beeos-ai/bma-sdk/v4\"\n)\n\nclient := bmasdk.NewClient() // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\nvar res map[string]any\nerr := client.Execute(context.TODO(), http.MethodPost, \"v1/user_profiles\",\n\tmap[string]any{\n\t\t\"name\": \"Northwind Traders\",\n\t\t\"access_type\": \"application\",\n\t\t\"metadata\": map[string]any{\n\t\t\t\"plan\": \"enterprise\",\n\t\t},\n\t}, \u0026res)\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Println(res)\n"},{"lang":"bash","label":"CLI","source":"bma user-profiles create --name 'Northwind Traders' --access-type application --metadata '{\"plan\":\"enterprise\"}'"}],"method":"post","type":"path","servers":["3a400b67-2cb7-495a-8149-63187ba58c85","e271f14d-0638-485a-8119-500280af2bdf"],"security":["819cb514-2694-42bb-8cf5-54d7617f16f9","8ebf88e5-4d9b-4d12-b5ad-aa441de97940"],"path":"/v1/user_profiles","baseUrlOptions":["https://api.beeos.ai","http://127.0.0.1:58080"],"title":"Create a user profile","codeSamples":[{"label":"curl","lang":"bash","source":"curl -sS -X POST \"$BMA_BASE_URL/v1/user_profiles\" \\\n -H \"x-api-key: $BMA_API_KEY\" \\\n -H \"bma-workspace-id: $BMA_PROJECT_ID\" \\\n -H \"Idempotency-Key: $(uuidgen)\" \\\n -H \"content-type: application/json\" \\\n -d '{\n \"name\": \"Northwind Traders\",\n \"access_type\": \"application\",\n \"metadata\": {\n \"plan\": \"enterprise\"\n }\n}'"},{"label":"Python","lang":"python","source":"from bma_sdk import Bma\n\nclient = Bma() # BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nresult = client.beta.user_profiles.create(\n name=\"Northwind Traders\",\n access_type=\"application\",\n metadata={\n \"plan\": \"enterprise\",\n },\n)\nprint(result)\n"},{"label":"TypeScript","lang":"typescript","source":"import { BmaClient } from \"@beeos-ai/bma-sdk\";\n\nconst client = new BmaClient(); // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nconst result = await client.beta.userProfiles.create({\n name: \"Northwind Traders\",\n access_type: \"application\",\n metadata: {\n plan: \"enterprise\",\n },\n});\nconsole.log(result);\n"},{"label":"Go","lang":"go","source":"import (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\tbmasdk \"github.com/beeos-ai/bma-sdk/v4\"\n)\n\nclient := bmasdk.NewClient() // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\nvar res map[string]any\nerr := client.Execute(context.TODO(), http.MethodPost, \"v1/user_profiles\",\n\tmap[string]any{\n\t\t\"name\": \"Northwind Traders\",\n\t\t\"access_type\": \"application\",\n\t\t\"metadata\": map[string]any{\n\t\t\t\"plan\": \"enterprise\",\n\t\t},\n\t}, \u0026res)\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Println(res)\n"},{"label":"CLI","lang":"bash","source":"bma user-profiles create --name 'Northwind Traders' --access-type application --metadata '{\"plan\":\"enterprise\"}'"}],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"6fbcd37d-1755-4517-819a-87b3b14b4542":{"name":"bma-workspace-id","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict.","uniqueKey":"","typeLabel":"string"},"description":"Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict."},"623ae68f-0cbc-460d-8e88-0d8dd7274f34":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"isRequired":false,"description":"Replays the first result of a create; the same key with another body is 400 `idempotency_key_reused`, one while the first still runs 409 `idempotency_key_in_use`.","uniqueKey":"","typeLabel":"string"},"description":"Replays the first result of a create; the same key with another body is 400 `idempotency_key_reused`, one while the first still runs 409 `idempotency_key_in_use`."}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"The fields of a user profile create or update; every field is optional. On an update a field that is left out stays as it is.","properties":{"name":{"oneOf":[{"type":"string","description":"Display name of the entity, at most 255 characters; null clears it.","uniqueKey":"name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name of the entity, at most 255 characters; null clears it.","uniqueKey":"name.oneOf.1","typeLabel":"null"}],"uniqueKey":"name","typeLabel":"string | null"},"access_type":{"type":"string","enum":["application","passthrough"],"description":"`application` (the default on create) or `passthrough`.","uniqueKey":"access_type","typeLabel":"enum\u003cstring>"},"external_user_details":{"type":"object","description":"The facts to state about the entity (see UserProfileDetails); every field optional, and a field left out stays as it is. Null is accepted on create and refused on an update (a stated detail cannot be cleared); an unknown field is 400. Not accepted with a legacy `anthropic-beta` user-profiles header.","properties":{"account_status":{"oneOf":[{"type":"string","description":"`active`, `suspended` or `blocked`.","uniqueKey":"external_user_details.account_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"`active`, `suspended` or `blocked`.","uniqueKey":"external_user_details.account_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_user_details.account_status","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 code in upper case, such as `DE`.","uniqueKey":"external_user_details.country.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 3166-1 alpha-2 code in upper case, such as `DE`.","uniqueKey":"external_user_details.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_user_details.country","typeLabel":"string | null"},"email_hash":{"oneOf":[{"type":"string","description":"A hash of the entity's email address, 1 to 255 characters.","uniqueKey":"external_user_details.email_hash.oneOf.0","typeLabel":"string"},{"type":"null","description":"A hash of the entity's email address, 1 to 255 characters.","uniqueKey":"external_user_details.email_hash.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_user_details.email_hash","typeLabel":"string | null"},"entity_type":{"oneOf":[{"type":"string","description":"`individual`, `business`, `non_profit` or `government`.","uniqueKey":"external_user_details.entity_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"`individual`, `business`, `non_profit` or `government`.","uniqueKey":"external_user_details.entity_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_user_details.entity_type","typeLabel":"string | null"},"name_hash":{"oneOf":[{"type":"string","description":"A hash of the entity's name, 1 to 255 characters.","uniqueKey":"external_user_details.name_hash.oneOf.0","typeLabel":"string"},{"type":"null","description":"A hash of the entity's name, 1 to 255 characters.","uniqueKey":"external_user_details.name_hash.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_user_details.name_hash","typeLabel":"string | null"},"onboarded_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the entity was onboarded (complete RFC 3339 time, at most 1 minute in the future).","uniqueKey":"external_user_details.onboarded_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the entity was onboarded (complete RFC 3339 time, at most 1 minute in the future).","uniqueKey":"external_user_details.onboarded_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_user_details.onboarded_at","typeLabel":"string\u003cdate-time> | null"},"reference_id":{"oneOf":[{"type":"string","description":"The caller's own identifier of the entity, 1 to 255 characters.","uniqueKey":"external_user_details.reference_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The caller's own identifier of the entity, 1 to 255 characters.","uniqueKey":"external_user_details.reference_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_user_details.reference_id","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"external_user_details","typeLabel":"object"},"external_id":{"oneOf":[{"type":"string","description":"Legacy spelling of `external_user_details.reference_id`, accepted only with the `anthropic-beta` header `user-profiles-2026-03-24` or `user-profiles-2026-08-18` (otherwise 400). Null is refused on an update.","uniqueKey":"external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Legacy spelling of `external_user_details.reference_id`, accepted only with the `anthropic-beta` header `user-profiles-2026-03-24` or `user-profiles-2026-08-18` (otherwise 400). Null is refused on an update.","uniqueKey":"external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_id","typeLabel":"string | null"},"external_user_onboarded_at":{"oneOf":[{"type":"string","format":"date-time","description":"Legacy spelling of `external_user_details.onboarded_at`, accepted only with the `anthropic-beta` header `user-profiles-2026-08-18` (otherwise 400). Null is refused on an update.","uniqueKey":"external_user_onboarded_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Legacy spelling of `external_user_details.onboarded_at`, accepted only with the `anthropic-beta` header `user-profiles-2026-08-18` (otherwise 400). Null is refused on an update.","uniqueKey":"external_user_onboarded_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_user_onboarded_at","typeLabel":"string\u003cdate-time> | null"},"metadata":{"type":"object","description":"String key-value pairs to store with the profile (keys 1 to 64 characters, values up to 512, at most 16 keys in total). On create every value must be non-empty; on an update the pairs merge into the stored map and an empty value removes its key.","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"metadata","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"example":{"name":"Northwind Traders","access_type":"application","metadata":{"plan":"enterprise"}},"examples":{"Example":{"title":"Example","value":{"name":"Northwind Traders","access_type":"application","metadata":{"plan":"enterprise"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"b326013a-d89a-4063-9917-e3a04a45b636":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","description":"A user profile: an entity the caller's platform serves through the API, kept per workspace with the facts the platform states about it.","required":["id","type","name","access_type","external_user_details","metadata","trust_grants","created_at","updated_at"],"properties":{"id":{"type":"string","description":"ID of the user profile (`uprof_` followed by 26 lowercase base32 characters).","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"type":{"type":"string","const":"user_profile","description":"Always `user_profile`.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"name":{"oneOf":[{"type":"string","description":"Display name of the entity, at most 255 characters; null when none was given.","isRequired":true,"uniqueKey":"name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name of the entity, at most 255 characters; null when none was given.","isRequired":true,"uniqueKey":"name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"name","typeLabel":"string | null"},"access_type":{"type":"string","enum":["application","passthrough"],"description":"How the entity reaches the API through the caller's platform, `application` (the default) or `passthrough`.","isRequired":true,"uniqueKey":"access_type","typeLabel":"enum\u003cstring>"},"external_user_details":{"type":"object","description":"The facts the caller's platform stated about the entity; each is null until it is sent.","required":["account_status","country","email_hash","entity_type","name_hash","onboarded_at","reference_id"],"properties":{"account_status":{"oneOf":[{"type":"string","description":"The entity's account status on the caller's platform, `active`, `suspended` or `blocked`.","isRequired":true,"uniqueKey":"external_user_details.account_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"The entity's account status on the caller's platform, `active`, `suspended` or `blocked`.","isRequired":true,"uniqueKey":"external_user_details.account_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_user_details.account_status","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"The entity's country as an ISO 3166-1 alpha-2 code in upper case, such as `DE`.","isRequired":true,"uniqueKey":"external_user_details.country.oneOf.0","typeLabel":"string"},{"type":"null","description":"The entity's country as an ISO 3166-1 alpha-2 code in upper case, such as `DE`.","isRequired":true,"uniqueKey":"external_user_details.country.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_user_details.country","typeLabel":"string | null"},"email_hash":{"oneOf":[{"type":"string","description":"A hash of the entity's email address, as the caller computed it (1 to 255 characters).","isRequired":true,"uniqueKey":"external_user_details.email_hash.oneOf.0","typeLabel":"string"},{"type":"null","description":"A hash of the entity's email address, as the caller computed it (1 to 255 characters).","isRequired":true,"uniqueKey":"external_user_details.email_hash.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_user_details.email_hash","typeLabel":"string | null"},"entity_type":{"oneOf":[{"type":"string","description":"The kind of entity, `individual`, `business`, `non_profit` or `government`.","isRequired":true,"uniqueKey":"external_user_details.entity_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"The kind of entity, `individual`, `business`, `non_profit` or `government`.","isRequired":true,"uniqueKey":"external_user_details.entity_type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_user_details.entity_type","typeLabel":"string | null"},"name_hash":{"oneOf":[{"type":"string","description":"A hash of the entity's name, as the caller computed it (1 to 255 characters).","isRequired":true,"uniqueKey":"external_user_details.name_hash.oneOf.0","typeLabel":"string"},{"type":"null","description":"A hash of the entity's name, as the caller computed it (1 to 255 characters).","isRequired":true,"uniqueKey":"external_user_details.name_hash.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_user_details.name_hash","typeLabel":"string | null"},"onboarded_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the entity was onboarded on the caller's platform (RFC 3339, UTC).","isRequired":true,"uniqueKey":"external_user_details.onboarded_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the entity was onboarded on the caller's platform (RFC 3339, UTC).","isRequired":true,"uniqueKey":"external_user_details.onboarded_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_user_details.onboarded_at","typeLabel":"string\u003cdate-time> | null"},"reference_id":{"oneOf":[{"type":"string","description":"The caller's own identifier of the entity (1 to 255 characters).","isRequired":true,"uniqueKey":"external_user_details.reference_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The caller's own identifier of the entity (1 to 255 characters).","isRequired":true,"uniqueKey":"external_user_details.reference_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_user_details.reference_id","typeLabel":"string | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"external_user_details","typeLabel":"object"},"metadata":{"type":"object","description":"The caller's own string key-value pairs (at most 16 keys); `{}` when none.","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"metadata","typeLabel":"object"},"trust_grants":{"type":"object","description":"Always empty; BMA has no trust program.","additionalProperties":{"type":"string","uniqueKey":"trust_grants.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"trust_grants","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","description":"When the profile was created (RFC 3339, UTC).","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"When the profile last changed (RFC 3339, UTC); equal to `created_at` until the first update.","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"external_id":{"oneOf":[{"type":"string","description":"Legacy field: the value of `external_user_details.reference_id`, returned only when the request carries the `anthropic-beta` header `user-profiles-2026-03-24` or `user-profiles-2026-08-18`.","uniqueKey":"external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Legacy field: the value of `external_user_details.reference_id`, returned only when the request carries the `anthropic-beta` header `user-profiles-2026-03-24` or `user-profiles-2026-08-18`.","uniqueKey":"external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_id","typeLabel":"string | null"},"external_user_onboarded_at":{"oneOf":[{"type":"string","format":"date-time","description":"Legacy field: the value of `external_user_details.onboarded_at`, returned only when the request carries the `anthropic-beta` header `user-profiles-2026-08-18`.","uniqueKey":"external_user_onboarded_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Legacy field: the value of `external_user_details.onboarded_at`, returned only when the request carries the `anthropic-beta` header `user-profiles-2026-08-18`.","uniqueKey":"external_user_onboarded_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_user_onboarded_at","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"example":{"type":"user_profile","id":"uprof_agray2nefbytbbjt7cslohtp2q","name":"Northwind Traders","access_type":"application","external_user_details":{"account_status":null,"country":null,"email_hash":null,"entity_type":null,"name_hash":null,"onboarded_at":null,"reference_id":null},"metadata":{"plan":"enterprise"},"trust_grants":{},"created_at":"2026-11-18T09:12:44.150Z","updated_at":"2026-11-18T09:12:44.150Z"},"examples":{"Example":{"title":"Example","value":{"type":"user_profile","id":"uprof_agray2nefbytbbjt7cslohtp2q","name":"Northwind Traders","access_type":"application","external_user_details":{"account_status":null,"country":null,"email_hash":null,"entity_type":null,"name_hash":null,"onboarded_at":null,"reference_id":null},"metadata":{"plan":"enterprise"},"trust_grants":{},"created_at":"2026-11-18T09:12:44.150Z","updated_at":"2026-11-18T09:12:44.150Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"4d3aa39b-a084-49fd-912d-268236151c5b":{"description":"Anthropic error envelope.","content":{"application/json":{"schema":{"type":"object","x-bma-official-shape":"ErrorResponse","x-bma-official-fields":["type","error","request_id"],"description":"The error envelope of every failed request.","required":["type","error"],"properties":{"type":{"const":"error","description":"Always `error`.","isRequired":true,"uniqueKey":"type","typeLabel":"any"},"error":{"type":"object","description":"What went wrong.","required":["type","message"],"properties":{"type":{"type":"string","description":"The error class, which fixes the HTTP status (for example `not_found_error` for 404).","enum":["invalid_request_error","authentication_error","permission_error","billing_error","not_found_error","conflict_error","request_too_large","rate_limit_error","api_error","timeout_error","overloaded_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation; its wording may change, so branch on `code`.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"Stable snake_case reason ([error codes](https://docs.beeos.ai/api-reference/errors)); absent when the error has none. BMA repeats it as `bma_error_code`.","uniqueKey":"error.code","typeLabel":"string"},"bma_error_code":{"type":"string","description":"The same value as `code`, present whenever `code` is (BMA extension).","uniqueKey":"error.bma_error_code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"ID of the request, to quote when reporting a problem.","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","bma_error_code":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"35f1e929-0491-4860-bf7c-a76a1cd97023":{"description":"Anthropic error envelope.","content":{"application/json":{"schema":{"type":"object","x-bma-official-shape":"ErrorResponse","x-bma-official-fields":["type","error","request_id"],"description":"The error envelope of every failed request.","required":["type","error"],"properties":{"type":{"const":"error","description":"Always `error`.","isRequired":true,"uniqueKey":"type","typeLabel":"any"},"error":{"type":"object","description":"What went wrong.","required":["type","message"],"properties":{"type":{"type":"string","description":"The error class, which fixes the HTTP status (for example `not_found_error` for 404).","enum":["invalid_request_error","authentication_error","permission_error","billing_error","not_found_error","conflict_error","request_too_large","rate_limit_error","api_error","timeout_error","overloaded_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation; its wording may change, so branch on `code`.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"Stable snake_case reason ([error codes](https://docs.beeos.ai/api-reference/errors)); absent when the error has none. BMA repeats it as `bma_error_code`.","uniqueKey":"error.code","typeLabel":"string"},"bma_error_code":{"type":"string","description":"The same value as `code`, present whenever `code` is (BMA extension).","uniqueKey":"error.bma_error_code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"ID of the request, to quote when reporting a problem.","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","bma_error_code":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"819cb514-2694-42bb-8cf5-54d7617f16f9":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKey"}},"8ebf88e5-4d9b-4d12-b5ad-aa441de97940":{"bearer":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"}}},"servers":{"3a400b67-2cb7-495a-8149-63187ba58c85":{"url":"https://api.beeos.ai","description":"Production"},"e271f14d-0638-485a-8119-500280af2bdf":{"url":"http://127.0.0.1:58080","description":"Self-hosted (docker compose quickstart)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-key"}],"title":"apiKey"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"api-reference/bma.openapi.yaml"},"subdomain":"localhost","siteName":"BMA Developer Docs","title":"Create a user profile - BMA Developer Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoints/user-profiles/create-a-user-profile","matchLevel":0},"zh":{"href":"/zh/api-reference/endpoints/user-profiles/create-a-user-profile","matchLevel":1},"zh-Hant":{"href":"/zh-hant/api-reference/endpoints/user-profiles/create-a-user-profile","matchLevel":1},"ja":{"href":"/ja/api-reference/endpoints/user-profiles/create-a-user-profile","matchLevel":1},"ko":{"href":"/ko/api-reference/endpoints/user-profiles/create-a-user-profile","matchLevel":1}}},"originalFileLocation":"api-reference/endpoints/user-profiles/create-a-user-profile.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Records a user profile in the workspace the request acts in: an entity (a person or business) that the caller\u0026#x27;s platform serves through the API, with the facts the platform states about it. Every field is optional; access_type defaults to application. BMA stores what is sent and grants no trust, so trust_grants stays empty. Idempotency-Key is supported: the same key and body within 24 hours replays the first answer instead of creating a second profile. With the anthropic-beta header user-profiles-2026-03-24 or user-profiles-2026-08-18 the body takes the earlier top-level external_id (and, for 08-18, external_user_onboarded_at) instead of external_user_details. Authorization: workspace_admin or workspace_developer in the workspace the request acts in (organization owners and admins hold workspace_admin everywhere; a workspace organization API key acts as workspace_developer, an admin key as admin); other roles are refused with 403 permission_denied. Accepted credentials: an organization API key (x-api-key: bma_org_v1_…), or a personal access token (Authorization: Bearer bma_pat_v1_…), signed-in dashboard access token or dashboard session naming the organization with bma-organization-id (org_…). The workspace is the one bma-workspace-id (or anthropic-workspace-id) names, else the credential\u0026#x27;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: - Request body: at most 64 KiB of JSON. - name: at most 255 characters. - metadata: at most 16 keys; keys 1 to 64 characters, values up to 512 characters. - external_user_details strings (email_hash, name_hash, reference_id): 1 to 255 characters; onboarded_at at most 1 minute in the future. - Field rule violations are 400 invalid_request_error without an error.code; the message names the field. - Rate limit: one request of the organization\u0026#x27;s write 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 | idempotency_key_reused | The Idempotency-Key was used with a different request within the last 24 hours. | Correct the request as the message describes and send it again; the same request will keep failing. | | 400 | invalid_request_error | invalid_body | The body is not a JSON object, or is larger than 64 KiB. | Correct the request as the message describes and send it again; the same request will keep failing. | | 400 | invalid_request_error | invalid_idempotency_key | Idempotency-Key is not 1 to 255 visible ASCII characters. | 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. | | 403 | permission_error | permission_denied | The caller\u0026#x27;s role in the workspace is neither workspace_admin nor workspace_developer, or the credential cannot call this API. | Use a credential with the required role or access; retrying with the same credential will not help. | | 409 | conflict_error | idempotency_key_in_use | A request with the same Idempotency-Key is still running. | Retry the same request after a short delay. | | 413 | request_too_large | request_too_large | The body is larger than 1 MiB. | Reduce the size of the request body or upload in smaller parts. |\">\u003cmeta data-mint-head name=\"application-name\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a user profile - BMA Developer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Records a user profile in the workspace the request acts in: an entity (a person or business) that the caller\u0026#x27;s platform serves through the API, with the facts the platform states about it. Every field is optional; access_type defaults to application. BMA stores what is sent and grants no trust, so trust_grants stays empty. Idempotency-Key is supported: the same key and body within 24 hours replays the first answer instead of creating a second profile. With the anthropic-beta header user-profiles-2026-03-24 or user-profiles-2026-08-18 the body takes the earlier top-level external_id (and, for 08-18, external_user_onboarded_at) instead of external_user_details. Authorization: workspace_admin or workspace_developer in the workspace the request acts in (organization owners and admins hold workspace_admin everywhere; a workspace organization API key acts as workspace_developer, an admin key as admin); other roles are refused with 403 permission_denied. Accepted credentials: an organization API key (x-api-key: bma_org_v1_…), or a personal access token (Authorization: Bearer bma_pat_v1_…), signed-in dashboard access token or dashboard session naming the organization with bma-organization-id (org_…). The workspace is the one bma-workspace-id (or anthropic-workspace-id) names, else the credential\u0026#x27;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: - Request body: at most 64 KiB of JSON. - name: at most 255 characters. - metadata: at most 16 keys; keys 1 to 64 characters, values up to 512 characters. - external_user_details strings (email_hash, name_hash, reference_id): 1 to 255 characters; onboarded_at at most 1 minute in the future. - Field rule violations are 400 invalid_request_error without an error.code; the message names the field. - Rate limit: one request of the organization\u0026#x27;s write 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 | idempotency_key_reused | The Idempotency-Key was used with a different request within the last 24 hours. | Correct the request as the message describes and send it again; the same request will keep failing. | | 400 | invalid_request_error | invalid_body | The body is not a JSON object, or is larger than 64 KiB. | Correct the request as the message describes and send it again; the same request will keep failing. | | 400 | invalid_request_error | invalid_idempotency_key | Idempotency-Key is not 1 to 255 visible ASCII characters. | 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. | | 403 | permission_error | permission_denied | The caller\u0026#x27;s role in the workspace is neither workspace_admin nor workspace_developer, or the credential cannot call this API. | Use a credential with the required role or access; retrying with the same credential will not help. | | 409 | conflict_error | idempotency_key_in_use | A request with the same Idempotency-Key is still running. | Retry the same request after a short delay. | | 413 | request_too_large | request_too_large | The body is larger than 1 MiB. | Reduce the size of the request body or upload in smaller parts. |\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./api-reference/endpoints/user-profiles/create-a-user-profile\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a user profile - BMA Developer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Records a user profile in the workspace the request acts in: an entity (a person or business) that the caller\u0026#x27;s platform serves through the API, with the facts the platform states about it. Every field is optional; access_type defaults to application. BMA stores what is sent and grants no trust, so trust_grants stays empty. Idempotency-Key is supported: the same key and body within 24 hours replays the first answer instead of creating a second profile. With the anthropic-beta header user-profiles-2026-03-24 or user-profiles-2026-08-18 the body takes the earlier top-level external_id (and, for 08-18, external_user_onboarded_at) instead of external_user_details. Authorization: workspace_admin or workspace_developer in the workspace the request acts in (organization owners and admins hold workspace_admin everywhere; a workspace organization API key acts as workspace_developer, an admin key as admin); other roles are refused with 403 permission_denied. Accepted credentials: an organization API key (x-api-key: bma_org_v1_…), or a personal access token (Authorization: Bearer bma_pat_v1_…), signed-in dashboard access token or dashboard session naming the organization with bma-organization-id (org_…). The workspace is the one bma-workspace-id (or anthropic-workspace-id) names, else the credential\u0026#x27;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: - Request body: at most 64 KiB of JSON. - name: at most 255 characters. - metadata: at most 16 keys; keys 1 to 64 characters, values up to 512 characters. - external_user_details strings (email_hash, name_hash, reference_id): 1 to 255 characters; onboarded_at at most 1 minute in the future. - Field rule violations are 400 invalid_request_error without an error.code; the message names the field. - Rate limit: one request of the organization\u0026#x27;s write 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 | idempotency_key_reused | The Idempotency-Key was used with a different request within the last 24 hours. | Correct the request as the message describes and send it again; the same request will keep failing. | | 400 | invalid_request_error | invalid_body | The body is not a JSON object, or is larger than 64 KiB. | Correct the request as the message describes and send it again; the same request will keep failing. | | 400 | invalid_request_error | invalid_idempotency_key | Idempotency-Key is not 1 to 255 visible ASCII characters. | 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. | | 403 | permission_error | permission_denied | The caller\u0026#x27;s role in the workspace is neither workspace_admin nor workspace_developer, or the credential cannot call this API. | Use a credential with the required role or access; retrying with the same credential will not help. | | 409 | conflict_error | idempotency_key_in_use | A request with the same Idempotency-Key is still running. | Retry the same request after a short delay. | | 413 | request_too_large | request_too_large | The body is larger than 1 MiB. | Reduce the size of the request body or upload in smaller parts. |\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F97316\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./api-reference/endpoints/user-profiles/create-a-user-profile\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/user-profiles/create-a-user-profile.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://local./api-reference/endpoints/user-profiles/create-a-user-profile\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://local./zh/api-reference/endpoints/user-profiles/create-a-user-profile\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://local./zh-hant/api-reference/endpoints/user-profiles/create-a-user-profile\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://local./ja/api-reference/endpoints/user-profiles/create-a-user-profile\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://local./ko/api-reference/endpoints/user-profiles/create-a-user-profile\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://local./api-reference/endpoints/user-profiles/create-a-user-profile\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BMA Developer Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"BMA Developer Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/user-profiles/create-a-user-profile.md","siteName":"BMA Developer Docs","nav":{"languages":[{"language":"en","default":true,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/getting-started"}]},{"tab":"API reference","groups":[{"group":"API reference","pages":[{"title":"API reference","icon":"book","href":"/api-reference/introduction"}]},{"group":"bma-sdk","pages":[{"title":"bma-sdk HTTP API","sidebarTitle":"HTTP API overview","icon":"globe","href":"/api-reference/bma-sdk/overview"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Use the official Anthropic SDK","sidebarTitle":"Anthropic SDK","icon":"scale-balanced","href":"/compatibility"},{"group":"Endpoints","expanded":true,"pages":[{"group":"Agents","pages":[{"title":"List Agents","openapi":"/api-reference/bma.openapi.yaml get /v1/agents","href":"/api-reference/endpoints/agents/list-agents"},{"title":"Create Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents","href":"/api-reference/endpoints/agents/create-agent"},{"title":"Get Agent","openapi":"/api-reference/bma.openapi.yaml get /v1/agents/{agent_id}","href":"/api-reference/endpoints/agents/get-agent"},{"title":"Update Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents/{agent_id}","href":"/api-reference/endpoints/agents/update-agent"},{"title":"Archive Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents/{agent_id}/archive","href":"/api-reference/endpoints/agents/archive-agent"},{"title":"List agent versions","openapi":"/api-reference/bma.openapi.yaml get /v1/agents/{agent_id}/versions","href":"/api-reference/endpoints/agents/list-agent-versions"}]},{"group":"Desktop sessions","pages":[{"title":"Create a desktop session","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions","href":"/api-reference/endpoints/desktop-sessions/create-a-desktop-session"},{"title":"Retrieve a desktop session (control state in `control`)","openapi":"/api-reference/bma.openapi.yaml get /v1/desktop_sessions/{desktop_session_id}","href":"/api-reference/endpoints/desktop-sessions/retrieve-a-desktop-session-control-state-in-`control`"},{"title":"Take input control","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/acquire_control","href":"/api-reference/endpoints/desktop-sessions/take-input-control"},{"title":"Send input actions","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/actions","href":"/api-reference/endpoints/desktop-sessions/send-input-actions"},{"title":"Close a desktop session","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/close","href":"/api-reference/endpoints/desktop-sessions/close-a-desktop-session"},{"title":"Hand control back to the agent","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/handback_control","href":"/api-reference/endpoints/desktop-sessions/hand-control-back-to-the-agent"},{"title":"Extend the running screen capture's keepalive deadline","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/keepalive","href":"/api-reference/endpoints/desktop-sessions/extend-the-running-screen-captures-keepalive-deadline"},{"title":"Release control","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/release_control","href":"/api-reference/endpoints/desktop-sessions/release-control"},{"title":"Renew the control lease","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/renew_control","href":"/api-reference/endpoints/desktop-sessions/renew-the-control-lease"},{"title":"Capture a screenshot","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/screenshot","href":"/api-reference/endpoints/desktop-sessions/capture-a-screenshot"},{"title":"Mint a desktop watch credential","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/tickets","href":"/api-reference/endpoints/desktop-sessions/mint-a-desktop-watch-credential"},{"title":"Revoke a screen capture viewer and confirm its connections are closed","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/viewers/{viewer}/revoke","href":"/api-reference/endpoints/desktop-sessions/revoke-a-screen-capture-viewer-and-confirm-its-connections-are-closed"}]},{"group":"Environments","pages":[{"title":"List environments with pagination support.","openapi":"/api-reference/bma.openapi.yaml get /v1/environments","href":"/api-reference/endpoints/environments/list-environments-with-pagination-support"},{"title":"Create a new environment with the specified configuration.","openapi":"/api-reference/bma.openapi.yaml post /v1/environments","href":"/api-reference/endpoints/environments/create-a-new-environment-with-the-specified-configuration"},{"title":"Retrieve a specific environment by ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/environments/{environment_id}","href":"/api-reference/endpoints/environments/retrieve-a-specific-environment-by-id"},{"title":"Update an existing environment's configuration.","openapi":"/api-reference/bma.openapi.yaml post /v1/environments/{environment_id}","href":"/api-reference/endpoints/environments/update-an-existing-environments-configuration"},{"title":"Delete an environment by ID. Returns a confirmation of the deletion.","openapi":"/api-reference/bma.openapi.yaml delete /v1/environments/{environment_id}","href":"/api-reference/endpoints/environments/delete-an-environment-by-id-returns-a-confirmation-of-the-deletion"},{"title":"Archive an environment by ID. Archived environments cannot be used to create new","openapi":"/api-reference/bma.openapi.yaml post /v1/environments/{environment_id}/archive","href":"/api-reference/endpoints/environments/archive-an-environment-by-id-archived-environments-cannot-be-used-to-create-new"}]},{"group":"Files","pages":[{"title":"List Files","openapi":"/api-reference/bma.openapi.yaml get /v1/files","href":"/api-reference/endpoints/files/list-files"},{"title":"Upload File","openapi":"/api-reference/bma.openapi.yaml post /v1/files","href":"/api-reference/endpoints/files/upload-file"},{"title":"Get File Metadata","openapi":"/api-reference/bma.openapi.yaml get /v1/files/{file_id}","href":"/api-reference/endpoints/files/get-file-metadata"},{"title":"Delete File","openapi":"/api-reference/bma.openapi.yaml delete /v1/files/{file_id}","href":"/api-reference/endpoints/files/delete-file"},{"title":"Download File","openapi":"/api-reference/bma.openapi.yaml get /v1/files/{file_id}/content","href":"/api-reference/endpoints/files/download-file"}]},{"group":"Machine pools","pages":[{"title":"List machine pools","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools","href":"/api-reference/endpoints/machine-pools/list-machine-pools"},{"title":"Create a machine pool","openapi":"/api-reference/bma.openapi.yaml post /v1/machine_pools","href":"/api-reference/endpoints/machine-pools/create-a-machine-pool"},{"title":"Retrieve a machine pool","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}","href":"/api-reference/endpoints/machine-pools/retrieve-a-machine-pool"},{"title":"Update a machine pool","openapi":"/api-reference/bma.openapi.yaml post /v1/machine_pools/{pool_id}","href":"/api-reference/endpoints/machine-pools/update-a-machine-pool"},{"title":"Delete a machine pool","openapi":"/api-reference/bma.openapi.yaml delete /v1/machine_pools/{pool_id}","href":"/api-reference/endpoints/machine-pools/delete-a-machine-pool"},{"title":"List the pool grants of a project","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}/grants","href":"/api-reference/endpoints/machine-pools/list-the-pool-grants-of-a-project"},{"title":"Retrieve a pool grant","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}/grants/{grant_id}","href":"/api-reference/endpoints/machine-pools/retrieve-a-pool-grant"}]},{"group":"Machines","pages":[{"title":"List machines","openapi":"/api-reference/bma.openapi.yaml get /v1/machines","href":"/api-reference/endpoints/machines/list-machines"},{"title":"Create a machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines","href":"/api-reference/endpoints/machines/create-a-machine"},{"title":"Retrieve a machine","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}","href":"/api-reference/endpoints/machines/retrieve-a-machine"},{"title":"Update a machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}","href":"/api-reference/endpoints/machines/update-a-machine"},{"title":"Delete a machine","openapi":"/api-reference/bma.openapi.yaml delete /v1/machines/{machine_id}","href":"/api-reference/endpoints/machines/delete-a-machine"},{"title":"Bind an agent to a machine","openapi":"/api-reference/bma.openapi.yaml put /v1/machines/{machine_id}/agents/{agent_id}","href":"/api-reference/endpoints/machines/bind-an-agent-to-a-machine"},{"title":"Unbind an agent from a machine","openapi":"/api-reference/bma.openapi.yaml delete /v1/machines/{machine_id}/agents/{agent_id}","href":"/api-reference/endpoints/machines/unbind-an-agent-from-a-machine"},{"title":"List a machine's backups","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/backups","href":"/api-reference/endpoints/machines/list-a-machines-backups"},{"title":"Machine interaction capabilities","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/capabilities","href":"/api-reference/endpoints/machines/machine-interaction-capabilities"},{"title":"List executor tokens","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/executor_tokens","href":"/api-reference/endpoints/machines/list-executor-tokens"},{"title":"Create an executor token","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/executor_tokens","href":"/api-reference/endpoints/machines/create-an-executor-token"},{"title":"Revoke an executor token","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/executor_tokens/{token_id}/revoke","href":"/api-reference/endpoints/machines/revoke-an-executor-token"},{"title":"Pause a running machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/pause","href":"/api-reference/endpoints/machines/pause-a-running-machine"},{"title":"Rebuild a machine from a backup","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/restore","href":"/api-reference/endpoints/machines/rebuild-a-machine-from-a-backup"},{"title":"Resume a paused machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/resume","href":"/api-reference/endpoints/machines/resume-a-paused-machine"}]},{"group":"MCP OAuth","pages":[{"title":"Start an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml post /v1/mcp_oauth_authorizations","href":"/api-reference/endpoints/mcp-oauth/start-an-mcp-oauth-authorization"},{"title":"Get an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml get /v1/mcp_oauth_authorizations/{authorization_id}","href":"/api-reference/endpoints/mcp-oauth/get-an-mcp-oauth-authorization"},{"title":"Complete an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml post /v1/mcp_oauth/callback","href":"/api-reference/endpoints/mcp-oauth/complete-an-mcp-oauth-authorization"}]},{"group":"Organizations \u0026 workspaces","pages":[{"title":"List the invites sent to me","openapi":"/api-reference/bma.openapi.yaml get /v1/me/invites","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-the-invites-sent-to-me"},{"title":"Accept an invite","openapi":"/api-reference/bma.openapi.yaml post /v1/me/invites/{invite_id}/accept","href":"/api-reference/endpoints/organizations-\u0026-workspaces/accept-an-invite"},{"title":"Decline an invite","openapi":"/api-reference/bma.openapi.yaml post /v1/me/invites/{invite_id}/decline","href":"/api-reference/endpoints/organizations-\u0026-workspaces/decline-an-invite"},{"title":"Create an organization","openapi":"/api-reference/bma.openapi.yaml post /v1/me/organizations","href":"/api-reference/endpoints/organizations-\u0026-workspaces/create-an-organization"},{"title":"List my personal access tokens","openapi":"/api-reference/bma.openapi.yaml get /v1/me/personal_access_tokens","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-my-personal-access-tokens"},{"title":"Create a personal access token","openapi":"/api-reference/bma.openapi.yaml post /v1/me/personal_access_tokens","href":"/api-reference/endpoints/organizations-\u0026-workspaces/create-a-personal-access-token"},{"title":"Revoke a personal access token","openapi":"/api-reference/bma.openapi.yaml post /v1/me/personal_access_tokens/{token_id}/revoke","href":"/api-reference/endpoints/organizations-\u0026-workspaces/revoke-a-personal-access-token"},{"title":"List API Keys","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/api_keys","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-api-keys"},{"title":"Create an API key","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/api_keys","href":"/api-reference/endpoints/organizations-\u0026-workspaces/create-an-api-key"},{"title":"Get API Key","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/api_keys/{api_key_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/get-api-key"},{"title":"Update API Key","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/api_keys/{api_key_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/update-api-key"},{"title":"Get the cost report","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/cost_report","href":"/api-reference/endpoints/organizations-\u0026-workspaces/get-the-cost-report"},{"title":"List the organization's invites.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/invites","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-the-organizations-invites"},{"title":"Invite a user to join the organization by email.","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/invites","href":"/api-reference/endpoints/organizations-\u0026-workspaces/invite-a-user-to-join-the-organization-by-email"},{"title":"Retrieve an invite by ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/invites/{invite_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/retrieve-an-invite-by-id"},{"title":"Delete a pending invite.","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/invites/{invite_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/delete-a-pending-invite"},{"title":"Retrieve information about the organization associated with the authenticated","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/me","href":"/api-reference/endpoints/organizations-\u0026-workspaces/retrieve-information-about-the-organization-associated-with-the-authenticated"},{"title":"Get the messages usage report","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/usage_report/messages","href":"/api-reference/endpoints/organizations-\u0026-workspaces/get-the-messages-usage-report"},{"title":"List the organization's members.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/users","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-the-organizations-members"},{"title":"Retrieve a member of the organization by user ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/users/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/retrieve-a-member-of-the-organization-by-user-id"},{"title":"Update a member's organization role.","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/users/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/update-a-members-organization-role"},{"title":"Remove a member from the organization.","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/users/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/remove-a-member-from-the-organization"},{"title":"List Workspaces","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-workspaces"},{"title":"Create Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces","href":"/api-reference/endpoints/organizations-\u0026-workspaces/create-workspace"},{"title":"Get Workspace","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/get-workspace"},{"title":"Update Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/update-workspace"},{"title":"Archive Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/archive","href":"/api-reference/endpoints/organizations-\u0026-workspaces/archive-workspace"},{"title":"List Workspace Members","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}/members","href":"/api-reference/endpoints/organizations-\u0026-workspaces/list-workspace-members"},{"title":"Create Workspace Member","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/members","href":"/api-reference/endpoints/organizations-\u0026-workspaces/create-workspace-member"},{"title":"Get Workspace Member","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/get-workspace-member"},{"title":"Update Workspace Member","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/update-workspace-member"},{"title":"Delete Workspace Member","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/api-reference/endpoints/organizations-\u0026-workspaces/delete-workspace-member"}]},{"group":"Memory stores","pages":[{"title":"List Memory Stores","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores","href":"/api-reference/endpoints/memory-stores/list-memory-stores"},{"title":"Create a Memory Store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores","href":"/api-reference/endpoints/memory-stores/create-a-memory-store"},{"title":"Retrieve a Memory Store","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}","href":"/api-reference/endpoints/memory-stores/retrieve-a-memory-store"},{"title":"Update a Memory Store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}","href":"/api-reference/endpoints/memory-stores/update-a-memory-store"},{"title":"Delete a Memory Store","openapi":"/api-reference/bma.openapi.yaml delete /v1/memory_stores/{memory_store_id}","href":"/api-reference/endpoints/memory-stores/delete-a-memory-store"},{"title":"Archive a memory store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/archive","href":"/api-reference/endpoints/memory-stores/archive-a-memory-store"},{"title":"List Memories","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memories","href":"/api-reference/endpoints/memory-stores/list-memories"},{"title":"Create a Memory","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memories","href":"/api-reference/endpoints/memory-stores/create-a-memory"},{"title":"Retrieve a Memory","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/api-reference/endpoints/memory-stores/retrieve-a-memory"},{"title":"Update a Memory","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/api-reference/endpoints/memory-stores/update-a-memory"},{"title":"Delete a Memory","openapi":"/api-reference/bma.openapi.yaml delete /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/api-reference/endpoints/memory-stores/delete-a-memory"},{"title":"List memory versions","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memory_versions","href":"/api-reference/endpoints/memory-stores/list-memory-versions"},{"title":"Retrieve a memory version","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}","href":"/api-reference/endpoints/memory-stores/retrieve-a-memory-version"},{"title":"Redact a memory version","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact","href":"/api-reference/endpoints/memory-stores/redact-a-memory-version"}]},{"group":"Models \u0026 providers","pages":[{"title":"List model providers","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers","href":"/api-reference/endpoints/models-\u0026-providers/list-model-providers"},{"title":"Create a model provider","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers","href":"/api-reference/endpoints/models-\u0026-providers/create-a-model-provider"},{"title":"Get a model provider","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}","href":"/api-reference/endpoints/models-\u0026-providers/get-a-model-provider"},{"title":"Update a model provider","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}","href":"/api-reference/endpoints/models-\u0026-providers/update-a-model-provider"},{"title":"Delete a model provider","openapi":"/api-reference/bma.openapi.yaml delete /v1/model_providers/{provider_id}","href":"/api-reference/endpoints/models-\u0026-providers/delete-a-model-provider"},{"title":"List a provider's models","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}/models","href":"/api-reference/endpoints/models-\u0026-providers/list-a-providers-models"},{"title":"Create a model","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}/models","href":"/api-reference/endpoints/models-\u0026-providers/create-a-model"},{"title":"Get a model","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}/models/{model_id}","href":"/api-reference/endpoints/models-\u0026-providers/get-a-model"},{"title":"Update a model","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}/models/{model_id}","href":"/api-reference/endpoints/models-\u0026-providers/update-a-model"},{"title":"Delete a model","openapi":"/api-reference/bma.openapi.yaml delete /v1/model_providers/{provider_id}/models/{model_id}","href":"/api-reference/endpoints/models-\u0026-providers/delete-a-model"},{"title":"List available models.","openapi":"/api-reference/bma.openapi.yaml get /v1/models","href":"/api-reference/endpoints/models-\u0026-providers/list-available-models"},{"title":"Get a specific model.","openapi":"/api-reference/bma.openapi.yaml get /v1/models/{model_id}","href":"/api-reference/endpoints/models-\u0026-providers/get-a-specific-model"},{"title":"List a model's grants","openapi":"/api-reference/bma.openapi.yaml get /v1/models/{model_id}/grants","href":"/api-reference/endpoints/models-\u0026-providers/list-a-models-grants"},{"title":"Grant a model to a workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/models/{model_id}/grants","href":"/api-reference/endpoints/models-\u0026-providers/grant-a-model-to-a-workspace"},{"title":"Revoke a model grant","openapi":"/api-reference/bma.openapi.yaml delete /v1/models/{model_id}/grants/{workspace_id}","href":"/api-reference/endpoints/models-\u0026-providers/revoke-a-model-grant"}]},{"group":"Webhooks","pages":[{"title":"List webhook endpoints","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/webhooks","href":"/api-reference/endpoints/webhooks/list-webhook-endpoints"},{"title":"Create a webhook endpoint (the response carries the signing secret once)","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks","href":"/api-reference/endpoints/webhooks/create-a-webhook-endpoint-the-response-carries-the-signing-secret-once"},{"title":"Retrieve a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/api-reference/endpoints/webhooks/retrieve-a-webhook-endpoint"},{"title":"Update a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/api-reference/endpoints/webhooks/update-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/api-reference/endpoints/webhooks/delete-a-webhook-endpoint"},{"title":"Replace the signing secret (the response carries it once)","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks/{webhook_endpoint_id}/regenerate_signing_secret","href":"/api-reference/endpoints/webhooks/replace-the-signing-secret-the-response-carries-it-once"}]},{"group":"Sessions","pages":[{"title":"List Sessions","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions","href":"/api-reference/endpoints/sessions/list-sessions"},{"title":"Create Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions","href":"/api-reference/endpoints/sessions/create-session"},{"title":"Get Session","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}","href":"/api-reference/endpoints/sessions/get-session"},{"title":"Update Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}","href":"/api-reference/endpoints/sessions/update-session"},{"title":"Delete Session","openapi":"/api-reference/bma.openapi.yaml delete /v1/sessions/{session_id}","href":"/api-reference/endpoints/sessions/delete-session"},{"title":"Archive Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/archive","href":"/api-reference/endpoints/sessions/archive-session"},{"title":"Revoke an archived session's executor","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/bma_executor_revocation","href":"/api-reference/endpoints/sessions/revoke-an-archived-sessions-executor"},{"title":"List Events","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/events","href":"/api-reference/endpoints/sessions/list-events"},{"title":"Send Events","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/events","href":"/api-reference/endpoints/sessions/send-events"},{"title":"Stream Events","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/events/stream","href":"/api-reference/endpoints/sessions/stream-events"},{"title":"Fork a session (copies the conversation only, not files)","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/fork","href":"/api-reference/endpoints/sessions/fork-a-session-copies-the-conversation-only-not-files"},{"title":"List Session Resources","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/resources","href":"/api-reference/endpoints/sessions/list-session-resources"},{"title":"Add Session Resource","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/resources","href":"/api-reference/endpoints/sessions/add-session-resource"},{"title":"Get Session Resource","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/resources/{resource_id}","href":"/api-reference/endpoints/sessions/get-session-resource"},{"title":"Update Session Resource","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/resources/{resource_id}","href":"/api-reference/endpoints/sessions/update-session-resource"},{"title":"Delete Session Resource","openapi":"/api-reference/bma.openapi.yaml delete /v1/sessions/{session_id}/resources/{resource_id}","href":"/api-reference/endpoints/sessions/delete-session-resource"},{"title":"List a session's tool grants","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/tool_grants","href":"/api-reference/endpoints/sessions/list-a-sessions-tool-grants"},{"title":"Revoke a session's tool grant","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/tool_grants/{grant_id}/revoke","href":"/api-reference/endpoints/sessions/revoke-a-sessions-tool-grant"}]},{"group":"Skills","pages":[{"title":"List skills","openapi":"/api-reference/bma.openapi.yaml get /v1/skills","href":"/api-reference/endpoints/skills/list-skills"},{"title":"Create a skill","openapi":"/api-reference/bma.openapi.yaml post /v1/skills","href":"/api-reference/endpoints/skills/create-a-skill"},{"title":"Retrieve a skill","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}","href":"/api-reference/endpoints/skills/retrieve-a-skill"},{"title":"Delete a skill","openapi":"/api-reference/bma.openapi.yaml delete /v1/skills/{skill_id}","href":"/api-reference/endpoints/skills/delete-a-skill"},{"title":"List skill versions","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions","href":"/api-reference/endpoints/skills/list-skill-versions"},{"title":"Create a skill version","openapi":"/api-reference/bma.openapi.yaml post /v1/skills/{skill_id}/versions","href":"/api-reference/endpoints/skills/create-a-skill-version"},{"title":"Retrieve a skill version","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions/{version}","href":"/api-reference/endpoints/skills/retrieve-a-skill-version"},{"title":"Delete a skill version","openapi":"/api-reference/bma.openapi.yaml delete /v1/skills/{skill_id}/versions/{version}","href":"/api-reference/endpoints/skills/delete-a-skill-version"},{"title":"Download a skill version","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions/{version}/content","href":"/api-reference/endpoints/skills/download-a-skill-version"}]},{"group":"Terminal sessions","pages":[{"title":"List the terminal sessions of a machine","openapi":"/api-reference/bma.openapi.yaml get /v1/terminal_sessions","href":"/api-reference/endpoints/terminal-sessions/list-the-terminal-sessions-of-a-machine"},{"title":"Open a terminal session (body machine_id)","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions","href":"/api-reference/endpoints/terminal-sessions/open-a-terminal-session-body-machine_id"},{"title":"Retrieve a terminal session","openapi":"/api-reference/bma.openapi.yaml get /v1/terminal_sessions/{terminal_session_id}","href":"/api-reference/endpoints/terminal-sessions/retrieve-a-terminal-session"},{"title":"Close a terminal session","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions/{terminal_session_id}/close","href":"/api-reference/endpoints/terminal-sessions/close-a-terminal-session"},{"title":"Mint a single-use ticket (purpose connect)","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions/{terminal_session_id}/tickets","href":"/api-reference/endpoints/terminal-sessions/mint-a-single-use-ticket-purpose-connect"}]},{"group":"User profiles","pages":[{"title":"List user profiles","description":"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.\n\n**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.\n\n**Limits:**\n\n- `limit`: default 20, from 1 to 100 profiles per page (out of range or not an integer is 400).\n- Rate limit: one request of the organization's read budget ([Rate limits](https://docs.beeos.ai/guides/limits)).\n\n**Errors** (besides the [common errors](https://docs.beeos.ai/api-reference/errors) (401 authentication, 429 `rate_limited`, 500)):\n\n| Status | `error.type` | `error.code` | Cause | Fix |\n| --- | --- | --- | --- | --- |\n| 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. |\n| 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. |\n| 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. |\n| 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. |","openapi":"/api-reference/bma.openapi.yaml get /v1/user_profiles","href":"/api-reference/endpoints/user-profiles/list-user-profiles"},{"title":"Create a user profile","openapi":"/api-reference/bma.openapi.yaml post /v1/user_profiles","href":"/api-reference/endpoints/user-profiles/create-a-user-profile"},{"title":"Retrieve a user profile","description":"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.\n\n**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.\n\n**Limits:**\n\n- No limits specific to this endpoint.\n- Rate limit: one request of the organization's read budget ([Rate limits](https://docs.beeos.ai/guides/limits)).\n\n**Errors** (besides the [common errors](https://docs.beeos.ai/api-reference/errors) (401 authentication, 429 `rate_limited`, 500)):\n\n| Status | `error.type` | `error.code` | Cause | Fix |\n| --- | --- | --- | --- | --- |\n| 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. |\n| 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. |\n| 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. |","openapi":"/api-reference/bma.openapi.yaml get /v1/user_profiles/{user_profile_id}","href":"/api-reference/endpoints/user-profiles/retrieve-a-user-profile"},{"title":"Update a user profile","openapi":"/api-reference/bma.openapi.yaml post /v1/user_profiles/{user_profile_id}","href":"/api-reference/endpoints/user-profiles/update-a-user-profile"},{"title":"Delete a user profile","openapi":"/api-reference/bma.openapi.yaml delete /v1/user_profiles/{user_profile_id}","href":"/api-reference/endpoints/user-profiles/delete-a-user-profile"}]},{"group":"Vaults","pages":[{"title":"List vaults","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults","href":"/api-reference/endpoints/vaults/list-vaults"},{"title":"Create a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults","href":"/api-reference/endpoints/vaults/create-a-vault"},{"title":"Retrieve a vault","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}","href":"/api-reference/endpoints/vaults/retrieve-a-vault"},{"title":"Update a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}","href":"/api-reference/endpoints/vaults/update-a-vault"},{"title":"Delete a vault","openapi":"/api-reference/bma.openapi.yaml delete /v1/vaults/{vault_id}","href":"/api-reference/endpoints/vaults/delete-a-vault"},{"title":"Archive a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/archive","href":"/api-reference/endpoints/vaults/archive-a-vault"},{"title":"List credentials","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}/credentials","href":"/api-reference/endpoints/vaults/list-credentials"},{"title":"Create a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials","href":"/api-reference/endpoints/vaults/create-a-credential"},{"title":"Retrieve a credential","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/api-reference/endpoints/vaults/retrieve-a-credential"},{"title":"Update or rotate a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/api-reference/endpoints/vaults/update-or-rotate-a-credential"},{"title":"Delete a credential","openapi":"/api-reference/bma.openapi.yaml delete /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/api-reference/endpoints/vaults/delete-a-credential"},{"title":"Archive a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}/archive","href":"/api-reference/endpoints/vaults/archive-a-credential"},{"title":"Validate an MCP OAuth credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}/mcp_oauth_validate","href":"/api-reference/endpoints/vaults/validate-an-mcp-oauth-credential"}]},{"group":"Web search \u0026 fetch","pages":[{"title":"Fetch a web page","openapi":"/api-reference/bma.openapi.yaml post /v1/web_fetches","href":"/api-reference/endpoints/web-search-\u0026-fetch/fetch-a-web-page"},{"title":"Search the web","openapi":"/api-reference/bma.openapi.yaml post /v1/web_searches","href":"/api-reference/endpoints/web-search-\u0026-fetch/search-the-web"}]}]}]},{"group":"bma-executor-sdk","pages":[{"title":"bma-executor-sdk Protocol Reference","sidebarTitle":"Protocol overview","icon":"microchip","href":"/api-reference/bma-executor-sdk/overview"},{"group":"Endpoints","expanded":true,"pages":[{"title":"Connection \u0026 lifecycle","icon":"plug","href":"/api-reference/bma-executor-sdk/connection"},{"title":"Sessions \u0026 turns","icon":"messages","href":"/api-reference/bma-executor-sdk/sessions-and-turns"},{"title":"Tools \u0026 interactions","icon":"wrench","href":"/api-reference/bma-executor-sdk/tools-and-interactions"},{"title":"Processes \u0026 terminals","icon":"terminal","href":"/api-reference/bma-executor-sdk/processes-and-terminals"},{"title":"Desktop, screen \u0026 workspace","icon":"desktop","href":"/api-reference/bma-executor-sdk/desktop-and-workspace"}]}]}]},{"tab":"Self-hosting","pages":[{"title":"Self-hosting","href":"/self-hosting/overview"}]},{"tab":"Changelog \u0026 roadmap","pages":[{"title":"Changelog \u0026 roadmap","href":"/changelog"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/api-reference/endpoints/user-profiles/create-a-user-profile"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-hant/api-reference/endpoints/user-profiles/create-a-user-profile"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/endpoints/user-profiles/create-a-user-profile"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/endpoints/user-profiles/create-a-user-profile"}]}]},"basePath":"","title":"Create a user profile - BMA Developer Docs","buildId":"815f1a3055e5","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-1AKe0ef2.js","snippetPresets-CngcX0JF.js","utils-Dn_b4b8k.js","style-to-object-BY3JEAdk.js","utils-Gx5d07QN.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CRl5XKI1.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DvHqN_Pm.js","_Uint8Array-B1ND6YRH.js","isObject-FP1Yky1u.js","ApiExamples-D7M37pdg.js","usePlaygroundInputsStore-DVayymCv.js","shallow-Bf79Qs-6.js","isEqual-DVW5K_pQ.js","CodeSnippets-4lATClrm.js","CodeSnippet-s__4qicF.js","use-playground-group-access-BHEk5kJ3.js","Page-DJ-Y-H3C.js","api-description-markdown-Dr4kHu1P.js","DynamicMarkdown-Bny17ned.js","SectionHeading-9Y8On-s1.js","MethodPill-BJEvxiO8.js","getPastedJson-58y35ABl.js","Check2Icon-CLmJh0P7.js","axios-CsQoIw0U.js","Markdown-CY5OpB5G.js","AssistantPageLink-Dh-tOAEH.js","dist-B74kwL_M.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}