POST

Authorizations

x-api-key
string
header
required

Headers

bma-workspace-id
string

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.

Path Parameters

user_profile_id
string
required

ID of the user profile (uprof_ followed by 26 lowercase base32 characters).

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.

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.

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.

metadata
object
required

The caller's own string key-value pairs (at most 16 keys); {} when none.

trust_grants
object
required

Always empty; BMA has no trust program.

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.