Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

platforms changedmanage-claude/user-profiles/platforms

Nearest release: v2.1.333, published an hour 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+10added
Lines−11removed
From line 10 where the diff opens
First seen 30 Nov 2026 this site's first read of the page
Recorded edits3to this page, all time

### If you use an earlier SDK on `bedrock-runtime`

The whole hunk

from line 10, old and new numbered
/
lines
from line 10
1010 
1111On Amazon Bedrock, Claude Models on Google Cloud (Google managed), and Microsoft Foundry, you create user profiles in an Anthropic organization on another platform. This is usually the Claude API. That organization’s credentials are only for managing user profiles, and your requests to Claude still use your cloud platform’s credentials. Each platform’s section says which organizations work.
1212 
13On Claude Models on Google Cloud (Google managed) and Amazon Bedrock, either [access type](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#decide-who-gets-a-profile) works.
13On Claude Models on Google Cloud (Google managed) and Amazon Bedrock, either [access type](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#decide-who-gets-a-profile) works: `application` or `passthrough`.
1414 
1515## If you use Amazon Bedrock
1616 
from line 48
4848How the ID gets into the body depends on how you call Amazon Bedrock:
4949 
5050* **The standard SDK client:** Don’t send a user profile ID to Amazon Bedrock through the client you use for the Claude API. That client puts the ID in the header, whatever base URL you give it.
51 
5251* **The SDK client for `bedrock-mantle`:** Use the latest version of [the `bedrock-mantle` client](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#install-an-sdk), which you create with `AnthropicBedrockMantle` (csharp: `AnthropicBedrockMantleClient`; go: `bedrock.NewMantleClient()`; java: `BedrockMantleBackend`; php: `MantleClient`; ruby: `Anthropic::BedrockMantleClient`). Pass the ID in the SDK’s [user profile argument](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#attribute-each-request), and the client puts it in the body.
53 
54* **The SDK client for `bedrock-runtime`:** If you call `InvokeModel` through `AnthropicBedrock` (csharp: `AnthropicBedrockClient`; go: `bedrock.WithLoadDefaultConfig()`; java: `BedrockBackend`; php: `Bedrock\Client`; ruby: `Anthropic::BedrockClient`), the [latest version of the SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview#latest-versions) puts the [user profile argument](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#attribute-each-request) in the request body for you. An earlier version doesn’t, so unless you add the ID yourself, the request isn’t attributed. In TypeScript and C#, the version that counts is the Bedrock package’s, `@anthropic-ai/bedrock-sdk` or `Anthropic.Bedrock`.
55 
56 On the API version that the latest SDK sends, `InvokeModel` requests can fail with a `400` for some models. These are the models numbered 4.6 or lower in the model table of [Claude on Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy). For these models, stay on the previous major version of the SDK. To install it, use the commands in [Install an SDK for accessing Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#install-an-sdk-for-accessing-bedrock).
57 
58 With an earlier version, add `user_profile_id` to the body of requests for [models that accept it](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#amazon-bedrock-models), using `extra_body` (ruby: `request_options: {extra_body: {...}}`; typescript: `body`; php: `extraBodyParams`; java: `.putAdditionalBodyProperty()`; go: `option.WithJSONSet()`; csharp: `MessageCreateParams.FromRawUnchecked()`). Leave the rest of the body as it is, because the SDK builds the URL from the body’s `model` and, if you stream, `stream: true`. In the TypeScript and C# SDKs, that option replaces the whole body, so include every field of the request along with `user_profile_id`.
59 
52* **The SDK client for `bedrock-runtime`:** If you call `InvokeModel` through `AnthropicBedrock` (csharp: `AnthropicBedrockClient`; go: `bedrock.WithLoadDefaultConfig()`; java: `BedrockBackend`; php: `Bedrock\Client`; ruby: `Anthropic::BedrockClient`), the [latest version of the SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview#latest-versions) puts the [user profile argument](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#attribute-each-request) in the request body for you. An earlier version doesn’t, so unless you add the ID yourself, the request isn’t attributed. In TypeScript and C#, the version that counts is the Bedrock package’s, `@anthropic-ai/bedrock-sdk` or `Anthropic.Bedrock`. For models numbered 4.6 or lower, or to add the ID with an earlier version, see [If you use an earlier SDK on `bedrock-runtime`](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#if-you-use-an-earlier-sdk-on-bedrock-runtime).
6053* **`InvokeModel` called directly:** Put the model ID in the request’s URL (`modelId` in an AWS SDK) rather than the body. The body also needs an `anthropic_version` field, such as `"anthropic_version": "bedrock-2023-05-31"`.
6154 
6255If you start from an example in [Making requests](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#making-requests), change its model to one that [accepts a user profile ID](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#amazon-bedrock-models).
from line 80
8780The following details are for deployments of [Claude in Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) [hosted on Anthropic](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#hosting-options).
8881 
8982* **Where you create user profiles:** In an organization on the Claude API. The `/v1/user_profiles` endpoints are not available on Microsoft Foundry.
90* **What you link first:** The organization that holds your Foundry resource. Anthropic links it to the organization that creates your user profiles. To request the link, contact your account team.
91* **Where the ID goes:** In the `anthropic-user-profile-id` header once the link exists. Until then, every request that carries a user profile ID returns a `400`.
83* **What you link first:** The organization that holds your Foundry resource. It has to be linked to the organization that creates your user profiles. To request the link, contact your account team.
84* **Where the ID goes:** In the `anthropic-user-profile-id` header once the link exists. Until then, a request that carries the ID of a user profile from your Claude API organization returns a `400`.
9285 
9386## Rules and special cases
87 
88### If you use an earlier SDK on `bedrock-runtime`
89 
90On the API version that the latest SDK sends, `InvokeModel` requests can fail with a `400` for some models. These are the models numbered 4.6 or lower in the model table of [Claude on Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy). For these models, stay on the previous major version of the SDK. To install it, use the commands in [Install an SDK for accessing Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#install-an-sdk-for-accessing-bedrock).
91 
92With an earlier version, add `user_profile_id` to the body of requests for [models that accept it](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#amazon-bedrock-models), using `extra_body` (ruby: `request_options: {extra_body: {...}}`; typescript: `body`; php: `extraBodyParams`; java: `.putAdditionalBodyProperty()`; go: `option.WithJSONSet()`; csharp: `MessageCreateParams.FromRawUnchecked()`). Leave the rest of the body as it is, because the SDK builds the URL from the body’s `model` and, if you stream, `stream: true`. In the TypeScript and C# SDKs, that option replaces the whole body, so include every field of the request along with `user_profile_id`.
9493 
9594### How each platform checks the ID
9695 
Feedback