On this pageChoose the customer unit before creating anything

How to Use Anthropic API User Profiles for End-Customer Requests

Xtrusio5 min read

Short answer

Create one Anthropic user profile per end customer. Save its returned ID and send it with supported requests for that customer. Anthropic announced profiles on 20 October 2026. They can direct a safety action at one profile instead of the whole organization. They do not make a new tenant database or prevent every organization-level action.

Developer reviewing customer attribution for Claude API requests
Photo illustration by Xtrusio. Conceptual scene, not a Claude Platform screenshot.

This guide covers who gets a profile, how to create it, and where to send its ID. It also explains the limits. The API examples come from Anthropic documentation. We did not send a live request.

Choose the customer unit before creating anything

Choose the profile unit based on your business. Use application, the default, for each person using your product. Use passthrough for each company buying Claude access through your gateway. In that case, do not create one profile per employee. Anthropic also allows an optional Messages metadata.user_id for an identifiable employee. That request field differs from profile metadata.

For example, a support app could map one subscriber to one profile. A gateway could map Acme Analytics to one passthrough profile. This is a mapping example, not a tested account.

Anthropic documentation compares individual application profiles, resold-company profiles, internal traffic and workspaces
The Anthropic guide explains both profile types. A workspace does not become a separate customer profile.

Decision

application

passthrough

Who the profile represents

One user of your product

One company buying Claude access through you

When to create it

During user onboarding

During company onboarding

Default value

Yes

No, set explicitly

Extra individual identifier

Already represented by the profile

Optional request metadata.user_id when known

Create once, then store the returned ID

Call POST /v1/user_profiles in the organization that sends customer traffic. You can put your stable customer ID in external_user_details.reference_id. Save the returned uprof_ ID on your customer record and reuse it. Creation is not idempotent. A second call makes another profile even with the same reference ID. Anthropic does not enforce that reference ID as unique.

Descriptive fields are optional. Omit unknown values instead of inventing them. Profiles do not contain conversations, and Anthropic does not check the details you send. Creation has a rate limit. Ask your account team before bulk registration of existing customers. A profile itself is not billable and does not change API pricing.

Use the current API version and current create reference when you implement this. Older beta headers still appear in the reference. They can change which fields a response returns. In particular, user-profiles-2026-09-04 and earlier values omit enforcement status and actions. Do not mix an old beta example with current response-field expectations.

Send the ID on every request for that customer

For Claude API Messages, send the returned ID in the anthropic-user-profile-id header. The SDK user_profile_id argument sends it for you. Anthropic also supports attribution on token counts, Message Batches, and OpenAI SDK compatibility requests. One batch header covers every request in that batch. Do not mix customers when you use one ID.

Anthropic documentation shows a message request associated with a user profile ID
The image is Anthropic’s published request example. It shows where the ID goes. It is not our production response.

Keep internal API use apart from customer traffic. Anthropic treats a request without a profile ID as your own use. It advises a separate organization for that traffic. A profile works across workspaces in its creating organization. A workspace is not a separate safety boundary.

The endpoint map and validation limits

The current API reference lists create, list, retrieve, update, and delete operations. The table shows the core lifecycle. The separate beta reference also lists an enrollment URL.

Task

Documented operation

Use

Register

POST /v1/user_profiles

Create a profile once and save its ID

Find existing

GET /v1/user_profiles or GET /v1/user_profiles/{id}

Reconcile a stored customer mapping

Change details

POST /v1/user_profiles/{id}

Update known customer details or status

Remove

DELETE /v1/user_profiles/{id}

Remove supplied profile data after ending use of that ID

On the Claude API, a malformed or foreign ID returns a 400 error. The same applies on Claude Platform on AWS and Anthropic-hosted Microsoft Foundry. Message Batches checks only ID format at creation. A foreign ID can fail each request later. Anthropic describes different limits for Google Cloud and Claude in Amazon Bedrock. Those paths check format but do not look up the profile. A successful response does not prove a matching profile. Bedrock sends user_profile_id in the request body. Read the platform-specific guide before you copy a Claude API example.

Profiles attribute customer requests. They do not measure whether Claude names or cites your brand. For that separate question, Xtrusio records AI answers and their citations. A profile ID says whose request reached Anthropic. An answer record shows what the assistant said. Xtrusio publishes this guide and does not manage Anthropic profiles.

Frequently asked questions

Does a user profile replace a workspace or separate billing?

No. Anthropic says profiles belong to an organization, work across its workspaces, are not billable and do not change pricing. Use a separate organization for your own internal traffic.

What happens if I send the wrong profile ID?

The Claude API checks format and organization ownership and returns a 400 invalid_request_error for a malformed or foreign ID. Message Batches checks format when the batch is created, then reports a per-request error for a foreign ID.

Can I register the same customer twice using the same reference ID?

Yes. Anthropic says profile creation is not idempotent and the customer reference ID is not enforced as unique. Store and reuse the returned profile ID rather than creating a new one for each request.

Do profiles include conversation text?

Anthropic says a profile holds the customer details you send and program status Anthropic sets, not conversation content. The request is associated with the profile when you send its ID.

Are user profiles an AI visibility measurement feature?

No. They identify whose traffic a platform sends to Anthropic. To study how assistants mention or cite a brand, use a separate answer and citation measurement workflow.

Sources

  • Anthropic Claude Platform release notes, 20 October 2026; checked 23 October 2026: https://platform.claude.com/docs/en/release-notes/overview
  • Anthropic user profile guide, checked 23 October 2026: https://platform.claude.com/docs/en/manage-claude/user-profiles
  • Anthropic current User Profiles API reference, checked 23 October 2026: https://platform.claude.com/docs/en/api/user_profiles
  • Anthropic Create User Profile API reference, including older beta headers, checked 23 October 2026: https://platform.claude.com/docs/en/api/beta/user_profiles/create

Topics

  • how to use Anthropic API user profiles
  • Anthropic user profile ID header

Xtrusio

AI visibility research

Xtrusio is the Perception Engine for B2B brands.

Free check

See how AI engines answer about you

Get your free AI visibility check

Talk to us about the managed plan (free trial)