Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

user-profiles changedmanage-claude/user-profiles

Nearest release: v2.1.326, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+21added
Lines−16removed
From line 14 where the diff opens
First seen 21 Oct 2026 this site's first read of the page
Recorded edits20to this page, all time

### Identify one person within a company ### Identify individual users within a company

The whole hunk

from line 14, old and new numbered
/
lines
from line 14
1414 
1515## Decide who gets a profile
1616 
17What a profile stands for depends on how you sell Claude: a person who uses your product, or a company you resell API access to. These two cases cover most platforms. The profile’s `access_type` field says which one applies.
17Each end customer gets one profile, so a company gets one profile for the whole company, not one for each person in the company. Send that profile’s ID on every request that you make for anyone in the company. To also tell Anthropic which person a request comes from, see [Identify one person within a company](https://platform.claude.com/docs/en/manage-claude/user-profiles#identify-individual-users-within-a-company).
1818 
19| Who the traffic is for | Profile | `access_type` |
20| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
21| A signed-up user of your product | One for each user, created when they sign up. | `application` (the default, set when you leave `access_type` out) |
22| A company you resell API access to, for example as a gateway | One for each company, not for each person within it. | `passthrough` (not the default, so you have to send it) |
23| Your own organization | None. Anthropic counts a request with no profile ID as your own usage. Keep that usage in a [separate organization](https://platform.claude.com/docs/en/manage-claude/user-profiles#before-you-begin). | Not applicable |
24| A workspace in your organization | No separate profile. A profile belongs to your organization, and its ID works on requests through any workspace in it. | Not applicable |
19The profile’s `access_type` field says whether the end customer uses your product or buys API access from you, such as through your gateway:
2520 
21| The end customer | `access_type` |
22| ------------------------------------------ | ----------------------------------------------------------------- |
23| Uses your product | `application` (the default, set when you leave `access_type` out) |
24| Is a company that buys API access from you | `passthrough` (not the default, so you have to send it) |
25 
26Don’t create a profile for either of the following:
27 
28* **Your own usage:** Anthropic counts a request with no profile ID as your own usage. Keep that usage in a separate organization, as [Before you start](https://platform.claude.com/docs/en/manage-claude/user-profiles#before-you-begin) explains.
29* **A workspace in your organization:** A profile belongs to your organization, not to a workspace, so the profile’s ID works on requests through any workspace in the organization. The exception is a workspace that has a different profile attached through `user_profile_id` in [Create Workspace](https://platform.claude.com/docs/en/api/organization/workspaces/create) or [Update Workspace](https://platform.claude.com/docs/en/api/organization/workspaces/update). Every inference request through that workspace must carry the attached profile’s ID, and the API rejects a request with another ID or none.
30 
2631## What a profile contains and how Anthropic uses it
2732 
2833A profile contains only what you send about the end customer, plus any [program status](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal#after-the-end-customer-links-the-profile) or enforcement status that Anthropic sets. It doesn’t contain conversation content. Anthropic uses the details you send to attribute requests, to monitor for abuse, for enforcement of the [Usage Policy](https://www.anthropic.com/legal/aup), and to enable application and access to trusted access programs. Anthropic doesn’t verify the details.
from line 54
4954 
5055Create one profile for each end customer whose traffic you send to Claude. Create it once, in your customer-onboarding flow. `POST /v1/user_profiles` isn’t idempotent, so every call creates a new profile, even when `reference_id` matches an existing one. If you already have end customers without profiles, see the guidance on registering an existing customer base later in this section.
5156 
52The following example registers a company that buys API access through a gateway, so it sets `access_type` to `passthrough`. For an `application` profile, leave out `access_type`, and describe one end user in `name` and `external_user_details` instead of a company. [Decide who gets a profile](https://platform.claude.com/docs/en/manage-claude/user-profiles#decide-who-gets-a-profile) compares the two access types.
57The following example registers a company that buys API access from you, so the request sets `access_type` to `passthrough`. For an `application` profile, leave out `access_type`. [Decide who gets a profile](https://platform.claude.com/docs/en/manage-claude/user-profiles#decide-who-gets-a-profile) says which access type to use.
5358 
5459<CodeGroup>
5560 ```bash cURL
from line 224
219224Follow these rules when you set the fields:
220225 
221226* **Unknown values:** If you don’t know a value, leave it out instead of sending a placeholder. You can replace a value in `external_user_details` later, but you can’t clear it.
222* **Company names:** For a `passthrough` profile, send the company’s legal name in `name` if you know it.
227* **Names:** In `name`, send the end customer’s real-world name. For a company, send the company’s legal name if you know it.
228* **Names and email addresses you can’t share:** Leave out `name` and send `external_user_details.name_hash` instead. For the email address, send `external_user_details.email_hash`, because a profile has no field for the email address itself.
223229* **Country:** In `country`, send the end customer’s country, not yours.
224230* **Your own ID:** In `reference_id`, send your own stable identifier for the end customer. It doesn’t have to be unique.
225* **Names and email addresses you can’t share:** Leave out `name` and send `external_user_details.name_hash` instead. For the email address, send `external_user_details.email_hash`. A profile has no field for the address itself.
226* **Hashes:** Compute the hashes yourself, with a function you choose. They show Anthropic which of your profiles share a name or an email address. Use the same function and the same case and whitespace normalization for every profile, because only values computed the same way match.
231* **Hashes:** Compute the hashes yourself with a function you choose. The hashes show Anthropic which of your profiles have the same name or email address. Only values computed the same way match, so for every profile, use the same function and handle case and whitespace the same way.
227232 
228233## Attribute each request
229234 
from line 369
364369 
365370Message Batches is the exception: creating a batch checks only the ID’s format. If a well-formed ID doesn’t belong to the organization that sends the batch, the batch is still created, and each request in it then fails with an `errored` result that contains the same `invalid_request_error`.
366371 
372### Identify one person within a company
373 
374A profile for a company identifies the company, not the person a request comes from. If a request comes from one person you can identify, also set [`metadata.user_id`](https://platform.claude.com/docs/en/api/messages/create) on the Messages request to an identifier for that person. This field is in the request’s own `metadata` object, not in the profile’s `metadata` field. The identifier is optional and helps Anthropic detect misuse by one person.
375 
367376### Attribute requests on Claude Models on Google Cloud (Google managed) and Amazon Bedrock
368377 
369378A profile ID of either access type also works on Claude Models on Google Cloud (Google managed) and on [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock). It doesn’t work on [Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), which you call with `InvokeModel` or `Converse`. You use your Anthropic organization’s credentials only to create and manage profiles. Inference stays on your existing AWS or Google Cloud credentials.
from line 406
397406Programs that apply to a profile apply to an account’s requests only after the account is linked and the portal shows it as **Linked**. Those programs include the ones an end customer’s organization is approved for after the end customer [links the profile to that organization](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal) and, for Cyber Verification Program access levels, turns them on for the profile in the portal.
398407 
399408Claude Models on Google Cloud (Google managed) and Claude in Amazon Bedrock check the format of the ID but don’t look the profile up. They reject a malformed ID with a `400`. They accept any well-formed ID, so a successful response doesn’t confirm that the ID matches a profile. A request with no ID goes through unattributed, and if it triggers an enforcement action, the action applies to your whole organization.
400 
401### Identify individual users within a company
402 
403A `passthrough` profile identifies a company, not the person making the request. If a request comes from one identifiable person, also send an identifier for that person in the [`metadata.user_id`](https://platform.claude.com/docs/en/api/messages/create) field of the Messages request. This is the request’s own `metadata` object, not the profile’s `metadata` field. The identifier is optional, and it helps Anthropic detect misuse by one person.
404409 
405410## Check whether Anthropic has restricted or banned a profile
406411 
Feedback