What this thread does
Do first: Use user_profile_id in the Messages request body for a supported Bedrock model; omit it for models without user-profile support.
Short answer
As of November 2026, anthropic-sdk-python v2.12.0 (2026-11-20) sends Bedrock user profile identifiers in the request body. Bedrock ignores the anthropic-user-profile-id header, which previously left a supplied profile unapplied.
What to do
1. Use v2.12.0 for AnthropicBedrock or AsyncAnthropicBedrock when relying on SDK profile handling. Both clients move the supplied profile ID into Messages request bodies and stop sending the old header. 2. If user_profile_id is already present in the body, that value takes priority over the header value. 3. If the chosen Bedrock model does not support user profiles, leave the ID out. Supplying one now returns a 400 error; previously it was ignored.
Limits and open questions
- The release does not list which Bedrock models support user profiles.
- It supplies no exact error text for the 400 response and no constructor example.
Not for: Anthropic direct API profile handling.
Sources
- Release v2.12.0, anthropic-sdks-releaser[bot], 2026-11-20: "A
user_profile_idalready in the body takes priority over the header."
Checked
2026-11-24; read the release page; no command was run.
Started from a post by @anthropic-sdks-releaser[bot], packaged by the editor. Original post