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 capture · api

One read of Claude Developer Platformapi-20261202T033708Z

15 pages moved out of 993 read.

Pages moved 15 significant first
Pages read 993 in this capture
Captured 03:37 UTC
Corpus hash bf628e1c23bf corpus-hash

What this read moved

1-15 of 15

build-with-claude/claude-in-amazon-bedrock Changed · +3 / -17 lines

#### Permission policy defaults

from line 10
1010 This page covers Claude in Amazon Bedrock, which serves Claude through the Messages API at `/anthropic/v1/messages` on the `bedrock-mantle` endpoint. That endpoint runs on AWS-managed infrastructure. The `InvokeModel` and `Converse` APIs, on the `bedrock-runtime` endpoint, are documented at [Claude on Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy). For an Anthropic-operated alternative on AWS with AWS Marketplace billing, see [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws).
1111</Note>
1212 
13To run agents on Amazon Bedrock, see [Claude Managed Agents for Amazon Bedrock](https://platform.claude.com/docs/en/managed-agents/amazon-bedrock).
14 
1315## Access
1416 
1517Amazon Bedrock sets access criteria for each Claude model individually. Claude Fable 5.1, Claude Fable 5, Claude Opus 4.8, Claude Sonnet 5, Claude Opus 4.7, and Claude Haiku 4.5 are open to all Amazon Bedrock customers. For any other model’s criteria, check [Amazon Bedrock model access](https://console.aws.amazon.com/bedrock/home#/modelaccess) in the AWS console. For region availability, see [Regions](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#regions).
from line 416
414416 
415417### Claude Managed Agents
416418 
417[Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) is available on Amazon Bedrock, where AWS operates and bills it. You send requests to Amazon Bedrock and sign them with your AWS credentials. The agent’s built-in tools run in your own AWS account or on your own machine.
419Claude Managed Agents is available on Amazon Bedrock, with its own client and setup. For those and for its permission policy defaults, see [Claude Managed Agents for Amazon Bedrock](https://platform.claude.com/docs/en/managed-agents/amazon-bedrock).
418420 
419To set up your AWS account, create an agent, and run a session, see [AWS’s documentation for Amazon Bedrock](https://docs.aws.amazon.com/bedrock/). AWS’s documentation also lists where the API on Amazon Bedrock differs from the Anthropic-hosted service.
420 
421Claude Managed Agents on Amazon Bedrock works with other AWS services. When the agent’s built-in tools run on Amazon Bedrock AgentCore Runtime in your AWS account, each session gets its own container. Agents reach MCP tools through Amazon Bedrock AgentCore Gateway, which controls access with the IAM roles you define. You can use Amazon EventBridge to run agents on a schedule. For integration details, see AWS’s documentation.
422 
423421The table under [Regions](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#regions) covers the Messages API. The same section lists the AWS regions where Claude Managed Agents is available.
424 
425#### Permission policy defaults
426 
427On Amazon Bedrock, the agent toolset and MCP toolsets get their own default [permission policy](https://platform.claude.com/docs/en/managed-agents/permission-policies), the same for both. A toolset has no permission policy when its [`default_config` field](https://platform.claude.com/docs/en/managed-agents/permission-policies#set-a-policy-for-a-toolset) names none or is left out.
428 
429* An agent toolset or MCP toolset that a request sends with no permission policy gets [the `auto` policy](https://platform.claude.com/docs/en/managed-agents/permission-policies#let-the-server-evaluate-each-call-with-auto), or `always_ask` where `auto` isn’t available.
430* In the response to the request that sends the toolset, its `default_config.permission_policy` shows which of the two policies it got.
431* A [`configs` entry](https://platform.claude.com/docs/en/managed-agents/permission-policies#override-an-individual-tool-policy) that names no policy gets the policy that its toolset’s `default_config` holds when the toolset is saved.
432* When you read the agent back, the entry shows that policy. If you send those tools back and change only `default_config`, the entry keeps that policy. An entry sent again with no policy takes what `default_config` then holds.
433* Under `always_ask`, no call runs without your approval, and under `auto`, a call can wait for it or be denied. A client written for the Claude API, where the agent toolset’s calls don’t pause by default, should handle confirmation requests here: see [Respond to confirmation requests](https://platform.claude.com/docs/en/managed-agents/permission-policies#respond-to-confirmation-requests).
434* Under `auto`, the calls of a tool that an MCP server adds later are evaluated like any others and can run without your approval. If a person must approve a toolset’s calls, set its `default_config.permission_policy` to `always_ask`. Set `always_ask` too on each `configs` entry that shows another policy when you read the agent back, because an entry’s own policy overrides its toolset’s.
435* For agents that you create in the Amazon Bedrock console, see [AWS’s documentation](https://docs.aws.amazon.com/bedrock/) for the values the console sets.
436422 
437423### Features not supported
438424 

manage-claude/compliance-faq Changed · +17 / -3 lines

from line 72
7272 </Accordion>
7373 
7474 <Accordion title="Do sessions in Cowork, Claude Code, and other Claude apps and add-ins appear in the Compliance API?">
75 Yes. Cowork sessions in Claude Desktop that run on users’ machines, Claude Code sessions (in the terminal, in Claude Desktop, or in an IDE extension), sessions in the Claude Science desktop app, Claude for Microsoft 365 sessions (in Excel, PowerPoint, Word, and Outlook), sessions in the Claude add-ins for Google Docs, Google Sheets, and Google Slides, and chats in the Claude in Chrome browser extension are captured while users are signed in with their Claude Enterprise account and are available through the [local session endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-local-sessions). Cowork sessions started on claude.ai web or mobile and Claude Tag sessions started in Slack, which run in the cloud in Anthropic-managed environments or, for Claude Tag, on a self-hosted runner pool, are available through the [remote session endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-remote-sessions). So are sessions in the [new projects experience](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#the-new-projects-experience). Each family has a list endpoint that returns session metadata and a messages endpoint that returns the session transcript (user prompts, assistant responses, and tool calls and results). The local family adds a third endpoint that retrieves one session’s metadata. All of these endpoints use your existing Compliance Access Key with `read:compliance_user_data`; no new key or scope is needed.
75 Yes, with some exceptions. Two endpoint families return them:
7676 
77 Local sessions are captured as their requests reach the Claude API, so nothing is installed on the device, and on-device activity that never reaches the API is not captured. Claude Code sessions authenticated with a Claude Console Developer API key, Claude Code sessions run through a third-party cloud platform (Amazon Bedrock, Google Cloud, or Microsoft Foundry), and [Claude Code cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web), which run on cloud infrastructure instead of the user’s machine, are not captured. These cloud sessions are not remote sessions, even though both run in the cloud, unless they belong to a project in the [new projects experience](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#the-new-projects-experience). The remote session endpoints return sessions from Cowork, Claude Tag, and the new projects experience only. Each run of a Cowork scheduled task in the cloud takes place in a remote session that has the same owner as the task. When a user creates the task in Cowork, those sessions are user-owned: `user` identifies that user, and `agent_id` and `started_by_user` are `null`. The [remote session list endpoint](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-remote-sessions) returns these sessions like any other Cowork session in the cloud, and the messages endpoint returns their transcripts. A `user_ids[]` filter that names that user matches these sessions. No session field marks a session as a scheduled run or carries the task’s name or schedule. Each run of a Claude Code cloud scheduled task (formerly a routine) is a Claude Code cloud session, so the session endpoints do not return it, unless it takes place in the conversation or a thread of a project in the [new projects experience](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#the-new-projects-experience). Organizations with [HIPAA readiness](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#hipaa-readiness) enabled get local session data for Cowork and Claude Code only, stored for 30 days, and sessions for which [zero data retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope) is in effect are excluded.
77 * **Local sessions:** The [local session endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-local-sessions) return Cowork, Claude Code, and other sessions that users run on their machines or in Claude add-ins while signed in with their Claude Enterprise account.
78 * **Remote sessions:** The [remote session endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-remote-sessions) return Cowork sessions that run in the cloud and Claude Tag sessions started in Slack. They also return sessions in the [new projects experience](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#the-new-projects-experience).
7879 
80 Both families use your existing Compliance Access Key with `read:compliance_user_data`.
81 
82 Neither family returns [Claude Code cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web), unless they belong to a project in the new projects experience. For the products that each family covers and the other sessions that neither returns, see [Endpoint families and coverage](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#endpoint-families-and-coverage).
83 
7984 The local and remote session endpoints are stable for Cowork, Claude Code, and Claude for Microsoft 365 sessions. Coverage of sessions in Claude Science, the Claude add-ins for Google Docs, Google Sheets, and Google Slides, Claude in Chrome, Claude Tag, and the new projects experience is in beta.
8085 </Accordion>
8186 
87 <Accordion title="Do scheduled tasks that run in the cloud appear in the Compliance API?">
88 It depends on the product:
89 
90 * **Cowork:** Runs appear as [remote sessions](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-remote-sessions) with the same owner as the task. A session’s `scheduled_task_id` field identifies the task whose run started the session.
91 * **Claude Code:** Each run of a [cloud scheduled task](https://code.claude.com/docs/en/routines) is a Claude Code cloud session, so the session endpoints do not return it, unless it takes place in the conversation or a thread of a project in the [new projects experience](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#the-new-projects-experience).
92 
93 See [Limits for scheduled tasks](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#limits-for-scheduled-tasks).
94 </Accordion>
95 
8296 <Accordion title="What do session transcripts include?">
8397 Local and remote session transcripts both carry user prompts, assistant responses, and tool calls and results. For local sessions (on users’ machines), that is what Claude was asked to do and what it returned, not what occurred on the device.
8498 
from line 104
90104 | File contents and file names | Yes; text that Claude reads through tools appears in the transcript, subject to the same truncation. Images, PDFs, and other binary or structured content appear only as placeholder `text` blocks. File names appear in tool-call inputs and outputs. | Yes; file contents and file names appear in the transcript through tool-call inputs and outputs (text only; other content is omitted). |
91105 | Artifacts | Yes; generated content appears inside tool-call inputs in the transcript. | Yes; generated content appears inside tool-call inputs in the transcript. |
92106 | Skills | Yes; skill content appears when the client sends it as message content, and it is not distinguished from other user text. | Yes; skill content appears in the transcript. |
93 | Session metadata | Yes; owner (`user.id` and email address), organization, workspace, `product_surface`, `created_at`, and `updated_at`, from the list and retrieve endpoints. Local sessions carry no `status`. | Yes; owner, organization, status, timestamps, and `product_surface`, from the list endpoint. |
107 | Session metadata | Yes; owner (`user.id` and email address), organization, workspace, `product_surface`, `created_at`, and `updated_at`, from the list and retrieve endpoints. Local sessions carry no `status`. | Yes; owner, organization, status, timestamps, `product_surface`, and `scheduled_task_id`, from the list endpoint. |
94108 | Thinking blocks | No. | No. |
95109 | Images and other non-text content | No; each image, PDF, or other binary or structured block appears as a placeholder `text` block (for example, `[image content not shown]`) with `truncated` set to `true`. Raw file bytes are never returned. | No; non-text blocks are omitted, and raw file bytes are never returned. |
96110 | Token usage, cost, and latency | No; token usage and cost are available through the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api). | No; token usage and cost are available through the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api). |

manage-claude/compliance-sessions Changed · +13 / -7 lines

from line 326
326326 
327327Cowork sessions started on claude.ai web or mobile and Claude Tag sessions started in Slack run in the cloud in Anthropic-managed environments; Claude Tag sessions can also run on a self-hosted runner pool. The Compliance API exposes these remote sessions through two endpoints: `GET /v1/compliance/apps/sessions/remote` lists session metadata, and `GET /v1/compliance/apps/sessions/remote/{session_id}/messages` returns one session’s transcript. Both require the `read:compliance_user_data` scope, and both count against the shared Compliance API rate limit plus a second request budget specific to these endpoints; see [429 Too Many Requests](https://platform.claude.com/docs/en/manage-claude/compliance-errors#429-too-many-requests).
328328 
329The list endpoint defaults to organization-wide scope: leave off `organization_ids[]` to include every claude.ai organization your key can read, or pass up to 500 values to narrow the scope. To scope the list to specific users instead, pass 1–10 `user_ids[]` values (obtain the IDs from [List organization users](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-organization-users)); the filter matches the session’s owning user, so agent-owned sessions, including agent-owned Claude Tag sessions, are excluded whenever `user_ids[]` is set. Bound the results in time with `created_at` range parameters (`gte`, `gt`, `lt`, `lte`, in RFC 3339 format). There is no `updated_at` filter. The following request lists sessions created since a given date.
329The list endpoint defaults to organization-wide scope: leave off `organization_ids[]` to include every claude.ai organization your key can read, or pass up to 500 values to narrow the scope. To scope the list to specific users instead, pass 1–10 `user_ids[]` values. Obtain the IDs from [List organization users](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-organization-users). The filter matches the session’s owning user, so agent-owned sessions, including agent-owned Claude Tag sessions, are excluded whenever `user_ids[]` is set. Bound the results in time with `created_at` range parameters (`gte`, `gt`, `lt`, `lte`, in RFC 3339 format). There is no `updated_at` or `scheduled_task_id` filter. The following request lists sessions created since a given date.
330330 
331331```bash cURL
332332curl --fail-with-body -sS -G \
from line 353
353353 "created_at": "2026-07-01T17:04:05Z",
354354 "updated_at": "2026-07-01T18:00:41Z",
355355 "product_surface": "cowork_remote",
356 "claude_project_id": "claude_proj_01KGp4eZNug9ri4kE35RSppq"
356 "claude_project_id": "claude_proj_01KGp4eZNug9ri4kE35RSppq",
357 "scheduled_task_id": null
357358 },
358359 {
359360 "id": "cse_01TkNpRsUvWxYzAbCdEfGhJ4",
from line 369
368369 "created_at": "2026-06-28T09:15:22Z",
369370 "updated_at": "2026-06-28T09:47:10Z",
370371 "product_surface": "cowork_remote",
371 "claude_project_id": null
372 "claude_project_id": null,
373 "scheduled_task_id": "trig_01HnRsTuVwXyZaBcDeFgHjK7"
372374 }
373375 ],
374376 "next_page": "page_AAEfMk93cXpYdGxrZXk"
from line 381
379381 
380382A session is owned by either a user or an agent, never both. For user-owned sessions, `user` carries the owner’s ID and email address (`email_address` is `null` when the user is no longer a member of an organization your key can read) and `agent_id` is `null`. For agent-owned sessions (for example, a Claude Tag session started by a Slack mention), `user` is `null` and `agent_id` carries the agent’s ID (prefix `cagt_`). On those sessions, `started_by_user` identifies the human who started the session when one is recorded, so it can be `null` on a Claude Tag session. On user-owned sessions, `started_by_user` is `null`.
381383 
382Each run of a Cowork scheduled task in the cloud takes place in a session that has the same owner as the task. When a user creates the task in Cowork, those sessions are user-owned: `user` identifies that user, and `agent_id` and `started_by_user` are `null`. A `user_ids[]` filter that names that user matches these sessions. A run can start a new session or continue an existing one. When a run continues an existing session, that session’s `created_at` is when the session began, not when the run took place. No session field marks a session as a scheduled run or carries the task’s name or schedule.
384Each run of a Cowork scheduled task in the cloud takes place in a session that has the same owner as the task. When a user creates the task in Cowork, those sessions are user-owned: `user` identifies that user, and `agent_id` and `started_by_user` are `null`. A `user_ids[]` filter that names that user matches these sessions. A run can start a new session or continue an existing one. When a run continues an existing session, that session’s `created_at` is when the session began, not when the run took place.
383385 
386`scheduled_task_id` (prefix `trig_`) is the ID of the task whose run started the session; the task might no longer exist. It is `null` when no task is recorded, even if a task started or ran in the session. A run that continues an existing session does not change the session’s `scheduled_task_id`. No session field carries the task’s name or schedule.
387 
384388`claude_project_id` is the ID of the claude.ai [project](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-projects-and-attachments) the session belongs to (prefix `claude_proj_` or, in the new projects experience, `chan_`), or `null` when the session is not in a project.
385389 
386390`status` is one of `pending`, `active`, `paused`, `archived`, or `failed`. A session is `pending` while it is being provisioned; a `pending` session has no transcript yet, and the messages endpoint returns 404 for it until provisioning completes. Sessions that have been deleted are never returned.
from line 430
426430 "created_at": "2026-12-01T16:20:11Z",
427431 "updated_at": "2026-12-01T16:42:57Z",
428432 "product_surface": "claude_projects",
429 "claude_project_id": "chan_01Hq7ZkXw3Tn5vB8mRc2LdPy"
433 "claude_project_id": "chan_01Hq7ZkXw3Tn5vB8mRc2LdPy",
434 "scheduled_task_id": null
430435 }
431436 ],
432437 "next_page": null
from line 466
461466 "created_at": "2026-07-01T17:04:05Z",
462467 "updated_at": "2026-07-01T18:00:41Z",
463468 "product_surface": "cowork_remote",
464 "claude_project_id": null
469 "claude_project_id": null,
470 "scheduled_task_id": null
465471 },
466472 "data": [
467473 {
from line 503
497503}
498504```
499505 
500The response embeds a `session` envelope alongside the paginated `data` array. On this endpoint the envelope always has `user.email_address`, `started_by_user`, and `claude_project_id` set to `null`; get those values from the list endpoint instead.
506The response embeds a `session` envelope alongside the paginated `data` array. On this endpoint, the envelope always has `user.email_address`, `started_by_user`, and `claude_project_id` set to `null`; get those values from the list endpoint instead. The envelope’s `scheduled_task_id` has the same value as on the list endpoint.
501507 
502508Messages are returned oldest first by default; pass `order=desc` to reverse. Pagination uses the same `page`/`next_page` scheme as the list endpoint, with a `limit` default of 100 and a max of 1,000. A page can end early when the response reaches its size limit, so a page with fewer than `limit` messages does not mean you have reached the end; keep paginating until `next_page` is `null`.
503509 

manage-claude/user-profiles/manage-profiles Changed · +34 / -26 lines

### If you check `updated_at` for changes

from line 29
2929 
3030A list response might hold no user profiles or fewer than `limit` before the list ends, so keep requesting pages until `next_page` is `null`.
3131 
32To find out when an action opens or ends, list your user profiles at regular intervals. Compare `enforcement_status` and `enforcement_actions` with what you saw last time. If a user profile drops out of the list, it either has no open action or was deleted. Don’t rely on `updated_at` to spot a change, because changes to these fields don’t reliably update it.
32To find out when an action opens or ends, list your user profiles at regular intervals. Compare `enforcement_status` and `enforcement_actions` with what you saw last time. If a user profile drops out of the list, it either shows no open action or was deleted.
3333 
3434Anthropic doesn’t send webhook events for these changes.
3535 
3636### Read the enforcement fields
3737 
38Each user profile in a create, retrieve, update, or list response carries two fields, `enforcement_status` and `enforcement_actions`. If a response has neither, see [If the enforcement fields are missing](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-the-enforcement-fields-are-missing). On Claude Platform on AWS, the fields don’t report actions (see [If you use Claude Platform on AWS](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-you-use-claude-platform-on-aws)).
38Each user profile in a create, retrieve, update, or list response carries two fields, `enforcement_status` and `enforcement_actions`.
3939 
40Anthropic sets both fields, so if a create or update request includes either one, the API returns a `400`.
41 
4240The following example shows these two fields on a retrieved user profile and leaves out most of its other fields:
4341 
4442```json
from line 59
6159 
6260`enforcement_status` summarizes the open actions in one value:
6361 
64* `unrestricted`: No action is open.
65* `restricted`: At least one action is open and none of them is a ban.
62* `unrestricted`: The user profile shows no open action.
63* `restricted`: At least one action is open and none of them is a ban. If a restriction has an end date, you don’t need to stop serving the end customer. Such a restriction might cover only some models.
6664* `banned`: A ban is open.
6765 
68`enforcement_status` is separate from `external_user_details.account_status`, which records your own decision about the account.
66`enforcement_actions` lists the open actions and is empty when there are none. Each action has these fields:
6967 
70`enforcement_actions` lists the open actions and is empty when there are none. An action drops off the list once it ends, so if you need a history, store the actions you read. Each action has these fields:
71 
7268* `type`: `restriction` or `ban`.
7369* `id`: The action’s ID, which starts with `enac_`.
7470* `reason`: Why Anthropic opened the action. It’s one of `unsupported_region`, `fraud_or_abuse`, `high_harm`, `usage_policy_violation`, `account_compromise`, or `unspecified`.
from line 72
7672* `opened_at`: When Anthropic opened the action.
7773* `expires_at`: When the action ends by itself. It’s `null` when the action has no end date.
7874 
79Anthropic can add values to these fields, so make sure your code can handle [a value it doesn’t recognize](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-a-field-has-a-value-that-you-dont-recognize).
75Anthropic can add values to these fields, so make sure your code can handle [a value it doesn’t recognize](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-a-field-has-a-value-that-you-dont-recognize). An action drops off the `enforcement_actions` list once it ends, so if you need a history, store the actions you read.
8076 
77Even when `enforcement_status` is `unrestricted`, Anthropic can refuse a request that carries the user profile’s ID for a reason that the enforcement fields don’t show. If you ask Anthropic about a refused request, include its [request ID](https://platform.claude.com/docs/en/api/errors#request-id) and the user profile’s ID.
78 
79On Claude Platform on AWS, the enforcement fields don’t always report actions (see [If you use Claude Platform on AWS](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-you-use-claude-platform-on-aws)). If a response has neither `enforcement_status` nor `enforcement_actions`, see [If the enforcement fields are missing](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-the-enforcement-fields-are-missing).
80 
8181## Update a user profile
8282 
8383Update a user profile when the end customer’s details or account status change, for example when a company rebrands or you suspend an account. [`POST /v1/user_profiles/{id}`](https://platform.claude.com/docs/en/api/user_profiles/update) changes only the fields you send:
from line 86
8686* Each field you send in [`external_user_details`](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#what-to-tell-anthropic-about-an-end-customer) replaces the stored value. You can’t clear a value, because the API rejects `null` with a `400`.
8787* `metadata` merges key by key. A key you send overwrites its stored value, an empty string deletes the key, and any key you leave out stays as it is.
8888 
89The cURL samples on this page send an access token, such as a [workload identity federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation#authenticate-from-your-workload) token, from `ANTHROPIC_AUTH_TOKEN`. Because that variable takes precedence over federation environment variables and federation profiles, set it only in the shell where you run the samples.
90 
9189The following example marks the account as suspended and deletes a `trial_cohort` metadata key:
9290 
9391<CodeGroup>
94 ```bash cURL
95 curl "https://api.anthropic.com/v1/user_profiles/$PROFILE_ID" \
96 -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
97 -H "anthropic-version: 2026-10-21" \
98 -H "content-type: application/json" \
99 -d '{
100 "external_user_details": {"account_status": "suspended"},
101 "metadata": {"trial_cohort": ""}
102 }'
103 ```
92 <CodeGroupItem>
93 This sample and others like it on this page send an access token from `ANTHROPIC_AUTH_TOKEN`, such as a [workload identity federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation#authenticate-from-your-workload) token. Set that variable only in the shell where you run them. The SDK and the CLI also read it, and it takes precedence over federation environment variables and federation profiles.
10494 
95 ```bash cURL
96 curl "https://api.anthropic.com/v1/user_profiles/$PROFILE_ID" \
97 -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
98 -H "anthropic-version: 2026-10-21" \
99 -H "content-type: application/json" \
100 -d '{
101 "external_user_details": {"account_status": "suspended"},
102 "metadata": {"trial_cohort": ""}
103 }'
104 ```
105 </CodeGroupItem>
106 
105107 ```bash CLI
106108 ant user-profiles update \
107109 --user-profile-id "$PROFILE_ID" \
from line 218
216218 ```
217219</CodeGroup>
218220 
221`enforcement_status` is separate from `external_user_details.account_status`, which records your own decision about the account. Anthropic sets `enforcement_status` and `enforcement_actions`, so if a create or update request includes either of these fields, the API returns a `400`.
222 
219223## Delete a user profile
220224 
221225[`DELETE /v1/user_profiles/{id}`](https://platform.claude.com/docs/en/api/user_profiles/delete) deletes a user profile and the details you supplied for it, including `name`, `external_user_details`, and `metadata`. It doesn’t remove the trust and safety records that Anthropic keeps about that user profile ID. You can delete user profiles on the Claude API and Claude Platform on AWS.
from line 226
222226 
223227Delete a user profile when an end customer closes their account or asks you to erase their data:
224228 
225* **The customer leaves:** Stop sending the user profile’s ID on their requests, and then delete the user profile.
226* **The customer stays with you after an erasure request:** Create a new user profile, switch their requests to its ID, and then delete the old user profile.
229* **The end customer leaves:** Stop sending the user profile’s ID on their requests, and then delete the user profile.
230* **The end customer stays with you after an erasure request:** Create a new user profile, switch their requests to its ID, and then delete the old user profile.
227231 
228232If the customer stays and a workspace has the old user profile attached, that workspace rejects requests that carry the new ID. Before you switch, see [If a workspace has a user profile attached](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#if-a-workspace-has-a-profile-attached).
229233 
from line 331
327331| `enforcement_actions[].reason` | `unspecified` |
328332| `enforcement_actions[].action` | `null` |
329333 
334### If you check `updated_at` for changes
335 
336Don’t rely on `updated_at` to spot a change, because changes to `enforcement_status` and `enforcement_actions` don’t reliably update it. For what to compare instead, see [Find user profiles that have an open action](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#find-profiles-that-have-an-open-action).
337 
330338### If the enforcement fields are missing
331339 
332If a response has neither `enforcement_status` nor `enforcement_actions`, check the request’s `anthropic-beta` header. The `user-profiles-2026-09-04` beta and any earlier user profiles beta leave both fields out and make the `enforcement_status[]` list filter return a `400`. Remove that beta, but keep any others.
340If a response has neither `enforcement_status` nor `enforcement_actions`, check the request’s `anthropic-beta` header. The `user-profiles-2026-09-04` beta and any earlier user profiles beta leave both fields out and make the `enforcement_status[]` list filter return a `400`. Remove that beta, but keep any other betas.
333341 
334342With the SDK or the CLI, call `client.user_profiles` (typescript: `client.userProfiles`; csharp, go: `client.UserProfiles`; java: `client.userProfiles()`; php: `$client->userProfiles`; cli: `ant user-profiles`) instead of `client.beta.user_profiles` (typescript: `client.beta.userProfiles`; csharp, go: `client.Beta.UserProfiles`; java: `client.beta().userProfiles()`; php: `$client->beta->userProfiles`; cli: `ant beta:user-profiles`), because the beta namespace sends the `user-profiles-2026-08-18` beta.
335343 
336344### If you use Claude Platform on AWS
337345 
338On [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), the enforcement fields don’t report actions: `enforcement_status` is always `unrestricted`, and `enforcement_actions` is always empty. Anthropic also doesn’t refuse requests there because of an open action.
346On [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), don’t rely on the enforcement fields to report actions. A user profile there can show an open action, or it can show `unrestricted` and an empty `enforcement_actions` while one is open.
339347 

manage-claude/user-profiles/platforms Changed · +8 / -4 lines

### If you create user profiles on Claude Platform on AWS for another platform

from line 14
1414 
1515## If you use Amazon Bedrock
1616 
17* **Where you create user profiles:** In an organization on the Claude API. An organization on Claude Platform on AWS works too, but its user profiles [don’t report restrictions or bans](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#claude-platform-on-aws).
17* **Where you create user profiles:** In an organization on the Claude API, unless you [create them on Claude Platform on AWS instead](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#if-you-create-profiles-on-claude-platform-on-aws).
1818* **What you link first:** Each AWS account that sends requests with user profile IDs to Amazon Bedrock. Link each one to the organization that creates your user profiles. For the steps, see [Link an AWS account or Google Cloud project](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal#link-an-aws-account-or-google-cloud-project). You don’t need to link an account you use only for your own usage.
1919* **Where the ID goes:** In the `user_profile_id` field at the top level of the request body, not in the `anthropic-user-profile-id` header. Send it only on the [requests that can carry a user profile ID](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#amazon-bedrock-models). See [How each platform checks the ID](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#how-each-platform-checks-the-id).
2020 
from line 47
4747 
4848How the ID gets into the body depends on how you call Amazon Bedrock:
4949 
50* **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.
50* **The SDK client for the Claude API:** Don’t send a user profile ID to Amazon Bedrock through this client. It puts the ID in the header, whatever base URL you give it.
5151* **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.
5252* **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).
5353* **`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"`.
from line 59
5959* **Where you create user profiles:** In your organization on [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), using that platform’s base URL and authentication. The calling principal needs the [user profile IAM actions](https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions#user-profiles).
6060* **What you link first:** Nothing, if you create the user profiles in this organization. If another organization created them, see [If a request returns a `400`](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#if-a-request-returns-a-400).
6161* **Where the ID goes:** In the `anthropic-user-profile-id` header, which the SDK’s [user profile argument](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#attribute-each-request) sets.
62* **Restrictions and bans:** Not reported. For what the enforcement fields show instead, see [Manage user profiles on Claude Platform on AWS](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-you-use-claude-platform-on-aws).
62* **Restrictions and bans:** The enforcement fields don’t always report them. For what these fields show, see [Manage user profiles on Claude Platform on AWS](https://platform.claude.com/docs/en/manage-claude/user-profiles/manage-profiles#if-you-use-claude-platform-on-aws).
6363 
6464## If you use Claude Models on Google Cloud (Anthropic managed)
6565 
from line 69
6969 
7070## If you use Claude Models on Google Cloud (Google managed)
7171 
72* **Where you create user profiles:** In an organization on the Claude API. An organization on Claude Platform on AWS works too, but its user profiles [don’t report restrictions or bans](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#claude-platform-on-aws).
72* **Where you create user profiles:** In an organization on the Claude API, unless you [create them on Claude Platform on AWS instead](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#if-you-create-profiles-on-claude-platform-on-aws).
7373* **What you link first:** Each Google Cloud project that sends requests with user profile IDs to [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed). Link each one to the organization that creates your user profiles. For the steps, see [Link an AWS account or Google Cloud project](https://platform.claude.com/docs/en/manage-claude/user-profiles-verification-portal#link-an-aws-account-or-google-cloud-project). You don’t need to link a project you use only for your own usage.
7474* **Where the ID goes:** In the `anthropic-user-profile-id` header, not in the request body. See [How each platform checks the ID](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#how-each-platform-checks-the-id).
7575 
from line 84
8484* **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`.
8585 
8686## Rules and special cases
87 
88### If you create user profiles on Claude Platform on AWS for another platform
89 
90On Claude Models on Google Cloud (Google managed) and Amazon Bedrock, you can create your user profiles in an organization on Claude Platform on AWS instead of an organization on the Claude API. However, user profiles on Claude Platform on AWS [don’t always report restrictions or bans](https://platform.claude.com/docs/en/manage-claude/user-profiles/platforms#claude-platform-on-aws).
8791 
8892### If you use an earlier SDK on `bedrock-runtime`
8993 

managed-agents/amazon-bedrock New page · 130 lines, new page

## Set up your AWS account ## Set up the SDK ## Find agents, sessions, and memory stores ## Permission policy defaults

A whole new page. There's nothing to diff it against, so here is what it says.

---
title: Claude Managed Agents for Amazon Bedrock
url: https://platform.claude.com/docs/en/managed-agents/amazon-bedrock
description: Set up the SDK to call Claude Managed Agents on Amazon Bedrock, and see the default permission policies there.
---

[Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) is available on Amazon Bedrock, where AWS operates and bills it. You send requests to Amazon Bedrock and sign them with your AWS credentials. The agent’s built-in tools run in your own AWS account or on your own machine.

Claude Managed Agents on Amazon Bedrock works with other AWS services. When the agent’s built-in tools run on Amazon Bedrock AgentCore Runtime in your AWS account, each session gets its own container. Agents reach MCP tools through Amazon Bedrock AgentCore Gateway, which controls access with the IAM roles you define. You can use Amazon EventBridge to run agents on a schedule. For integration details, see AWS’s documentation.

## Set up your AWS account

To set up your AWS account, create an agent, and run a session, see [AWS’s documentation for Amazon Bedrock](https://docs.aws.amazon.com/bedrock/). AWS’s documentation also lists where the API on Amazon Bedrock differs from the Anthropic-hosted service.

## Set up the SDK

The SDK calls Claude Managed Agents through a different client from the one in [Claude in Amazon Bedrock (`bedrock-mantle`)](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#making-your-first-request).

<Steps>
  <Step title="Install the SDK">
    Install the [latest version of the SDK](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#install-an-sdk) with the commands on the Claude in Amazon Bedrock page. The same packages include this client. If you already have the SDK, upgrade it with your package manager.
  </Step>

  <Step title="Set your environment variables">
    Set `AWS_REGION` to a [region where Claude Managed Agents is available](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents-regions). Unset `AWS_BEARER_TOKEN_BEDROCK` so that the client signs your requests with your AWS credentials.
  </Step>

  <Step title="Create the client">
    This client sends Claude Managed Agents requests to `https://bedrock.{region}.amazonaws.com/anthropic`. It finds your credentials through the default AWS credential chain.

    <CodeGroup exclude="shell">
      <CodeGroupItem language="cURL">
        Send your requests to this URL, and sign each one with your AWS credentials.
      </CodeGroupItem>

      <CodeGroupItem language="CLI">
        Set `ANTHROPIC_BEDROCK_REGION` to your region, because `AWS_REGION` doesn’t select Amazon Bedrock in the CLI. Then use the `beta:bedrock:*` commands in the [latest version of `ant`](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/quickstart#installation).
      </CodeGroupItem>

      ```python Python
      from anthropic import AnthropicBedrock

      client = AnthropicBedrock()
      ```

      ```typescript TypeScript
      import { AnthropicBedrock } from "@anthropic-ai/bedrock-sdk";

      const client = new AnthropicBedrock();
      ```

      ```csharp C#
      using Anthropic.Bedrock;

      AnthropicBedrockClient client = new(
          await AnthropicBedrockCredentialsHelper.FromEnv()
          ?? throw new InvalidOperationException("AWS credentials not configured.")
      );
      ```

      ```go Go
      import (
      	"context"

      	"github.com/anthropics/anthropic-sdk-go/v2"
      	"github.com/anthropics/anthropic-sdk-go/v2/bedrock"
      )

      func main() {
      	client := anthropic.NewClient(
      		bedrock.WithLoadDefaultConfig(context.Background()),
      	)
      	// ...
      }
      ```

      ```java Java
      import com.anthropic.bedrock.backends.BedrockBackend;
      import com.anthropic.client.AnthropicClient;
      import com.anthropic.client.okhttp.AnthropicOkHttpClient;

      void main() {
          AnthropicClient client = AnthropicOkHttpClient.builder()
              .backend(BedrockBackend.fromEnv())
              .build();
      }
      ```

      ```php PHP
      use Anthropic\Bedrock\Client;

      $client = Client::fromEnvironment();
      ```

      <CodeGroupItem>
        This client needs one more gem. To add it, run `bundle add aws-sdk-bedrockruntime`.

        ```ruby Ruby
        require "anthropic"

        client = Anthropic::BedrockClient.new
        ```
      </CodeGroupItem>
    </CodeGroup>
  </Step>
</Steps>

## Find agents, sessions, and memory stores

On Amazon Bedrock, the SDK supports three Claude Managed Agents resources. Use the names in this table, even where the other Claude Managed Agents guides show different ones:

| Resource | On the client |
| ----- | ----- |
| Agents | `client.beta.agents` (csharp: `client.Beta.Agents`; go: `client.Beta.Bedrock.Agents`; java: `client.beta().bedrock().agents()`; php: `$client->beta->agents`) |
| Sessions | `client.beta.sessions` (csharp: `client.Beta.Sessions`; go: `client.Beta.Bedrock.Sessions`; java: `client.beta().bedrock().sessions()`; php: `$client->beta->sessions`) |
| Memory stores | `client.beta.memory_stores` (typescript: `client.beta.memoryStores`; csharp: `client.Beta.MemoryStores`; go: `client.Beta.Bedrock.MemoryStores`; java: `client.beta().bedrock().memoryStores()`; php: `$client->beta->memoryStores`) |

These resources also have their own parameter types, such as `BedrockAgentCreateParams` (csharp: `Anthropic.Models.Beta.Bedrock.Agents.BedrockAgentCreateParams`; go: `anthropic.BetaBedrockAgentNewParams`; java: `com.anthropic.models.beta.bedrock.agents.BedrockAgentCreateParams`) for creating an agent. That type requires `execution_identity` (java, php: `executionIdentity`; csharp, go: `ExecutionIdentity`). For the values that `execution_identity` (java, php: `executionIdentity`; csharp, go: `ExecutionIdentity`) and `model` (csharp, go: `Model`) take, see [AWS’s documentation](https://docs.aws.amazon.com/bedrock/).

## Permission policy defaults

On Amazon Bedrock, the agent toolset and MCP toolsets get their own default [permission policy](https://platform.claude.com/docs/en/managed-agents/permission-policies), the same for both. A toolset has no permission policy when its [`default_config` (java, php: `defaultConfig`; csharp, go: `DefaultConfig`) field](https://platform.claude.com/docs/en/managed-agents/permission-policies#set-a-policy-for-a-toolset) names none or is left out.

* An agent toolset or MCP toolset that a request sends with no permission policy gets [the `auto` policy](https://platform.claude.com/docs/en/managed-agents/permission-policies#let-the-server-evaluate-each-call-with-auto), or `always_ask` where `auto` isn’t available.
* In the response to the request that sends the toolset, its `default_config.permission_policy` (java, php: `defaultConfig.permissionPolicy`; csharp, go: `DefaultConfig.PermissionPolicy`) shows which of the two policies it got.
* A [`configs` (csharp, go: `Configs`) entry](https://platform.claude.com/docs/en/managed-agents/permission-policies#override-an-individual-tool-policy) that names no policy gets the policy that its toolset’s `default_config` (java, php: `defaultConfig`; csharp, go: `DefaultConfig`) holds when the toolset is saved.
* When you read the agent back, the entry shows that policy. If you send those tools back and change only `default_config` (java, php: `defaultConfig`; csharp, go: `DefaultConfig`), the entry keeps that policy. An entry sent again with no policy takes what `default_config` (java, php: `defaultConfig`; csharp, go: `DefaultConfig`) then holds.
* Under `always_ask`, no call runs without your approval, and under `auto`, a call can wait for it or be denied. A client written for the Claude API, where the agent toolset’s calls don’t pause by default, should handle confirmation requests here: see [Respond to confirmation requests](https://platform.claude.com/docs/en/managed-agents/permission-policies#respond-to-confirmation-requests).
* Under `auto`, the calls of a tool that an MCP server adds later are evaluated like any others and can run without your approval. If a person must approve a toolset’s calls, set its `default_config.permission_policy` (java, php: `defaultConfig.permissionPolicy`; csharp, go: `DefaultConfig.PermissionPolicy`) to `always_ask`. Set `always_ask` too on each `configs` (csharp, go: `Configs`) entry that shows another policy when you read the agent back, because an entry’s own policy overrides its toolset’s.
* For agents that you create in the Amazon Bedrock console, see [AWS’s documentation](https://docs.aws.amazon.com/bedrock/) for the values the console sets.

api/errors Changed · +1 / -1 lines

from line 38
3838 
3939 To tell the spend cap from a rate limit in code, check the [error code](https://platform.claude.com/docs/en/api/errors#error-codes).
4040 
41* 500 - `api_error`: An unexpected error has occurred internal to Anthropic’s systems. Retry only if the response’s `x-should-retry` header isn’t `false` (see [Retries](https://platform.claude.com/docs/en/api/errors#retries)). If the error persists, contact support with the [request ID](https://platform.claude.com/docs/en/api/errors#request-id). If the error type is `timeout_error` instead, see the 504 entry.
41* 500 - `api_error`: An unexpected error has occurred internal to Anthropic’s systems. Don’t retry if the response’s `x-should-retry` header is `false` (see [Retries](https://platform.claude.com/docs/en/api/errors#retries)). If the error persists, contact support with the [request ID](https://platform.claude.com/docs/en/api/errors#request-id). If the error type is `timeout_error` instead, see the 504 entry.
4242 
4343* 504 - `timeout_error`: The request timed out while processing. The API also returns `timeout_error` with other status codes, such as a 500 when a request reaches the server’s time limit before the response starts. For long-running Messages API requests, use the [streaming Messages API](https://platform.claude.com/docs/en/build-with-claude/streaming). See [Long requests](https://platform.claude.com/docs/en/api/errors#long-requests) for more options.
4444 

api/overview Changed · +1 / -1 lines

from line 105
105105| Microsoft Foundry | Microsoft Azure (Anthropic-operated) | [Claude in Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
106106 
107107<Note>
108 Claude Managed Agents is available through the first-party Claude API, [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), and [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed). For feature availability across platforms, see the [Features overview](https://platform.claude.com/docs/en/build-with-claude/overview).
108 Claude Managed Agents is available through the first-party Claude API, [Amazon Bedrock](https://platform.claude.com/docs/en/managed-agents/amazon-bedrock), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), and [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed). For feature availability across platforms, see the [Features overview](https://platform.claude.com/docs/en/build-with-claude/overview).
109109</Note>
110110 
111111## Request and response format

manage-claude/user-profiles/attribute-requests Changed · +2 / -2 lines

from line 37
3737 
3838Create one user profile for each end customer before the first request that you send with its ID. Onboarding is a common place to do it. Because `POST /v1/user_profiles` isn’t idempotent, every call creates a new user profile, even when `reference_id` (your own ID for the end customer) matches an existing one. Store the ID it returns and reuse it.
3939 
40If you already have end customers without user profiles, see the [guidance on registering an existing customer base](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#register-existing-end-customers) later in this section.
40If you already have end customers without user profiles, see [Register an existing customer base](https://platform.claude.com/docs/en/manage-claude/user-profiles/attribute-requests#register-existing-end-customers).
4141 
4242### What to tell Anthropic about an end customer
4343 
from line 65
6565 
6666<CodeGroup>
6767 <CodeGroupItem>
68 This sample and others like it on this page send an access token from `ANTHROPIC_AUTH_TOKEN`, such as a [workload identity federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation#authenticate-from-your-workload) token. Set that variable only in the shell where you run them, because it takes precedence over federation environment variables and federation profiles.
68 This sample and others like it on this page send an access token from `ANTHROPIC_AUTH_TOKEN`, such as a [workload identity federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation#authenticate-from-your-workload) token. Set that variable only in the shell where you run them. The SDK and the CLI also read it, and it takes precedence over federation environment variables and federation profiles.
6969 
7070 ```bash cURL
7171 curl https://api.anthropic.com/v1/user_profiles \

managed-agents/agent-setup Changed · +1 / -1 lines

from line 41
4141 
4242Create the agent once as a reusable resource and reference it by ID each time you [start a session](https://platform.claude.com/docs/en/managed-agents/sessions). Agents are versioned and easier to manage across many sessions.
4343 
44On Amazon Bedrock, some of what this page describes works differently: see [Claude Managed Agents](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents) on the Claude in Amazon Bedrock page.
44On Amazon Bedrock, some of what this page describes works differently: see [Claude Managed Agents for Amazon Bedrock](https://platform.claude.com/docs/en/managed-agents/amazon-bedrock).
4545 
4646## Agent configuration fields
4747 

managed-agents/choosing-an-environment Changed · +1 / -1 lines

from line 92
9292 
9393## Differences on Amazon Bedrock
9494 
95If you use Claude Managed Agents through Amazon Bedrock, AWS operates the service. The agent’s built-in tools run in your own AWS account or on your own machine. To set that up, follow AWS’s documentation. See [Claude Managed Agents](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents) in the Claude in Amazon Bedrock guide.
95If you use Claude Managed Agents through Amazon Bedrock, AWS operates the service. The agent’s built-in tools run in your own AWS account or on your own machine. To set that up, follow AWS’s documentation. See [Claude Managed Agents for Amazon Bedrock](https://platform.claude.com/docs/en/managed-agents/amazon-bedrock).
9696 
9797## Differences on cloud platforms
9898 

managed-agents/mcp-connector Changed · +1 / -1 lines

from line 46
4646 
4747This separation keeps secrets out of reusable agent definitions while letting each session authenticate with its own credentials.
4848 
49On Amazon Bedrock, some of what this page describes works differently: see [Claude Managed Agents](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents) on the Claude in Amazon Bedrock page.
49On Amazon Bedrock, some of what this page describes works differently: see [Claude Managed Agents for Amazon Bedrock](https://platform.claude.com/docs/en/managed-agents/amazon-bedrock).
5050 
5151## Declare MCP servers on the agent
5252 

managed-agents/overview Changed · +1 / -1 lines

from line 47
4747Claude Managed Agents provides the harness and infrastructure for running Claude as an autonomous agent. Instead of building your own agent loop, tool execution, and runtime, you get a fully managed environment where Claude can read files, run commands, browse the web, and run code securely. The harness supports built-in prompt caching, compaction, and other performance optimizations for high-quality, efficient agent outputs. To build your own agent loop with direct model access instead, see [Using the Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages).
4848 
4949<Note>
50 Claude Managed Agents is also available on [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#claude-managed-agents), and [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#claude-managed-agents). On these platforms, some features and session behavior differ from the Claude API. See the linked sections.
50 Claude Managed Agents is also available on [Amazon Bedrock](https://platform.claude.com/docs/en/managed-agents/amazon-bedrock), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#claude-managed-agents), and [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#claude-managed-agents). On these platforms, some features and session behavior differ from the Claude API. For the differences, follow those links.
5151</Note>
5252 
5353<CardGroup cols={3}>

managed-agents/permission-policies Changed · +1 / -1 lines

from line 41
4141 
4242Permission policies apply to server-executed tools: the prebuilt agent toolset and MCP toolsets. A policy determines whether a tool’s calls run automatically, wait for your approval, or go to the server, which evaluates each call. Custom tools run in your application, under your control, so permission policies don’t apply to custom tools.
4343 
44On Amazon Bedrock, some of what this page describes works differently: see [Claude Managed Agents](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents) on the Claude in Amazon Bedrock page.
44On Amazon Bedrock, some of what this page describes works differently: see [Claude Managed Agents for Amazon Bedrock](https://platform.claude.com/docs/en/managed-agents/amazon-bedrock).
4545 
4646## Permission policy types
4747 

release-notes/overview Changed · +1 / -1 lines

from line 14
1414 
1515### December 1, 2026
1616 
17* We’ve launched [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) in beta on Amazon Bedrock. AWS operates it and bills your usage, and AWS IAM controls access. See [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents).
17* We’ve launched [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) in beta on Amazon Bedrock. AWS operates it and bills your usage, and AWS IAM controls access. See [Claude Managed Agents for Amazon Bedrock](https://platform.claude.com/docs/en/managed-agents/amazon-bedrock).
1818 
1919### November 30, 2026
2020 
Feedback