Follow Discord
Sweep 24 Nov 2026 · 22:58Z Build v2.1.332 549 read Stable v2.1.325 Latest v2.1.331 Next v2.1.332 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · api

One read of Claude Developer Platformapi-20261125T010711Z

59 pages moved out of 964 read.

Pages moved 59 significant first
Pages read 964 in this capture
Captured 01:07 UTC
Corpus hash a85a143ff146 corpus-hash

What this read moved

1-25 of 59, page 1 of 3

This capture is too large to show at once. Changes 1-25 of 59 are below, significant first; the rest are on the following screens.

about-claude/model-deprecations Changed · +5 / -1 lines

from line 25
2525 
2626## Migrating to replacements
2727 
28Once a model is deprecated, migrate all usage to a suitable replacement before the retirement date. Once the model is retired, requests to it fail.
28Once a model is deprecated, migrate all usage to its [recommended replacement](https://platform.claude.com/docs/en/about-claude/model-deprecations#deprecation-history) or another active model before the retirement date. Once the model is retired, requests to it fail. On the Claude API, the Messages API returns a [404 `not_found_error`](https://platform.claude.com/docs/en/api/errors#http-errors).
2929 
3030To help measure the performance of replacement models on your tasks, consider thorough testing of your applications with the new models well before the retirement date.
3131 
from line 121
121121| November 30, 2026 | `claude-sonnet-4-5-20250929` | `claude-sonnet-5-5` |
122122 
123123This retirement includes `claude-sonnet-4-5`, the same model’s ID without a date.
124 
125To migrate, see [Migrating from Claude Sonnet 4.5 or earlier](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#migrating-from-sonnet-45) in the Claude Sonnet 5.5 migration guide.
126 
127If you use a platform other than the Claude API, see [Overview](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) for which dates apply.
124128 
125129### 2026-06-05: Claude Opus 4.1 model
126130 

about-claude/models/model-ids-and-versions Changed · +9 / -5 lines

from line 44
4444claude-{name}-{major}-{minor}-{YYYYMMDD}
4545```
4646 
47For example: `claude-sonnet-4-5-20250929`, `claude-haiku-4-5-20251001`
47For example: `claude-haiku-4-5-20251001`
4848 
49On Amazon Bedrock, these use the format:
49On the Claude API, the Claude 4.5 models also have shorter aliases, such as `claude-haiku-4-5`. Each alias points to the most recent dated snapshot for its minor version.
5050 
51On Amazon Bedrock (`bedrock-runtime`), dated IDs use the format:
52 
5153```text wrap
5254anthropic.claude-{name}-{major}-{minor}-{YYYYMMDD}-v1:0
5355```
5456 
55For example: `anthropic.claude-sonnet-4-5-20250929-v1:0`
57For example: `anthropic.claude-haiku-4-5-20251001-v1:0`
5658 
59To call these models, add an inference profile prefix, such as `global.` or `us.`, to the ID. For details, see [API model IDs](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#api-model-ids) on the Amazon Bedrock (`bedrock-runtime`) page.
60 
5761On [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#api-model-ids), the format matches the Claude API.
5862 
5963On Claude Models on Google Cloud (Google managed), the date is separated with `@`:
from line 68
6468 
6569For example: `claude-haiku-4-5@20251001`
6670 
67On the Claude API, these models also have shorter aliases (for example, `claude-sonnet-4-5`) that point to the most recent dated snapshot for that minor version.
71[Amazon Bedrock (`bedrock-mantle`)](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#supported-models), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#available-models), and [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#api-model-ids-and-deployments) list these models by an ID without the date. Each link opens that platform’s model table, which has the ID to use.
6872 
6973## Dateless IDs are pinned snapshots
7074 
from line 76
7276 
7377For the 4.6 generation and later, the dateless ID is the canonical model ID for that release. It maps to a single, fixed model snapshot. Anthropic does not update the weights or configuration of an existing model ID. When an updated version is available, it ships under a new model ID.
7478 
75This differs from the dateless aliases that exist on the Claude API for earlier models. An alias such as `claude-sonnet-4-5` is a convenience pointer that resolves to the most recent dated snapshot for that minor version. A 4.6-generation ID such as `claude-sonnet-4-6` is not an alias. It is the snapshot.
79An ID from the 4.6 generation or later, such as `claude-sonnet-4-6`, looks like the aliases in [Before the 4.6 generation](https://platform.claude.com/docs/en/about-claude/models/model-ids-and-versions#before-the-4-6-generation). However, it is not an alias. It is the snapshot.
7680 
7781Every model ID, whether dated or dateless, has its own distinct deprecation and retirement schedule.
7882 

about-claude/pricing Changed · +7 / -9 lines

from line 73
7373 
7474 Regional and multi-region endpoints include a 10 percent premium over global endpoints. The Claude API (first-party) is global by default; for first-party data residency options and pricing, see [Data residency pricing](https://platform.claude.com/docs/en/about-claude/pricing#data-residency-pricing).
7575 
76 **Scope:** This pricing structure applies to Claude Sonnet 4.5 (deprecated), Haiku 4.5, Opus 4.5, and later models. It doesn’t apply to earlier models (Claude Opus 4.1 and prior releases).
77 
7876 For implementation details and code examples:
7977 
8078 * Amazon Bedrock global versus regional endpoints: [Claude in Amazon Bedrock (`bedrock-mantle`)](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#regions) or [Claude on Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#global-vs-regional-endpoints), depending on whether you call `bedrock-mantle` or `bedrock-runtime`
from line 487
489487 
490488| Line item | Calculation | Cost |
491489| ----- | ----- | ----- |
492| Input tokens | 50,000 × $4 / 1,000,000 | $0.20 USD |
493| Output tokens | 15,000 × $20 / 1,000,000 | $0.30 USD |
494| Session runtime | 1.0 hour × $0.08 | $0.08 USD |
490| Input tokens | 50,000 × $4 USD / 1,000,000 | $0.20 USD |
491| Output tokens | 15,000 × $20 USD / 1,000,000 | $0.30 USD |
492| Session runtime | 1.0 hour × $0.08 USD | $0.08 USD |
495493| **Total** | | **$0.58 USD** |
496494 
497495If prompt caching is active and 40,000 of the input tokens are cache reads:
from line 496
498496 
499497| Line item | Calculation | Cost |
500498| ----- | ----- | ----- |
501| Uncached input tokens | 10,000 × $4 / 1,000,000 | $0.04 USD |
502| Cache read tokens | 40,000 × $4 × 0.05 / 1,000,000 | $0.008 USD |
503| Output tokens | 15,000 × $20 / 1,000,000 | $0.30 USD |
504| Session runtime | 1.0 hour × $0.08 | $0.08 USD |
499| Uncached input tokens | 10,000 × $4 USD / 1,000,000 | $0.04 USD |
500| Cache read tokens | 40,000 × $4 USD × 0.05 / 1,000,000 | $0.008 USD |
501| Output tokens | 15,000 × $20 USD / 1,000,000 | $0.30 USD |
502| Session runtime | 1.0 hour × $0.08 USD | $0.08 USD |
505503| **Total** | | **$0.428 USD** |
506504 
507505## Additional pricing considerations

agents-and-tools/tool-use/computer-use-tool Changed · +5 / -1 lines

from line 2187
21872187| Tool version | Beta header | Use with | Parameters |
21882188| ----- | ----- | ----- | ----- |
21892189| `computer_20251124` | `computer-use-2025-11-24` | Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, Claude Opus 5, Claude Sonnet 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Sonnet 4.6, and Claude Opus 4.5 | [API reference](https://platform.claude.com/docs/en/api/beta/messages/create) |
2190| `computer_20250124` | `computer-use-2025-01-24` | Claude Sonnet 4.5 ([deprecated](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Haiku 4.5, Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)), and Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | [API reference](https://platform.claude.com/docs/en/api/beta/messages/create) |
2190| `computer_20250124` | `computer-use-2025-01-24` | Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4 | [API reference](https://platform.claude.com/docs/en/api/beta/messages/create) |
2191 
2192Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4 are retired on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview).
2193 
2194Claude Opus 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). Claude Sonnet 4.5 is deprecated on the same platforms. For retirement dates and recommended replacements, see [Deprecation history](https://platform.claude.com/docs/en/about-claude/model-deprecations#deprecation-history) on the Model deprecations page. [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
21912195 
21922196On Amazon Bedrock, Claude Fable 5.2, Claude Mythos 5.2, Claude Opus 5.5, Claude Sonnet 5.5, and Claude Haiku 5.5 also accept the `computer_20251124` tool with the `computer-use-2025-11-24` beta header. With Amazon Bedrock’s InvokeModel API, send `computer-use-2025-11-24` in the `anthropic_beta` array of the request body instead of in a header. For that API, see [Claude on Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy).
21932197 

build-with-claude/claude-in-microsoft-foundry Changed · +5 / -1 lines

from line 618
618618 
619619### Context window
620620 
621All [available models](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#api-model-ids-and-deployments) have a [1M-token context window](https://platform.claude.com/docs/en/build-with-claude/context-windows) on Microsoft Foundry except Claude Opus 4.5, Claude Sonnet 4.5 (deprecated), and Claude Haiku 4.5. These three models have a 200k-token context window.
621On Microsoft Foundry, all [available models](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#api-model-ids-and-deployments) have a [1M-token context window](https://platform.claude.com/docs/en/build-with-claude/context-windows) except the models in the following list. These models have a 200k-token context window:
622 
623* Claude Opus 4.5 (deprecated)
624* Claude Sonnet 4.5 (deprecated)
625* Claude Haiku 4.5
622626 
623627### Claude features not supported for Claude in Microsoft Foundry
624628 

build-with-claude/claude-platform-on-aws Changed · +7 / -11 lines

from line 40
4040 
4141[AWS PrivateLink](https://docs.aws.amazon.com/vpc/latest/privatelink/what-is-privatelink.html) is supported for connecting your VPC to the Claude Platform on AWS endpoint (see [Connect through AWS PrivateLink](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#connect-through-aws-privatelink)).
4242 
43**When to choose Bedrock:** Organizations in regulated industries that require FedRAMP High, IL4, IL5, or HIPAA readiness, or that need AWS to be the sole data processor, should use [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock). Bedrock runs entirely on AWS-controlled infrastructure with AWS as the operating party.
43**When to choose Bedrock:** Organizations in regulated industries that require FedRAMP High or HIPAA readiness, or that need AWS to be the sole data processor, should use [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock). Bedrock runs entirely on AWS-controlled infrastructure with AWS as the operating party.
4444 
4545**Which offering are you using?** Claude is available through several distinct products:
4646 
from line 95
9595 Access to the Claude Console is federated through AWS IAM:
9696 
9797 1. Assume an IAM role with the `aws-external-anthropic:AssumeConsole` permission. See [Console access](https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions#console-access).
98 2. From the **Claude Platform on AWS** service page, click **Open Claude Console**. The AWS Console issues a JWT and redirects you to `platform.claude.com`.
99 3. On first sign-in, you’re prompted for an email address. Enter your work email. The platform provisions your Claude Console user just-in-time.
98 2. On the **Claude Platform on AWS** service page, select **Admin** or **Developer** and click **Sign in**. The AWS Console issues a JWT and redirects you to `platform.claude.com`. On first sign-in, the platform provisions your Claude Console user just-in-time.
10099 
101100 When you’re signed in through the AWS Console, the Claude Console scopes to your Claude Platform on AWS organization. An **Account managed by AWS** indicator appears in the bottom-left of the Claude Console sidebar.
102101 </Step>
from line 627
628627 
629628Set the inference geography for each request with the `inference_geo` parameter:
630629 
631<Note>
632 The `inference_geo` parameter is supported on Claude 4.6 and later models. Requests with `inference_geo` on Claude Opus 4.5, Claude Sonnet 4.5 (deprecated), or Claude Haiku 4.5 return a 400 error. See [Data residency](https://platform.claude.com/docs/en/manage-claude/data-residency) for model availability details.
633</Note>
634 
635630<CodeGroup>
636631 ```bash cURL
637632 # Replace us-west-2 with your AWS region in both the URL and --aws-sigv4
from line 787
792787 
793788If you omit `inference_geo`, the request uses the workspace’s `default_inference_geo` if one is configured, otherwise `global`.
794789 
790The `inference_geo` parameter is supported on Claude 4.6 and later models. Requests with `inference_geo` on earlier models return a 400 error. See [Data residency](https://platform.claude.com/docs/en/manage-claude/data-residency#model-availability) for model availability details.
791 
795792Workspace-level inference geography controls (`allowed_inference_geos` and `default_inference_geo`) are also available on Claude Platform on AWS. See [Workspace-level restrictions](https://platform.claude.com/docs/en/manage-claude/data-residency#workspace-level-restrictions).
796793 
797794## Workspaces
from line 827
830827 
8318281. Assume an IAM role with the `aws-external-anthropic:AssumeConsole` permission. See [Console access](https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions#console-access).
8328292. Navigate to the Claude Platform on AWS page in the [AWS Console](https://console.aws.amazon.com/).
8333. Click **Open Claude Console**. The AWS Console issues a JWT and redirects you to `platform.claude.com`.
8344. On first sign-in, you’re prompted for an email address. Enter your work email. The platform provisions your Claude Console user just-in-time.
8303. Select **Admin** or **Developer** and click **Sign in**. The AWS Console issues a JWT and redirects you to `platform.claude.com`. On first sign-in, the platform provisions your Claude Console user just-in-time.
835831 
836Two Claude Console roles are available: **Admin** and **Developer**. The Admin role grants access to all Claude Console pages and settings available for Claude Platform on AWS. The Developer role grants read access to usage, cost, rate limit, and workspace information. Contact your Anthropic account representative to assign the Admin or Developer role to a principal.
832Two Claude Console roles are available: **Admin** and **Developer**. The Admin role grants access to all Claude Console pages and settings available for Claude Platform on AWS. The Developer role grants read access to usage, cost, and rate limit information. On pages such as **Workspaces**, **Agents**, and **Credential vaults**, what either role can view and manage depends on the principal’s IAM policies. To limit which role a principal can select, allow `AssumeConsole` only in an IAM statement that has a condition on `aws-external-anthropic:Capability` (`admin` or `developer`). Any other statement that allows it, such as one that allows `aws-external-anthropic:*`, allows both roles.
837833 
838834### Available pages
839835 

build-with-claude/context-editing Changed · +10 / -12 lines

from line 73
7373 
7474The `clear_thinking_20251015` strategy manages `thinking` blocks from earlier assistant turns. This strategy gives you control over thinking preservation: you can choose to keep more thinking blocks to maintain reasoning continuity, or clear them more aggressively to save context space.
7575 
76<Tip>
77 **Default behavior:** When a request doesn’t include the `clear_thinking_20251015` strategy, the default varies by model class.
76When a request doesn’t include the `clear_thinking_20251015` strategy, the default varies by model class.
7877 
79 | Model class | Keep all prior thinking | Keep thinking only for the turn in progress |
80 | ----- | ----- | ----- |
81 | Opus | Claude Opus 4.5 and later | Claude Opus 4.1 and earlier |
82 | Sonnet | Claude Sonnet 4.6 and later | Claude Sonnet 4.5 (deprecated) and earlier |
83 | Haiku | Claude Haiku 5.5 and later | Claude Haiku 4.5 and earlier |
84 | Fable and Mythos | All models | (none) |
78| Model class | Keep all prior thinking | Keep thinking only for the turn in progress |
79| ----- | ----- | ----- |
80| Opus | Claude Opus 4.5 and later | Claude Opus 4.1 and earlier |
81| Sonnet | Claude Sonnet 4.6 and later | Claude Sonnet 4.5 and earlier |
82| Haiku | Claude Haiku 5.5 and later | Claude Haiku 4.5 and earlier |
83| Fable and Mythos | All models | (none) |
8584 
86 Use this strategy to override the default. If your code runs across multiple model classes, include this strategy and set `keep` explicitly rather than relying on the per-model default.
87</Tip>
85Use this strategy to override the default. If your code runs across multiple model classes, include this strategy and set `keep` explicitly rather than relying on the per-model default.
8886 
8987An assistant conversation turn might include multiple content blocks (for example, when using tools) and multiple thinking blocks (for example, with [interleaved thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#interleaved-thinking)).
9088 

build-with-claude/context-windows Changed · +21 / -9 lines

from line 35
3535 
3636## Context window sizes by model
3737 
38Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, Claude Opus 5.5, Claude Opus 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Haiku 5.5, and [Claude Mythos Preview](https://anthropic.com/glasswing) have a 1M-token context window. A single request to any of them can generate up to 128k output tokens (`max_tokens`). Other Claude models, including Claude Sonnet 4.5 (deprecated), have a 200k-token context window.
38These models have a 1M-token context window:
3939 
40* Claude Fable 5.2, Claude Fable 5.1, and Claude Fable 5
41* Claude Mythos 5.2, Claude Mythos 5.1, Claude Mythos 5, and [Claude Mythos Preview](https://anthropic.com/glasswing)
42* Claude Opus 5.5, Claude Opus 5, Claude Opus 4.8, Claude Opus 4.7, and Claude Opus 4.6
43* Claude Sonnet 5.5, Claude Sonnet 5, and Claude Sonnet 4.6
44* Claude Haiku 5.5
45 
46Other Claude models have a 200k-token context window.
47 
48A single Messages API request to a model with a 1M-token context window can generate up to 128k output tokens (`max_tokens`).
49 
4050For every model with a 1M-token context window, 1M is the default: you don’t need a beta header, and long-context requests are billed at [standard pricing](https://platform.claude.com/docs/en/about-claude/pricing#long-context-pricing), except on Claude Haiku 5.5, where prompts over 100,000 tokens cost more.
4151 
4252A single request can include up to 600 images or PDF pages (100 for models with a 200k-token context window). If you send many images or large documents, you might reach [request size limits](https://platform.claude.com/docs/en/api/overview#request-size-limits) before the token limit.
4353 
44See the [All models](https://platform.claude.com/docs/en/models/overview#all-models) table for a list of context window sizes by model.
54See the [All models](https://platform.claude.com/docs/en/models/overview#all-models) table for context window sizes and output limits by model.
4555 
4656## The context window with thinking
4757 
from line 118
108118 * The API uses cryptographic signatures to verify thinking block authenticity.
109119 
110120<Note>
111 Most current Claude models support [interleaved thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#interleaved-thinking), which lets Claude think between tool calls, including after it receives tool results. It is automatic on models with adaptive thinking; Claude Opus 4.5, Claude Sonnet 4.5 (deprecated), and earlier Claude 4 models require the `interleaved-thinking-2025-05-14` beta header, and Claude Haiku 4.5 does not support it.
112 
113 For more information about using tools with thinking, see [Thinking with tool use](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-with-tool-use).
121 [Interleaved thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#interleaved-thinking) lets Claude think between tool calls, including after it receives tool results. It is automatic when a request uses adaptive thinking. With manual extended thinking, support depends on the model: see [Interleaved thinking in manual mode](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#interleaved-thinking).
114122</Note>
115123 
124For more information about using tools with thinking, see [Thinking with tool use](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-with-tool-use).
125 
116126To reduce the context consumed by the tool definitions themselves, see [Manage tool context](https://platform.claude.com/docs/en/agents-and-tools/tool-use/manage-tool-context), or defer tool definitions with the [tool search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool).
117127 
118128## Context awareness
119129 
120Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 (deprecated), and Claude Haiku 4.5 have **context awareness:** these models track their remaining context window (their “token budget”) throughout a conversation. This lets the model manage long-running tasks against the space that remains rather than guess how many tokens are left. Context awareness is automatic: there is nothing for you to enable, and you never send the tags shown in this section yourself. The API injects them.
130Only Claude Sonnet 4.5 and Claude Haiku 4.5 have **context awareness:** these models track their remaining context window throughout a conversation. This lets the model manage long-running tasks against the space that remains rather than guess how many tokens are left. Context awareness is automatic: there is nothing for you to enable, and you never send the tags shown in this section yourself. The API injects them.
121131 
132No other model receives these tags. To give a model an explicit budget, use [task budgets](https://platform.claude.com/docs/en/build-with-claude/task-budgets) on a [model that supports them](https://platform.claude.com/docs/en/build-with-claude/task-budgets#feature-support). Task budgets are in beta.
133 
134Claude Sonnet 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). For its retirement date and recommended replacement, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations#2026-09-30-claude-sonnet-4-5-model). [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
135 
122136### How it works
123137 
124138In the system prompt of every request, the API gives Claude its total context window:
from line 141
127141<budget:token_budget>200000</budget:token_budget>
128142```
129143 
130The budget matches the context window available to your request: 1M tokens for Claude Sonnet 5 and Claude Sonnet 4.6, and 200k tokens for Claude Sonnet 4.5 (deprecated) and Claude Haiku 4.5. The examples in this section show a model with a 200k-token context window.
144This token budget matches the context window available to your request: 200k tokens on both models.
131145 
132146After each tool call, the API gives Claude an update on its remaining capacity:
133147 
from line 150
136150```
137151 
138152Image tokens are included in these budgets.
139 
140Claude Opus 4.7 and later Opus models, Claude Sonnet 5.5, Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, and Claude Haiku 5.5 don’t receive these injected tags. On these models, you can give the model an explicit budget with [task budgets](https://platform.claude.com/docs/en/build-with-claude/task-budgets), which are in beta.
141153 
142154<Tip>
143155 For agents that span multiple sessions, design your state artifacts so that context recovery is fast when a new session starts. The [memory tool’s multisession pattern](https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool#multisession-software-development-pattern) walks through a concrete approach. See also [Effective harnesses for long-running agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents).

build-with-claude/extended-thinking Changed · +11 / -7 lines

from line 301
301301 
302302Interleaved thinking lets Claude think between tool calls within a single assistant turn, reasoning about each tool result before determining what to do next. For the concept, the turn structure, and how it behaves on adaptive-thinking models, see [interleaved thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#interleaved-thinking) in the thinking overview. This section covers how to enable it when you use manual `type: "enabled"` thinking.
303303 
304On Claude Opus 4.5, Claude Sonnet 4.5 (deprecated), and earlier Claude 4 models, add the `interleaved-thinking-2025-05-14` [beta header](https://platform.claude.com/docs/en/api/beta-headers) to your API request.
304On Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4, add the `interleaved-thinking-2025-05-14` [beta header](https://platform.claude.com/docs/en/api/beta-headers) to your request. With Amazon Bedrock’s InvokeModel API, put the beta in the `anthropic_beta` array of the request body instead of in a header.
305305 
306306The 4.6 generation splits in manual mode:
307307 
from line 308
308308* **Claude Sonnet 4.6**: the beta header with manual `type: "enabled"` is still functional but deprecated. Prefer [adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/thinking), which interleaves automatically with no header.
309309* **Claude Opus 4.6**: manual mode has no interleaved thinking at all. Only its adaptive mode interleaves, so switch to `thinking: {type: "adaptive"}` if you need reasoning between tool calls on this model.
310310 
311Claude Haiku 4.5 does not support interleaved thinking. On the Claude API, the beta header is accepted but ignored.
312 
313311Two more considerations for interleaved thinking in manual mode:
314312 
315313* `budget_tokens` can exceed `max_tokens` here; the [budget rules](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#budget-rules-and-tuning) explain this exception.
from line 356
358356 
359357## Migrating to adaptive thinking
360358 
361If your model supports only extended thinking, no action is needed. These models are Claude Sonnet 4.5 (deprecated), Claude Opus 4.5, Claude Haiku 4.5, and earlier Claude 4 models. Adaptive thinking is not available on them, and `type: "adaptive"` [returns a 400 error](https://platform.claude.com/docs/en/build-with-claude/thinking-troubleshooting#error-thinking-type-adaptive). Keep `budget_tokens` until you move to a model that supports adaptive thinking, then apply the mapping that follows.
362 
363359You need to migrate off `type: "enabled"` if:
364360 
365361* You use Claude Opus 4.6 or Claude Sonnet 4.6, where `budget_tokens` is deprecated.
366362* You use a model numbered 4.7 or higher, where `type: "enabled"` returns a 400 error. Examples include Claude Opus 5.5, Claude Sonnet 5, Claude Sonnet 5.5, Claude Fable 5.2, Claude Fable 5.1, and Claude Haiku 5.5.
367363 
368The mapping is small: remove `budget_tokens`, set `thinking: {type: "adaptive"}`, and control reasoning depth with `output_config: {effort: ...}` instead of a token budget.
364Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4 support only extended thinking. On these models, `type: "adaptive"` [returns a 400 error](https://platform.claude.com/docs/en/build-with-claude/thinking-troubleshooting#error-thinking-type-adaptive). Keep `budget_tokens` until you move to a model that supports adaptive thinking.
369365 
366Claude Opus 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). Claude Sonnet 4.5 is deprecated on the same platforms. For retirement dates and recommended replacements, see [Deprecation history](https://platform.claude.com/docs/en/about-claude/model-deprecations#deprecation-history) on the Model deprecations page. [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
367 
368To migrate, remove `budget_tokens`, set `thinking: {type: "adaptive"}`, and control reasoning depth with `output_config: {effort: ...}` instead of a token budget.
369 
370370```json
371371{
372372 "model": "claude-sonnet-4-6",
from line 395
395395 
396396`effort: "high"` is the default on Claude Sonnet 4.6, so omitting it here produces identical behavior; it appears only to show where the depth control lives in adaptive mode. Claude Opus 5.5 and Claude Haiku 5.5 default to `"medium"`, and other models that support effort default to `"high"` (see [Effort levels](https://platform.claude.com/docs/en/build-with-claude/effort#effort-levels)).
397397 
398Expect a behavioral difference, not only a syntax change. With a fixed budget, Claude thinks on every request. With adaptive thinking, Claude determines whether and how much to think on each request, and at lower [effort](https://platform.claude.com/docs/en/build-with-claude/effort) settings it might skip thinking entirely on easy inputs. You can also remove the `interleaved-thinking-2025-05-14` beta header after migrating: adaptive thinking interleaves automatically, and the Claude API ignores the header on these models. Thinking block preservation changes too. Claude Opus 4.5 and models numbered 4.6 and higher keep prior turns’ thinking blocks in context and bill them as input. Claude Sonnet 4.5 (deprecated), Claude Haiku 4.5, and earlier models strip them. See [thinking block preservation by model](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-block-preservation-by-model).
398Expect a behavioral difference, not only a syntax change. With a fixed budget, Claude thinks at the start of each assistant turn that you don’t prefill. With adaptive thinking, Claude determines whether and how much to think on each request. At lower [effort](https://platform.claude.com/docs/en/build-with-claude/effort) settings, it might skip thinking entirely on easy inputs.
399 
400You can also remove the `interleaved-thinking-2025-05-14` beta header after migrating because adaptive thinking interleaves automatically.
401 
402If you also change models, thinking block preservation can change. Claude Opus 4.5 and Claude 4.6 and later models keep prior turns’ thinking blocks in context and bill them as input. Claude Sonnet 4.5, Claude Haiku 4.5, and earlier models strip them. See [Thinking block preservation by model](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-block-preservation-by-model).
399403 
400404Switching modes is a thinking-configuration change, so the first request after the switch invalidates cache breakpoints, as described in [Prompt caching in manual mode](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#extended-thinking-with-prompt-caching).
401405 

build-with-claude/handling-stop-reasons Changed · +1 / -7 lines

from line 1922
19221922 ```
19231923</CodeGroup>
19241924 
1925<Tip>
1926 If you encounter `refusal` stop reasons frequently while using Claude Sonnet 4.5 ([deprecated](https://platform.claude.com/docs/en/about-claude/model-deprecations)) or Claude Opus 4.1 (the latter [retired, except on Claude Models on Google Cloud (Google managed) and Amazon Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)), you can try updating your API calls to use Claude Haiku 4.5 (`claude-haiku-4-5-20251001`), which has different usage restrictions. Learn more about [understanding Sonnet 4.5’s API safety filters](https://support.claude.com/en/articles/12449294-understanding-sonnet-4-5-s-api-safety-filters).
1927</Tip>
1928 
19291925On a refusal, the [`stop_details`](https://platform.claude.com/docs/en/api/messages/create#message.stop_details) object identifies the policy category that triggered it. The categories and the full refusal response shape are covered in [What a refusal looks like](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#refusal-response). `stop_details` is `null` for all stop reasons other than `refusal`.
19301926 
19311927You can usually get a response to a refused request by retrying it on another Claude model. This works for Claude Fable 5.2, Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, and Claude Haiku 5.5. [Refusals and fallback](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback) shows how to set up that retry, server-side or in your client. Claude Haiku 5.5 has no server-side fallback, so set up its retry with [client-side fallback](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#client-side-fallback). If you build the retry yourself from any of these models except Claude Haiku 5.5, [Fallback credit](https://platform.claude.com/docs/en/build-with-claude/fallback-credit) covers how to avoid paying the prompt-cache cost twice.
from line 1932
19361932 
19371933Claude stopped because it reached the model’s context window limit. This lets you request the maximum possible tokens without knowing the exact input size.
19381934 
1939<Note>
1940 This stop reason is currently typed only in the SDK’s `beta` (csharp, go: `Beta`; java: `beta()`) namespace, so the following examples call `client.beta.messages` (csharp, go: `client.Beta.Messages`; java: `client.beta().messages()`; php: `$client->beta->messages`) and use the `Beta`-prefixed types. On Sonnet 4.5 (deprecated) and newer models, the API returns this value without a beta header. For earlier models, add the `model-context-window-exceeded-2025-08-26` beta header to enable it.
1941</Note>
1935On Claude 4.5 and later models, the API can return this value. On earlier models, add the `model-context-window-exceeded-2025-08-26` [beta header](https://platform.claude.com/docs/en/api/beta-headers) to enable it.
19421936 
19431937<CodeGroup>
19441938 ```bash cURL

build-with-claude/prompt-caching Changed · +4 / -5 lines

from line 615
615615On the Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), and [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry), the minimum cacheable prompt length is:
616616 
617617* 512 tokens for Claude Fable 5.2, [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), Claude Fable 5.1, [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Fable 5, [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), and Claude Haiku 5.5
618* 1,024 tokens for Claude Opus 4.8, Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 ([deprecated on Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview)), Claude Opus 4.1, Claude Opus 4, and Claude Sonnet 4
618619* 2,048 tokens for [Claude Mythos Preview](https://anthropic.com/glasswing) and Claude Opus 4.7
619* 4,096 tokens for Claude Opus 4.6 and Claude Opus 4.5
620* 1,024 tokens for Claude Opus 4.8, Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 ([deprecated](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)), and Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations))
621* 4,096 tokens for Claude Haiku 4.5
620* 4,096 tokens for Claude Opus 4.6, Claude Opus 4.5 ([deprecated on Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview)), and Claude Haiku 4.5
622621 
623These minimums apply on each of these platforms where the model is available.
622These minimums apply to each model on each of these platforms where that model is available. Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4 are retired on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview).
624623 
625624Shorter prompts cannot be cached, even if marked with `cache_control`. Any requests to cache fewer than this number of tokens are processed without caching, and no error is returned. To check whether a prompt was cached, look at the [response usage fields](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#tracking-cache-performance): if both `cache_creation_input_tokens` and `cache_read_input_tokens` are 0, the prompt was not cached (likely because it did not meet the minimum length requirement).
626625 

build-with-claude/thinking Changed · +16 / -1 lines

from line 1004
10041004 Consecutive tool calls do not require interleaved thinking. Claude can chain tool calls with or without interleaved thinking. Interleaving changes where thinking blocks appear between tool calls, not whether tool calls can chain.
10051005</Note>
10061006 
1007With adaptive thinking, interleaved thinking is automatic on every model that supports adaptive thinking. On Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, Claude Mythos Preview, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Opus 4.8, and Claude Opus 4.7, reasoning between tool calls always appears in thinking blocks. Claude Haiku 4.5 does not support interleaved thinking. On models using manual extended thinking, interleaving requires a beta header and changes how the thinking budget is counted. [Interleaved thinking in manual mode](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#interleaved-thinking) covers the per-model rules and platform-specific header behavior.
1007With adaptive thinking, interleaved thinking is automatic on [every model that supports adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#configuring-thinking). On the following models, reasoning between tool calls always appears in thinking blocks:
1008 
1009* Claude Fable 5.2
1010* Claude Mythos 5.2
1011* Claude Fable 5.1
1012* Claude Mythos 5.1
1013* Claude Fable 5
1014* Claude Mythos 5
1015* Claude Mythos Preview
1016* Claude Opus 5.5
1017* Claude Opus 5
1018* Claude Sonnet 5.5
1019* Claude Opus 4.8
1020* Claude Opus 4.7
1021 
1022On models using manual extended thinking, interleaving requires a beta header and changes how the thinking budget is counted. [Interleaved thinking in manual mode](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#interleaved-thinking) covers the per-model rules and platform-specific header behavior.
10081023 
10091024With interleaved thinking, the thinking allocation can span the entire assistant turn rather than a single response. Interleaved thinking is only supported for [tools used through the Messages API](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview).
10101025 

claude_api_primer Changed · +6 / -2 lines

from line 113
113113* **Claude 4.5 and earlier models:** The API accepts a prefill unless the model is retired on the platform that you use. All requests to a retired model fail. To check a model’s status, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations).
114114* **All other models:** The API returns a 400 error (see the [Prefill not supported](https://platform.claude.com/docs/en/api/errors#prefill-not-supported) section of the Claude API errors page). Use one of the [alternatives to a prefill](https://platform.claude.com/docs/en/claude_api_primer#alternatives-to-a-prefill) instead.
115115 
116Claude Opus 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). Claude Sonnet 4.5 is deprecated on the same platforms. For retirement dates and recommended replacements, see [Deprecation history](https://platform.claude.com/docs/en/about-claude/model-deprecations#deprecation-history) on the Model deprecations page. [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
117 
118The recommended replacements for Claude Opus 4.5 and Claude Sonnet 4.5 don’t accept a prefill.
119 
116120The following example runs on Claude Opus 4.5 and sets the format of a multiple-choice answer. The prefill, `The answer is (`, ends right before the answer’s letter so that Claude writes the letter first. Because the answer is one letter, the example also sets `max_tokens` to `1`. For a longer answer, set a higher `max_tokens`.
117121 
118122<CodeGroup exclude="shell:cURL, typescript, csharp, go, java, php, ruby">
from line 319
315319* Claude Opus 4.7 (`claude-opus-4-7`, adaptive thinking only)
316320* Claude Opus 4.6 (`claude-opus-4-6`, adaptive or legacy manual thinking)
317321* Claude Sonnet 4.6 (`claude-sonnet-4-6`, adaptive or legacy manual thinking)
318* Claude Opus 4.5 (`claude-opus-4-5-20251101`, legacy manual thinking only)
319* Claude Sonnet 4.5 (`claude-sonnet-4-5-20250929`, [deprecated](https://platform.claude.com/docs/en/about-claude/model-deprecations), legacy manual thinking only)
322* Claude Opus 4.5 (`claude-opus-4-5-20251101`, [deprecated on Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview), legacy manual thinking only)
323* Claude Sonnet 4.5 (`claude-sonnet-4-5-20250929`, [deprecated on Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview), legacy manual thinking only)
320324* Claude Haiku 4.5 (`claude-haiku-4-5-20251001`, legacy manual thinking only)
321325 
322326<Note>

manage-claude/api-and-data-retention Changed · +27 / -27 lines

## Legacy zero data retention (Legacy ZDR) ### What Legacy ZDR covers ### What Legacy ZDR does not cover ## Zero data retention (ZDR) ### What ZDR covers ### What ZDR does not cover

from line 20
2020* Only what is technically necessary for the feature to work is retained. Conversation content (your prompts and Claude’s outputs) is not retained by default; the exception is [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements), which require 30-day retention.
2121* Retained data is purged on the shortest practical time to live (TTL), and Anthropic aims to give customers control over how long data is retained. What is held, and the retention duration where a specific TTL applies, is documented on each feature’s page.
2222 
23Several retention models sit outside the ZDR and HIPAA arrangements described on this page. Data accessible through the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) follows its own retention model. The [Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) retains data for 6 years. Chat, file, and project content from claude.ai follows your organization’s retention policy set in [claude.ai > Organization settings > Data and privacy](https://claude.ai/admin-settings/data-privacy-controls), unless a user deletes it sooner. [Local session transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-local-sessions) come from sessions on users’ machines, in apps such as Cowork and Claude Code. These transcripts are stored for 6 years by default, or for your organization’s custom conversation retention period when a finite one is set (the same claude.ai setting). [Remote session transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-remote-sessions) (Cowork in the cloud and Claude Tag) have no default retention period. See [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion). The Compliance API does not capture local sessions for which ZDR is in effect. For organizations with HIPAA readiness enabled, it captures Cowork and Claude Code local sessions only and stores their transcripts for 30 days.
23Several retention models sit outside the Legacy ZDR and HIPAA arrangements described on this page. Data accessible through the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) follows its own retention model. The [Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) retains data for 6 years. Chat, file, and project content from claude.ai follows your organization’s retention policy set in [claude.ai > Organization settings > Data and privacy](https://claude.ai/admin-settings/data-privacy-controls), unless a user deletes it sooner. [Local session transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-local-sessions) come from sessions on users’ machines, in apps such as Cowork and Claude Code. These transcripts are stored for 6 years by default, or for your organization’s custom conversation retention period when a finite one is set (the same claude.ai setting). [Remote session transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-remote-sessions) (Cowork in the cloud and Claude Tag) have no default retention period. See [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion). The Compliance API does not capture local sessions for which ZDR is in effect. For organizations with HIPAA readiness enabled, it captures Cowork and Claude Code local sessions only and stores their transcripts for 30 days.
2424 
25## Zero data retention (ZDR)
25## Legacy zero data retention (Legacy ZDR)
2626 
27Under a ZDR arrangement, Anthropic does not store customer prompts or responses at rest after the API response is returned. To request ZDR for your organization, contact the [Anthropic sales team](https://claude.com/contact-sales). ZDR is enabled per organization; each new organization requires ZDR to be enabled separately by your account team, and enablement does not automatically extend to other organizations under the same account.
27Under a Legacy ZDR arrangement, Anthropic does not store customer prompts or responses at rest after the API response is returned. To request ZDR for your organization, contact the [Anthropic sales team](https://claude.com/contact-sales). ZDR is enabled per organization; each new organization requires ZDR to be enabled separately by your account team, and enablement does not automatically extend to other organizations under the same account.
2828 
2929Organizations with a ZDR arrangement cannot call the Claude API directly from a browser: the API rejects their cross-origin (CORS) requests. To call the API from a web application, send the requests from your own back end. See [Browser-based applications](https://platform.claude.com/docs/en/manage-claude/authentication#browser-based-applications).
3030 
31### What ZDR covers
31### What Legacy ZDR covers
3232 
33* **Claude Messages and Token Counting APIs:** ZDR applies to these endpoints for eligible features listed in the [feature eligibility table](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility). Features that use `/v1/messages` but are marked “No” in the table (such as code execution) are not covered.
34* **Claude Code with API keys:** ZDR applies when Claude Code is used with API keys from a Commercial organization (an organization under Anthropic’s Commercial Terms of Service, as distinct from a consumer Claude account). If metrics logging is enabled in Claude Code, productivity data such as usage statistics is exempted from ZDR and may be retained. Claude Code on Claude Enterprise is not covered by this arrangement and has a separate ZDR offering; see [What ZDR does not cover](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#what-zdr-does-not-cover).
33* **Claude Messages and Token Counting APIs:** Legacy ZDR applies to these endpoints for eligible features listed in the [feature eligibility table](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility). Features that use `/v1/messages` but are marked “No” in the table (such as code execution) are not covered.
34* **Claude Code with API keys:** Legacy ZDR applies when Claude Code is used with API keys from a Commercial organization (an organization under Anthropic’s Commercial Terms of Service, as distinct from a consumer Claude account). If metrics logging is enabled in Claude Code, productivity data such as usage statistics is exempted from Legacy ZDR and may be retained. Claude Code on Claude Enterprise is not covered by this arrangement and has a separate ZDR offering; see [What Legacy ZDR does not cover](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#what-zdr-does-not-cover).
3535* **Claude Platform on AWS:** [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) follows the same data retention policy as the first-party Claude API. ZDR is available on request; contact your Anthropic account representative to enable it.
3636* **Claude Models on Google Cloud (Anthropic managed):** [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) follows the same data retention policy as the first-party Claude API. ZDR is available on request; contact your Anthropic account representative to enable it.
3737 
38### What ZDR does not cover
38### What Legacy ZDR does not cover
3939 
4040* **Claude Console:** Any usage in the Claude Console, including playground.
4141* **Claude Managed Agents:** Claude Managed Agents is a stateful resource; session transcripts persist until you delete them. The exception is self-hosted Claude Managed Agents, where you store the transcripts yourself, as [How long data is kept](https://platform.claude.com/docs/en/managed-agents/self-hosted-data-and-access#how-long-data-is-kept) describes.
4242* **Claude consumer products:** Claude Free, Pro, Max, and Ultra plans, including when customers on those plans use Claude’s web, desktop, or mobile apps or Claude Code.
43* **Claude Teams and Claude Enterprise product interfaces:** These interfaces are not ZDR-eligible. The one exception is Claude Code on Claude Enterprise, which has its own ZDR offering, separate from the ZDR arrangement described on this page. That offering is available only to qualified accounts on Claude Enterprise and requires separate enablement by Anthropic. See the [Claude Code ZDR documentation](https://code.claude.com/docs/en/zero-data-retention), which applies to Claude Enterprise organizations only.
43* **Claude Teams and Claude Enterprise product interfaces:** These interfaces are not ZDR-eligible. The one exception is Claude Code on Claude Enterprise, which has its own ZDR offering, separate from the Legacy ZDR arrangement described on this page. That offering is available only to qualified accounts on Claude Enterprise and requires separate enablement by Anthropic. See the [Claude Code ZDR documentation](https://code.claude.com/docs/en/zero-data-retention), which applies to Claude Enterprise organizations only.
4444* **Claude for Excel:** Not currently ZDR-eligible.
45* **Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, and Claude Mythos 5:** These models require 30-day data retention and are not available under ZDR unless expressly authorized by Anthropic. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
45* **Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, and Claude Mythos 5:** These models require 30-day data retention and are not available under Legacy ZDR unless expressly authorized by Anthropic. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
4646* **Third-party integrations:** Data processed by third-party websites, tools, or other integrations is not covered, though some may have similar offerings. Review each service’s data handling practices.
4747* **Flagged content and legal holds:** See [Retention regardless of arrangement](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#retention-regardless-of-arrangement).
4848 
from line 137
137137 
138138## Model-specific data retention requirements
139139 
140Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, and Claude Mythos 5 are designated Covered Models. See the [Covered Models support article](https://support.claude.com/en/articles/15425695). They require 30-day data retention. ZDR is therefore not available for any of them unless expressly authorized by Anthropic. With [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), eligible organizations can use these models under Enterprise Frontier Safeguards ZDR. On the Claude API, requests to Claude Fable 5 from an organization whose data retention configuration does not meet this requirement return a `400 invalid_request_error`:
140Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, and Claude Mythos 5 are designated Covered Models. See the [Covered Models support article](https://support.claude.com/en/articles/15425695). They require 30-day data retention. Legacy ZDR is therefore not available for any of them unless expressly authorized by Anthropic. With [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), eligible organizations can use these models under Enterprise Frontier Safeguards ZDR. On the Claude API, requests to Claude Fable 5 from an organization whose data retention configuration does not meet this requirement return a `400 invalid_request_error`:
141141 
142142```json
143143{
from line 153
153153 
154154### Enable 30-day retention for a workspace
155155 
156Organizations with a ZDR arrangement can make these models available in a specific workspace by enabling 30-day retention for that workspace only. Other workspaces in the organization keep zero data retention. The Default Workspace always follows the organization’s setting, so use another workspace.
156Organizations with a Legacy ZDR arrangement can make these models available in a specific workspace by enabling 30-day retention for that workspace only. Other workspaces in the organization keep Legacy ZDR. The Default Workspace always follows the organization’s setting, so use another workspace.
157157 
158158<Steps>
159159 <Step title="Open the workspace’s data retention settings">
from line 171
171171 
172172## Feature eligibility
173173 
174The following tables list which Claude API features are eligible for ZDR and HIPAA readiness arrangements. They split the features as the [Features overview](https://platform.claude.com/docs/en/build-with-claude/overview) does.
174The following tables list which Claude API features are eligible for Legacy ZDR and HIPAA readiness arrangements. They split the features as the [Features overview](https://platform.claude.com/docs/en/build-with-claude/overview) does.
175175 
176176Each eligibility column uses three values:
177177 
178* **Yes:** The feature is fully eligible under the arrangement. For ZDR, “Yes” also assumes you are using a model that does not require 30-day data retention; [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements) are not available under ZDR regardless of feature eligibility, unless expressly authorized by Anthropic or used in a workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview).
178* **Yes:** The feature is fully eligible under the arrangement. For Legacy ZDR, “Yes” also assumes you are using a model that does not require 30-day data retention; [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements) are not available under Legacy ZDR regardless of feature eligibility, unless expressly authorized by Anthropic or used in a workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview).
179179* **Yes (qualified):** Your prompts and Claude’s outputs are not stored, but a bounded technical artifact (named in the Details column) is retained briefly for the feature to function. See [How Anthropic approaches data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#how-anthropic-approaches-data-retention) for the commitments that govern these features.
180* **No:** The feature is not eligible. Under HIPAA readiness, the API blocks requests that include a “No” feature and returns a `400` error, unless the feature’s Details column says otherwise. Under ZDR, the API does **not** block these features; using one is a choice to step outside your ZDR arrangement for that specific data, and the feature’s own documented retention policy applies. However, in a workspace with [Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) off, such as any workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), the Batch API refuses new batches. Anthropic’s Claude Managed Agents service doesn’t run sessions there either. Features marked “No” for ZDR are typically stateful (they store jobs, files, or container state), which is why they cannot be zero-retention.
180* **No:** The feature is not eligible. Under HIPAA readiness, the API blocks requests that include a “No” feature and returns a `400` error, unless the feature’s Details column says otherwise. Under Legacy ZDR, the API does **not** block these features; using one is a choice to step outside your Legacy ZDR arrangement for that specific data, and the feature’s own documented retention policy applies. However, in a workspace with [Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) off, such as any workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), the Batch API refuses new batches. Anthropic’s Claude Managed Agents service doesn’t run sessions there either. Features marked “No” for Legacy ZDR are typically stateful (they store jobs, files, or container state), which is why they cannot be zero-retention.
181181 
182182### Platform features
183183 
184This section lists features that relate to both the [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) and [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview). Some are available in only one of them. This table gives each feature’s eligibility in the Messages API. In Claude Managed Agents, no feature is eligible for ZDR or HIPAA readiness, except for self-hosted Managed Agents under ZDR. See the Claude Managed Agents row under [Managed Agents features](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#managed-agents-features).
184This section lists features that relate to both the [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) and [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview). Some are available in only one of them. This table gives each feature’s eligibility in the Messages API. In Claude Managed Agents, no feature is eligible for Legacy ZDR or HIPAA readiness, except for self-hosted Managed Agents under Legacy ZDR. See the Claude Managed Agents row under [Managed Agents features](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#managed-agents-features).
185185 
186186| Feature | Endpoint | Legacy ZDR eligible | HIPAA eligible | Details |
187187| :---- | :---- | :---- | :---- | :---- |
from line 246
246246## Frequently asked questions
247247 
248248<AccordionGroup>
249 <Accordion title="How do I know if my organization has ZDR arrangements?">
250 Check your contract terms or contact your Anthropic account representative to confirm whether your organization has ZDR arrangements in place.
249 <Accordion title="How do I know if my organization has Legacy ZDR arrangements?">
250 Check your contract terms or contact your Anthropic account representative to confirm whether your organization has Legacy ZDR arrangements in place.
251251 </Accordion>
252252 
253 <Accordion title="Can I use ZDR-eligible (qualified) features under my ZDR arrangement?">
253 <Accordion title="Can I use ZDR-eligible (qualified) features under my Legacy ZDR arrangement?">
254254 Yes. These features retain a minimal, documented set of technical data, not your prompts or Claude’s outputs. See the [feature eligibility table](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility) legend for what “Yes (qualified)” means and [How Anthropic approaches data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#how-anthropic-approaches-data-retention) for the commitments that govern these features.
255255 </Accordion>
256256 
257 <Accordion title="What happens if I use a feature marked &#x22;No&#x22; under ZDR?">
258 Nothing blocks the request. But in a workspace with [Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) off, such as any workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), the Batch API refuses new batches. Anthropic’s Claude Managed Agents service doesn’t run sessions there either. Features marked “No” for ZDR are fundamentally stateful: the Batch API stores your jobs, the Files API stores your files, and code execution runs in persistent containers. Data for these features is retained according to the feature’s documented policy. Using them is a choice to step outside your ZDR arrangement for that specific data.
257 <Accordion title="What happens if I use a feature marked &#x22;No&#x22; under Legacy ZDR?">
258 Nothing blocks the request. But in a workspace with [Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) off, such as any workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), the Batch API refuses new batches. Anthropic’s Claude Managed Agents service doesn’t run sessions there either. Features marked “No” for Legacy ZDR are fundamentally stateful: the Batch API stores your jobs, the Files API stores your files, and code execution runs in persistent containers. Data for these features is retained according to the feature’s documented policy. Using them is a choice to step outside your Legacy ZDR arrangement for that specific data.
259259 </Accordion>
260260 
261261 <Accordion title="Can I request deletion of data from features that are not ZDR-eligible?">
from line 293
293293 <Accordion title="Is Claude Code eligible for ZDR?">
294294 Claude Code is eligible for ZDR under two separate offerings:
295295 
296 * **API keys:** Claude Code used with pay-as-you-go API keys from a Commercial organization is covered when that organization has a ZDR arrangement for the Claude API, which this page describes.
296 * **API keys:** Claude Code used with pay-as-you-go API keys from a Commercial organization is covered when that organization has a Legacy ZDR arrangement for the Claude API, which this page describes.
297297 * **Claude Enterprise:** Claude Code used through Claude Enterprise is covered by a separate offering, ZDR for Claude Code on Claude Enterprise, when Anthropic has enabled it for the organization.
298298 
299299 ZDR is enabled on a per-organization basis. Each new organization requires ZDR to be enabled separately by your account team. ZDR does not automatically apply to new organizations created under the same account.
from line 300
300300 
301301 Additionally, if you have metrics logging enabled in Claude Code, productivity data (such as usage statistics) is exempted from ZDR and may be retained.
302302 
303 For full details on ZDR for Claude Code on Claude Enterprise, including disabled features and how to request enablement, see the [Claude Code ZDR documentation](https://code.claude.com/docs/en/zero-data-retention). That documentation applies to Claude Enterprise organizations only and does not describe the ZDR arrangement for the Claude API.
303 For full details on ZDR for Claude Code on Claude Enterprise, including disabled features and how to request enablement, see the [Claude Code ZDR documentation](https://code.claude.com/docs/en/zero-data-retention). That documentation applies to Claude Enterprise organizations only and does not describe the Legacy ZDR arrangement for the Claude API.
304304 </Accordion>
305305 
306306 <Accordion title="Does Claude for Excel support ZDR?">

manage-claude/authentication Changed · +10 / -9 lines

from line 1
11---
22title: Authentication
33url: https://platform.claude.com/docs/en/manage-claude/authentication
4description: Authenticate to the Claude API with API keys, Workload Identity Federation, or App Attest.
4description: "Choose how your code proves who it is to the Claude API: CLI sign-in, Workload Identity Federation, App Attest, or an API key."
55---
66 
7The Claude API supports three ways to authenticate requests:
7Every request to the Claude API carries a credential that tells the API who is calling, such as you or a service account that gives a program its own identity. Choose the method by where your code runs. Every method but an API key sends a short-lived token instead of a long-lived secret, which limits the damage if a token leaks.
88 
99| Method | Credential | Best for |
1010| ----- | ----- | ----- |
11| [API key](https://platform.claude.com/docs/en/manage-claude/authentication#api-keys) | Static `sk-ant-api...` secret sent as a bearer token in the `Authorization` header | Local development, prototyping, scripts, and servers where you control secret storage |
11| CLI sign-in (see the `ant` CLI’s [Interactive login](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/authentication#interactive-login) section) | Short-lived access token that `ant auth login` stores on your computer | Local development and scripting on your own computer |
1212| [Workload Identity Federation (WIF)](https://platform.claude.com/docs/en/manage-claude/authentication#workload-identity-federation) | Short-lived bearer token exchanged from your identity provider’s identity token | Production workloads on cloud platforms (AWS, Google Cloud, and Azure), CI/CD pipelines, and Kubernetes, where you want to eliminate static secrets |
1313| [App Attest](https://platform.claude.com/docs/en/manage-claude/authentication#app-attest) | Short-lived access token issued to a genuine, attested installation of your registered iOS or macOS app | iOS and macOS apps distributed to end users, where the app calls the Claude API directly with no back end or proxy |
14| [API key](https://platform.claude.com/docs/en/manage-claude/authentication#api-keys) | Static `sk-ant-api...` secret sent as a bearer token in the `Authorization` header | A server with no identity provider or a tool that asks for a key |
1415 
15API keys and Workload Identity Federation grant the same access to Claude API endpoints. Choose API keys to get started quickly: a personal key for your own development, or a service account key for anything shared. Move to Workload Identity Federation when your workload already has a platform-issued identity you can federate. Use App Attest for iOS and macOS apps you distribute to end users.
16On your own computer, sign in with the `ant` CLI. The SDK and the CLI then find your credentials on their own as long as `ANTHROPIC_API_KEY` isn’t set. Use Workload Identity Federation in CI or on a server or cluster with an identity provider. Use App Attest for iOS and macOS apps you distribute to end users. Choose an API key for a server with no identity provider or a tool that asks for a key. Pick a personal key for your own use or a service account key for anything shared.
1617 
1718## API keys
1819 
from line 31
3031 
3132Personal keys and service account keys are identity-backed: each belongs to a user or service account your organization already manages, and every request acts as that identity. When that identity is removed from the organization, the key stops working. This means that keys don’t accidentally outlive the people or workloads that own them. Prefer them over workspace keys for new integrations.
3233 
33Use a personal key for your own development and scripts. A shared personal key acts as one person and breaks when they leave. For shared or automated workloads (CI, production services), have an organization admin create a service account so the workload has its own identity.
34If a tool that only you run asks for a key, use a personal key. A shared personal key acts as one person and breaks when they leave. For shared or automated workloads (CI, production services), have an organization admin create a service account so the workload has its own identity.
3435 
3536Workspace API keys work but are legacy. Prefer identity-backed keys or [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation). To migrate, see [Replacing workspace API keys](https://platform.claude.com/docs/en/manage-claude/authentication#replacing-workspace-api-keys).
3637 
from line 352
351352 
352353Call the Claude API from your own back end, not from code that runs in your users’ browsers. Anyone who uses a webpage can read an API key in that page’s code. Typically, your web front end calls your back end, which holds the key and calls the Claude API.
353354 
354A request sent directly from a browser is a cross-origin (CORS) request. The API accepts these requests only when they include the `anthropic-dangerous-direct-browser-access: true` header, which the TypeScript SDK sends when you set `dangerouslyAllowBrowser` to `true`. For the cases where exposing a key this way is acceptable, see [Browser usage](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript#runtime-support) in the TypeScript SDK guide.
355A request sent directly from a browser is a cross-origin (CORS) request. The API accepts one only when it includes the `anthropic-dangerous-direct-browser-access: true` header. The TypeScript SDK sends this header when you set `dangerouslyAllowBrowser` to `true`. For the cases where exposing a key this way is acceptable, see [Runtime support](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript#runtime-support) in the TypeScript SDK guide.
355356 
356Organizations that have [zero data retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope) or the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api) enabled cannot call the API directly from a browser, even with that header. Other organization settings can have the same effect, and no setting allows browser requests for these organizations. The API returns a 401 `authentication_error` whose message begins `CORS requests are not allowed for this Organization`, even though the API key is valid. A Claude Console organization linked to a Claude Enterprise parent organization inherits the Compliance API setting from the parent. The restriction can therefore apply even when your Claude Console settings show no Compliance API section.
357Organizations that have [zero data retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope) cannot call the API directly from a browser, even with that header. Other organization or workspace settings can have the same effect, and no setting allows browser requests for these organizations. The API returns a 401 `authentication_error` whose message begins `CORS requests are not allowed for this Organization`, even though the API key is valid.
357358 
358359The restriction applies only to requests that include an `Origin` header, which browsers add and server-side HTTP clients normally do not. Requests from your own back end are not affected. If your back end forwards requests that start in a browser, have it create a new request to the Claude API. Don’t pass the browser’s request through. That request still includes the browser’s `Origin` header, and the API rejects it the same way.
359360 

manage-claude/cmek-coverage-claude-enterprise Changed · +3 / -3 lines

from line 10
1010 
1111* Chat content, including skills and plugins.
1212* Chat attachments and project attachments.
13* Artifacts, including Claude Design, Claude Slides, and Claude Docs in conversations and the **Artifacts** tab.
13* Artifact content in conversations and the **Artifacts** tab. This includes Claude Design, Claude Slides, Claude Docs, and Claude Data. It also includes four types that are in beta: design systems, Claude Motion, Claude Sheets, and Claude Whiteboards. For the standalone Claude Design app, see [Encrypted with Anthropic’s key](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#encrypted-with-anthropics-key).
1414* Claude Code on the CLI, including message content.
1515* Cowork in Claude Desktop.
1616* Chats in the unified Claude experience, on the web only. **Computer access** is off.
1717* Office agents, including Claude for Outlook.
18* Scheduled tasks in the unified Claude experience: each task’s name and instructions, and the content of its runs.
1819* Claude in Chrome.
1920* Claude Science, which is in beta.
2021* [Plugins API](https://platform.claude.com/docs/en/manage-claude/plugins-api#customer-managed-encryption-keys) (beta) plugin versions: each version’s description, release notes, components, and files. That page lists which requests still work while your key can’t be used.
from line 41
4041| Claude in Slack (beta) | Off. Claude declines requests, even if an admin turns the product on. |
4142| Analytics: smart reports and contribution metrics | Off. Certain analytics are disabled, regardless of admin settings: Claude smart reports (under claude.ai/analytics/insights) and Claude Code contribution metrics from GitHub (beta, under claude.ai/analytics/claude-code). |
4243| Claude Security (beta) | Off. Beta feature, turned off regardless of admin settings. |
43| Cloud scheduled tasks (research preview) | Off. An admin can turn them on for the unified Claude experience. |
4444| Standalone Claude Design app (being deprecated) | Not supported. See [Encrypted with Anthropic’s key](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#encrypted-with-anthropics-key). |
4545 
4646## Encrypted with Anthropic’s key
from line 50
5050| Data | Details |
5151| ----- | ----- |
5252| Existing data before key setup | Written before [your key takes effect](https://platform.claude.com/docs/en/manage-claude/cmek-how-it-works#when-your-key-takes-effect). |
53| Standalone Claude Design app (being deprecated) | The standalone Claude Design app at claude.ai/design is not supported with CMEK, and its data might not be encrypted under your key. The standalone app is closing. Claude Design in conversations and the **Artifacts** tab is encrypted under your key, as listed under [Encrypted with your key](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#encrypted-with-your-key). |
53| Standalone Claude Design app (being deprecated) | The standalone Claude Design app at claude.ai/design is not supported with CMEK, and its data might not be encrypted under your key. The standalone app is closing. Claude Design content in conversations and the **Artifacts** tab is encrypted under your key, as listed under [Encrypted with your key](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#encrypted-with-your-key). |
5454| Personal preferences and Cowork Global instructions | [Personal preferences - Instructions for Claude section](https://claude.ai/new#settings/account) and Cowork Global instructions. These are set at the account level and shared across all of a user’s organizations. |
5555| Account data for users in your organization | Includes names, email addresses, and profile pictures. |
5656| Preserved records | Anthropic can preserve specific records [in three narrow cases](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#limited-preservation-outside-your-key). |

manage-claude/cmek-data-retention Changed · +4 / -4 lines

## In a Legacy ZDR organization ## In a ZDR organization

from line 4
44description: Why a workspace with a key retains data, what that means for ZDR, and what Anthropic can preserve outside your key.
55---
66 
7On Claude Platform, customer-managed encryption keys (CMEK) and [zero data retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention) can’t share a workspace. On Claude Enterprise, an organization can use CMEK and Claude Code ZDR together, but it then [can’t turn on Claude Docs or Claude Sheets](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#turned-off-or-changed).
7On Claude Platform, customer-managed encryption keys (CMEK) and [legacy zero data retention (Legacy ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention) can’t share a workspace. On Claude Enterprise, an organization can use CMEK and Claude Code ZDR together, but it then [can’t turn on Claude Docs or Claude Sheets](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#turned-off-or-changed).
88 
99However, on Claude Platform you can attach a key to a workspace that uses [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) (EFS). EFS is ZDR, and the workspace’s Sealed Safety Data is written to storage that you own. EFS is in beta. For the steps, see [Attach a customer-managed key](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/customer-managed-keys#attach-a-customer-managed-key) in the EFS guide.
1010 
1111## A key needs a workspace that retains data
1212 
13CMEK encrypts stored data, and under ZDR on Claude Platform, Anthropic doesn’t store your prompts or responses. With [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) (EFS), Anthropic encrypts your Sealed Safety Data under your key before writing it to your bucket. So you can attach a key only to a workspace with **Standard data retention** (30 days) or one that uses EFS.
13CMEK encrypts stored data, and under Legacy ZDR on Claude Platform, Anthropic doesn’t store your prompts or responses. With [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) (EFS), Anthropic encrypts your Sealed Safety Data under your key before writing it to your bucket. So you can attach a key only to a workspace with **Standard data retention** (30 days) or one that uses EFS.
1414 
1515After you attach a key, you can’t turn off data retention for that workspace. To go back to a workspace that doesn’t retain data, create a new one and move your traffic to it.
1616 
17## In a ZDR organization
17## In a Legacy ZDR organization
1818 
19A ZDR organization on Claude Platform can use CMEK. You switch one workspace to **Standard data retention**, accept the data retention terms, and attach your key to it. The workspace you switch can’t be the default workspace, whose retention follows the organization’s. Your other workspaces keep ZDR.
19A Legacy ZDR organization on Claude Platform can use CMEK. You switch one workspace to **Standard data retention**, accept the data retention terms, and attach your key to it. The workspace you switch can’t be the default workspace, whose retention follows the organization’s. Your other workspaces keep Legacy ZDR.
2020 
2121[Choose your setup page](https://platform.claude.com/docs/en/manage-claude/cmek#set-it-up) and follow its attach step.
2222 

manage-claude/compliance-activity-feed Changed · +11 / -2 lines

from line 14
1414 Both Compliance Access Keys (`sk-ant-api01-...`) carrying this scope and Admin API keys (`sk-ant-admin01-...`) can call the Activity Feed. See [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access) for the conditions under which each key type carries the scope.
1515</Check>
1616 
17The Activity Feed records authentication, chat, file, project, administrative, and platform activity across your organization and returns it in reverse chronological order. Activities are queryable within 1 minute of occurring and are retained for 6 years. Security posture activities can take longer than 1 minute to become queryable; see [Send Security posture events to your SIEM](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/send-events#run-it-on-a-schedule). Recording is not retroactive: it begins when the Compliance API is first enabled for your organization, and activity from before enablement is not backfilled. Access Transparency events are an exception. If your organization is enrolled in [Access Transparency](https://platform.claude.com/docs/en/manage-claude/access-transparency), these events are recorded even while the Compliance API is off. The feed can therefore include some from before the Compliance API was first enabled.
17The Activity Feed records authentication, chat, file, project, administrative, and platform activity across your organization and returns it in reverse chronological order.
1818 
19* **Availability:** Activities are queryable within 1 minute of occurring, with two exceptions. Some `ccr_session_deleted` activities take longer; see [Understand the Activity object](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed#understand-the-activity-object). Security posture activities can also take longer; see [Send Security posture events to your SIEM](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/send-events#run-it-on-a-schedule).
20* **Retention:** Activities are retained for 6 years.
21* **No backfill:** Recording begins when the Compliance API is first enabled for your organization. Earlier activity is not backfilled.
22* **Access Transparency:** If your organization is enrolled in [Access Transparency](https://platform.claude.com/docs/en/manage-claude/access-transparency), those events are recorded even while the Compliance API is off, so the feed can include some from before it was first enabled.
23 
1924```bash cURL
2025curl --fail-with-body -sS \
2126 "https://api.anthropic.com/v1/compliance/activities?limit=1" \
from line 167
162167| `system_actor` | Automated background processing performed by Anthropic systems, acting without a user or customer credential. | `service` (nullable; the name of the automated process that performed the action, when known) |
163168| `scim_directory_sync_actor` | An identity provider (such as Okta, Microsoft Entra ID, or JumpCloud) pushed a change through SCIM directory sync. | `workos_event_id`, `directory_id`, `idp_connection_type` (nullable; for example `OktaSCIMV2`, `AzureSCIMV2`) |
164169 
165A `user_actor` activity does not always mean the user took the action. Processes that Anthropic runs on a user’s behalf can currently appear as `user_actor` for the affected user rather than as `system_actor`, and this attribution may change. For example, memory activities from a migration, such as `platform_memory_store_created`, `platform_memory_created`, and `platform_memory_deleted`, are attributed this way. The memory activities `platform_memory_store_created`, `platform_memory_created`, `platform_memory_updated`, and `platform_memory_deleted` currently show an `ip_address` of `0.0.0.0` whoever performed them. As a result, this value does not on its own identify a process that Anthropic runs on the user’s behalf.
170A `user_actor` activity does not always mean the user took the action. Processes that Anthropic runs on a user’s behalf, such as a memory migration, can currently appear as `user_actor` for that user rather than as `system_actor`. An `ip_address` of `0.0.0.0` does not tell these apart: `platform_memory_store_created`, `platform_memory_created`, `platform_memory_updated`, and `platform_memory_deleted` currently show that value whoever performed them.
166171 
167172A `claude_*_viewed` activity means a Claude app loaded content, not that a person viewed it. Types such as `claude_chat_viewed`, `claude_file_viewed`, and `claude_project_viewed` are recorded each time a Claude app loads the chat, file, or project from Anthropic’s servers. Repeated loads are not deduplicated. The web, desktop, and mobile apps load content at different moments, sometimes in the background, and can display a cached copy without loading it. Counts of these activities vary by platform as a result, and they do not correspond to messages sent or screens viewed.
168173 
169174A missing `*_deleted` activity does not mean the content still exists. When your organization’s retention policy deletes a chat, project, or published artifact, the Activity Feed records no `claude_chat_deleted`, `claude_project_deleted`, or `claude_published_artifact_deleted` activity. An admin’s change to the policy is recorded as a `data_retention_periods` update in `claude_organization_settings_updated`.
175 
176A `ccr_session_deleted` activity records the deletion of a session in the cloud. It can take hours or days to arrive after the Compliance API or your retention policy deletes the session’s chat. Its `created_at` is the time of the deletion, so to collect it, query older time windows again and deduplicate on `id`.
177 
178Activities such as `claude_organization_settings_updated` record a change that someone saves to a setting. When Anthropic changes a setting’s default, the Activity Feed records no activity. For a setting’s current value, call [Get effective organization settings](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#get-effective-organization-settings).
170179 
171180Activities about a file, project document, or artifact do not include its name or title. As of September 24, 2026, the `filename` and `title` fields on these activities are always `null`, an empty string, or omitted, including on activities recorded before that date. To look up a name or title, pass the activity’s `claude_file_*`, `claude_proj_doc_*`, or `claude_artifact_version_*` ID to the matching metadata endpoint in [Retrieve files and artifacts](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-files-and-artifacts), using a Compliance Access Key with the `read:compliance_user_data` scope. You cannot look up a name or title after the file, document, or artifact is deleted, or when the activity has no such ID.
172181 

manage-claude/compliance-content-data Changed · +15 / -5 lines

### What chat messages do not return

from line 24
2424 
2525Use [List chats](https://platform.claude.com/docs/en/api/compliance/apps/chats/list) to page through chat metadata, then [Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list) to fetch the full message content of one chat.
2626 
27Chats in the unified Claude experience are returned by these endpoints like any other chat: a chat that continues in a session in the cloud comes back as one chat. The work Claude does there appears in each message’s `content` as `tool_use` blocks (the tool’s `name` and `input`) and `tool_result` blocks (its output, matched by `tool_use_id`). Coverage of these chats is in beta.
27These endpoints return chats in the unified Claude experience like any other chat: a chat that continues in a session in the cloud comes back as one chat. The work Claude does there appears in each message’s `content` as `tool_use` blocks (the tool’s `name` and `input`) and `tool_result` blocks (its output, matched by `tool_use_id`). For exceptions, see [What chat messages do not return](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#what-chat-messages-do-not-return).
2828 
2929The chat list endpoint defaults to organization-wide scope: leave off `user_ids[]` to include every chat under your parent organization. Add `order_by=updated_at` to sort by last update time. This combination is the recommended way to export chats and keep an export current, because one paginated loop picks up new chats, chats with new messages, and chats deleted in claude.ai for every user without enumerating users first. The following request lists chats updated since a given date.
3030 
from line 74
7474```bash cURL
7575curl --fail-with-body -sS -G \
7676 "https://api.anthropic.com/v1/compliance/apps/chats" \
77 --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
78 --header "anthropic-version: 2026-10-21" \
77 -H "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
78 -H "anthropic-version: 2026-10-21" \
7979 --data-urlencode "user_ids[]=user_01WxYzAbCdEfGhJkMnPqRsTu" \
8080 --data-urlencode "created_at.gte=2025-06-01T00:00:00Z" \
8181 --data-urlencode "limit=100"
from line 175
175175 
176176An artifact that Claude creates in a chat can instead be a code artifact (ID prefix `cart_`). Code artifacts are not in `artifacts`. [List code artifacts](https://platform.claude.com/docs/en/api/compliance/apps/code/artifacts/list) returns them, but does not identify the chat that each one came from.
177177 
178### What chat messages do not return
179 
180When a chat continues in a session in the cloud, [Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list) does not return everything that occurs in the session:
181 
182* **Files that Claude does not give the user:** Some files stay in the session, such as intermediate files that a script writes. They are not in `files` or `generated_files`, and no endpoint downloads them.
183* **Subagent tool calls:** When Claude delegates work to a subagent, the chat includes the delegation, its result, and the files and artifacts the subagent creates or sends. The subagent’s other tool calls, including connector and web calls, are in the [remote session transcript](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-a-remote-session-transcript), where they are not marked as a subagent’s. Calls inside a skill or another subagent that a subagent runs are not always returned.
184* **Network connections:** No endpoint lists the network connections that the session attempts. Network activity is visible only through the tool calls and results that the endpoints return.
185 
178186## Retrieve files and artifacts
179187 
180188Files and artifacts are downloaded by ID. They aren’t listed independently, except for the artifacts returned by [List code artifacts](https://platform.claude.com/docs/en/api/compliance/apps/code/artifacts/list), such as Claude Docs documents (see the end of this section). All other IDs come from the chat messages endpoint in [Retrieve chats and messages](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-chats-and-messages) (the `files`, `generated_files`, and `artifacts` arrays on each message) or, for project-level uploads, from the [project attachments endpoint](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-projects-and-attachments).
from line 326
318326* **Files that Claude gives a user:** In the unified Claude experience, almost all files that Claude gives a user are deleted with the chat, unless another chat or project in your organization uses them. Files that Claude gave before October 8, 2026, can remain, no matter how the chat is deleted.
319327* **Code artifacts:** Deleting a chat does not delete the code artifacts that Claude created in it. Delete them with [Delete code artifact](https://platform.claude.com/docs/en/api/compliance/apps/code/artifacts/delete).
320328* **File copies in the cloud:** [Delete file](https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete) does not delete a copy of the file in a chat’s session in the cloud. Deleting the chat deletes the sessions that were started for it, but not sessions that those sessions started.
329* **File copies for code execution:** For a file uploaded to a chat with code execution on, [Delete file](https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete) does not delete the copy that the chat keeps for running code. To delete that copy, delete each chat that uses the file.
330* **Scheduled tasks:** [Delete project](https://platform.claude.com/docs/en/api/compliance/apps/projects/delete) does not delete the Cowork scheduled tasks in the project, and no Compliance API endpoint deletes them. The user who owns a task can delete it in claude.ai.
321331 
322To delete files that Claude gave a user:
332After a chat is deleted, no endpoint lists the remaining files by chat. To delete files that Claude gave a user:
323333 
3243341. Before the chat is deleted, call [Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list) and collect each `claude_file_` ID in `generated_files`, and in `files` on assistant messages. The endpoint does not return these IDs after the chat is deleted, and it might not list every file that remains.
3253352. Before or after the chat is deleted, pass each ID to [Delete file](https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete). It deletes the file even if another chat or project uses it. It returns 404 for a file that is already deleted.

manage-claude/compliance-errors Changed · +7 / -7 lines

from line 10
1010 
1111This page lists common Compliance API error responses by HTTP status code, with the cause and the fix for each.
1212 
13The Compliance API returns errors in the standard [Anthropic error format](https://platform.claude.com/docs/en/api/errors): a non-2xx status code, a `request-id` response header, and a JSON body with an `error` object containing `type` and `message`. Include the `request-id` header value when you escalate to support.
13The Compliance API returns errors in the standard format described in [Claude API errors](https://platform.claude.com/docs/en/api/errors): a non-2xx status code, a `request-id` response header, and a JSON body with an `error` object containing `type` and `message`. Include the `request-id` header value when you escalate to support.
1414 
1515```json
1616{
from line 170
170170 
171171## 401 Unauthorized
172172 
173The request carried a Compliance Access Key (`sk-ant-api01-...`) or Admin API key (`sk-ant-admin01-...`) that does not authenticate. A request that carries no key, or a key of another type, returns [404 Not Found](https://platform.claude.com/docs/en/manage-claude/compliance-errors#request-not-authenticated) instead on every endpoint except organization settings and Security posture, and a valid key with the wrong scopes returns [403 Forbidden](https://platform.claude.com/docs/en/manage-claude/compliance-errors#403-forbidden).
173The request carried a Compliance Access Key (`sk-ant-api01-...`) or Admin API key (`sk-ant-admin01-...`) that does not authenticate. A request that carries no key, or a key of another type, returns a 404 ([Request not authenticated](https://platform.claude.com/docs/en/manage-claude/compliance-errors#request-not-authenticated)) instead on every endpoint except organization settings and Security posture. A valid key with the wrong scopes returns [403 Forbidden](https://platform.claude.com/docs/en/manage-claude/compliance-errors#403-forbidden).
174174 
175175### Invalid, deactivated, or expired API key
176176 
from line 236
236236Missing required scopes. Got: ['read:compliance_org_settings'] Needed one of: ['read:compliance_org_data', 'read:org_audit']
237237```
238238 
239**Cause:** The `read:compliance_org_settings` scope was retired on June 30, 2026. `GET /v1/compliance/organizations/{organization_id}/settings` now requires `read:compliance_org_data`, the same scope as the other organization endpoints, and the retired scope no longer authorizes anything. A Compliance Access Key that carries only `read:compliance_org_settings` returns this error on every call to the settings endpoint, even though the key worked before the retirement. The retired scope can no longer be selected or granted when creating a key.
239**Cause:** The `read:compliance_org_settings` scope is retired and does not authorize any request. `GET /v1/compliance/organizations/{organization_id}/settings` requires `read:compliance_org_data`, the same scope as the other organization endpoints. A Compliance Access Key that carries only `read:compliance_org_settings` returns this error on every call to the settings endpoint. You cannot select or grant the retired scope when you create a key.
240240 
241241**Fix:** Compliance Access Key scopes are immutable after creation. [Create a new Compliance Access Key](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api) with `read:compliance_org_data` selected, update your integration to use it, then delete the old key. A key that already carries `read:compliance_org_data` is unaffected by the retirement.
242242 
from line 308
308308File not found: 0d3b8f72-6c1e-4a59-b2de-7f4c9a1e5b60
309309```
310310 
311**Cause:** The file ID does not exist in an organization your key can read, or the file has been deleted. Deleting a chat in claude.ai also deletes the files attached to it, although the chat itself remains listed. The message identifies the file by its underlying UUID rather than by the `claude_file_...` ID sent in the request. The metadata, content, and delete endpoints return this body; it applies to both chat-attached files (`claude_file_...`) and project files.
311**Cause:** The file ID does not exist in an organization your key can read, or the file has been deleted. Deleting a chat in claude.ai usually also deletes the files attached to it, although the chat itself remains listed. For exceptions, see [Content that remains after a delete](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#content-that-remains-after-a-delete). The message identifies the file by its underlying UUID rather than by the `claude_file_...` ID sent in the request. The metadata, content, and delete endpoints return this body; it applies to both chat-attached files (`claude_file_...`) and project files.
312312 
313313**Fix:** Reconcile against recent `claude_file_uploaded` or `claude_file_deleted` activities. Files deleted along with a chat have no `claude_file_deleted` activity, so check for the chat’s `claude_chat_deleted` activity as well. When your organization’s retention policy deletes a chat, the Activity Feed records no `claude_chat_deleted` activity. If the file was deleted, the binary is gone; the activity records remain in the feed for the 6-year retention window.
314314 
from line 429
429429 
430430* The `organization_id` is not one of your parent’s linked organizations.
431431* The `organization_id` is not a valid UUID.
432* The settings endpoint is not yet enabled for your parent organization.
432* The settings endpoint is not enabled for your parent organization.
433433 
434434The endpoint intentionally returns the same body in all three cases, so a 404 does not reveal whether an organization exists.
435435 
436**Fix:** Verify the ID against [List organizations](https://platform.claude.com/docs/en/api/compliance/organizations/list). If a known-good organization ID still returns 404, the settings endpoint is not yet enabled for your parent organization; contact your Anthropic representative.
436**Fix:** Verify the ID against [List organizations](https://platform.claude.com/docs/en/api/compliance/organizations/list). If a known-good organization ID still returns 404, the settings endpoint is not enabled for your parent organization; contact your Anthropic representative.
437437 
438438## 409 Conflict
439439 
from line 453
453453 
454454## 429 Too Many Requests
455455 
456Requests to the Compliance API are limited to **600 requests per minute per [parent organization](https://platform.claude.com/docs/en/manage-claude/compliance-api#how-the-compliance-api-works)**. The limit is one budget shared across every key under the parent (Compliance Access Keys and the Admin API keys of all linked organizations) and across every `/v1/compliance/*` endpoint; the remote session endpoints carry a second request budget on top, and the Security posture endpoint has a lower limit of its own, counted for each parent organization. For a standalone Claude Console organization, which has no parent organization, the same budget applies to the organization itself and is shared across its Admin API keys. Contact your Anthropic representative if your integration needs a higher limit.
456Requests to the Compliance API are limited to **600 requests per minute for each [parent organization](https://platform.claude.com/docs/en/manage-claude/compliance-api#how-the-compliance-api-works)**. The limit is one budget shared across every key under the parent (Compliance Access Keys and the Admin API keys of all linked organizations) and across every `/v1/compliance/*` endpoint; the remote session endpoints carry a second request budget on top, and the Security posture endpoint has a lower limit of its own, counted for each parent organization. For a standalone Claude Console organization, which has no parent organization, the same budget applies to the organization itself and is shared across its Admin API keys. Contact your Anthropic representative if your integration needs a higher limit.
457457 
458458One 429 is different: on a very large session, the local session messages endpoint might return [Server busy reading large transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-errors#server-busy-reading-large-transcripts), which is not a rate limit and not a limit on your organization. Its entry, at the end of this section, says how to identify it and what to do.
459459 

manage-claude/compliance-sessions Changed · +4 / -4 lines

from line 35
3535 
3636Capture of local sessions is tied to the Compliance API being enabled for your organization and applies while users are signed in with their Claude Enterprise account. The session endpoints do not return the following:
3737 
38* Claude Code sessions authenticated with a Claude Console API key, or run through a third-party cloud platform such as Amazon Bedrock, Google Cloud, or Microsoft Foundry.
38* Claude Code sessions authenticated with a Claude Console API key, or run through a third-party cloud platform such as Amazon Bedrock, Claude Models on Google Cloud (Google managed), or Microsoft Foundry.
3939* [Claude Code cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web) (including [Claude Code cloud scheduled tasks](https://code.claude.com/docs/en/routines)), which run on cloud infrastructure instead of the user’s machine. These cloud sessions are not remote sessions, even though both run in the cloud; the remote session endpoints return Cowork and Claude Tag sessions only.
4040* Local sessions from products other than Cowork and Claude Code in organizations with [HIPAA readiness](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#hipaa-readiness) enabled. In those organizations, the local session endpoints return Cowork and Claude Code sessions only, and captured session content is stored for 30 days.
4141* Local 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. These sessions are excluded from list results, and the retrieve and messages endpoints return 404 for them.
from line 51
5151| `product_surface` values | `cowork`, `claude_code`, `claude_science`, `claude_in_chrome`, and values starting with `office_agents` | `cowork_remote`, `claude_tag` | N/A |
5252| Retention | 6 years by default, or your organization’s custom conversation retention period when a finite one is set; 30 days in organizations with HIPAA readiness enabled; held by Anthropic | No default period; see [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion); held by Anthropic | Your infrastructure, your policies |
5353| User prompts and assistant responses | Yes | Yes | Yes, subject to content-capture settings |
54| Tool inputs | Truncated to 10,000 bytes per input by default; up to about 1 MiB on request | Truncated to 10,000 bytes per input by default; up to about 1 MiB on request | Truncated summaries |
54| Tool inputs | Truncated to 10,000 bytes for each input by default; up to about 1 MiB on request | Truncated to 10,000 bytes for each input by default; up to about 1 MiB on request | Truncated summaries |
5555| Tool result content | Each text entry truncated to 10,000 bytes by default; up to about 1 MiB on request | Each text entry truncated to 10,000 bytes by default; up to about 1 MiB on request | Metadata such as size and success; Claude Code can also capture content with an optional, size-capped setting |
5656| File contents | Yes, through transcript tool calls (text only; other content appears as a placeholder) | Yes, through transcript tool calls (text only; other content is omitted) | File paths; Claude Code can also capture contents with an optional, size-capped setting |
5757| Host and device metadata (terminal type, workspace paths) | No | No | Yes |
from line 121
121121 
122122Results are sorted in reverse chronological order (newest first) by `created_at`, with ties broken in a fixed server-side order, and capped at `limit` results for each response (default 100, max 500). The endpoint paginates forward only with `page` and `next_page` tokens (see [Paginate results](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed#paginate-results)): pass the response’s `next_page` value back as the `page` query parameter on the next request, and stop when `next_page` is `null`. The response has no `has_more` field. Complete a list walk within 24 hours of starting it; an older list cursor is still accepted but is re-evaluated against the current retention boundary, so sessions whose oldest retained activity is about to age out of the retention period can be skipped.
123123 
124In each session object, `user.id` is always set and survives account deletion; `user.email_address` is `null` when the user’s account has been deleted or the user is no longer a member of an organization your key can read. `workspace_id` is `null` when the session was not associated with a workspace. A local session corresponds to one client session ID: opening a new conversation in the client, or clearing its context, starts a new session record. For Claude Science, the list can also include separate sessions for the app’s own background work (for example, naming the conversation; on newer app versions also its reviewer and delegation tracks), and on older app versions some of that background work appears as extra messages inside the conversation’s own transcript. A Claude Science conversation that continues across some app updates appears as two sessions. These behaviors are expected. Treat `id` values as opaque strings; the format may change without notice.
124In each session object, `user.id` is always set and survives account deletion. `user.email_address` is `null` when the user’s account has been deleted or the user is no longer a member of an organization your key can read. `workspace_id` is `null` when the session was not associated with a workspace. A local session corresponds to one client session ID: opening a new conversation in the client, or clearing its context, starts a new session record. For Claude Science, the list can also include separate sessions for the app’s own background work, such as naming the conversation. On newer app versions, that work includes the reviewer and delegation tracks. On older app versions, some of that work appears as extra messages inside the conversation’s own transcript. A Claude Science conversation that continues across some app updates appears as two sessions. These behaviors are expected. Treat `id` values as opaque strings; the format might change without notice.
125125 
126126For Claude for Microsoft 365 and the Claude add-ins for Google Docs, Google Sheets, and Google Slides, deleting a conversation in the add-in occurs only on the client, so it is not reflected in the API: local sessions have no `deleted_at` field, and the session stays listed until retention removes it.
127127 
from line 377
377377 
378378`product_surface` (string or `null`) identifies the product that created the session. The endpoint currently returns sessions with one of two `product_surface` values. `cowork_remote` is for Cowork sessions in the cloud, including sessions started on claude.ai web or mobile and cloud runs of Cowork scheduled tasks. `claude_tag` is for Claude Tag sessions started in Slack.
379379 
380To retrieve a chat in the unified Claude experience, including the part that ran in the cloud, use the chat endpoints ([Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list)), not the remote session endpoints. The remote session list also returns the sessions that such a chat continues in, as `cowork_remote`, so an export of both chats and remote sessions contains that work twice.
380To retrieve a chat in the unified Claude experience, including the part that ran in the cloud, use the chat endpoints ([Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list)). The remote session list also returns the sessions that such a chat continues in, as `cowork_remote`, so an export of both chats and remote sessions contains most of that work twice. Each can hold content that the other does not, so keep both records. For example, user messages in the remote session do not include attached files or long pasted text, and usually do not indicate that they exist. The chat lists them in `files`. For content that the chat does not include, see [What chat messages do not return](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#what-chat-messages-do-not-return).
381381 
382382<Note>
383383 **Build forward-compatible handlers.** Pass through unrecognized `status` and `product_surface` values, and ignore fields your handler does not expect, so your integration keeps working as new statuses and product surfaces ship.

manage-claude/enterprise-frontier-safeguards/faq Changed · +8 / -0 lines

from line 17
1717 [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) (EFS) is Zero Data Retention (ZDR) for eligible organizations that use [Claude’s most capable models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements). Anthropic doesn’t retain your prompts and responses. Sealed Safety Data is written to storage that you own. EFS includes both [customer-owned storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage) and [review of Safety Cases](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/flagged-cases) by people at your organization. A workspace that uses [Anthropic-managed storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/faq#glossary) isn’t on EFS, because Anthropic stores encrypted copies of that workspace’s prompts and responses.
1818 </Accordion>
1919 
20 <Accordion title="How do I get access to EFS?">
21 1. If the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console already shows **Enterprise Frontier Safeguards**, skip to step 2. Otherwise, contact your Anthropic account team to request access. If you don’t have an account team, complete the [Enterprise Frontier Safeguards request form](https://claude.com/form/enterprise-frontier-safeguards).
22 2. Once Anthropic confirms that your organization is eligible, an Organization Admin accepts the terms from the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console.
23 3. To set up EFS, follow the [EFS setup guide for your platform](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console).
24 
25 On Amazon Bedrock, you get access through AWS. See [Enterprise Frontier Safeguards on Amazon Bedrock](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-amazon-bedrock).
26 </Accordion>
27 
2028 <Accordion title="What is the difference between Enterprise Data Controls and EFS?">
2129 The main difference is where your Sealed Safety Data is stored. With EFS, it’s written to storage that you own, so EFS is Zero Data Retention (ZDR). With [Enterprise Data Controls](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview#enterprise-data-controls), a workspace stays on Anthropic-managed storage. On Claude Platform, you can still [use a customer-managed key](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/customer-managed-keys) and [turn off Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) for additional control over your data.
2230 </Accordion>

manage-claude/enterprise-frontier-safeguards/overview Changed · +11 / -1 lines

## Get access

from line 8
88 Enterprise Frontier Safeguards is in beta. It’s available under your agreement with Anthropic, such as the Internal use only terms, [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms) and the [Service Specific Terms](https://www.anthropic.com/legal/service-specific-terms). Settings and behavior can change during the beta.
99</Warning>
1010 
11Enterprise Frontier Safeguards (EFS) is [Zero Data Retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope) for eligible organizations that use [Claude’s most capable models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements), such as Claude Fable 5.1. Anthropic doesn’t retain your prompts and responses. Sealed Safety Data is written to storage that you own. EFS requires your own bucket. A workspace on [Anthropic-managed storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/faq#glossary) isn’t on EFS, because Anthropic stores encrypted copies of that workspace’s prompts and responses.
11Enterprise Frontier Safeguards (EFS) is [Zero Data Retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention) for eligible organizations that use [Claude’s most capable models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements), such as Claude Fable 5.1. Anthropic doesn’t retain your prompts and responses. Sealed Safety Data is written to storage that you own. EFS requires your own bucket. A workspace on [Anthropic-managed storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/faq#glossary) isn’t on EFS, because Anthropic stores encrypted copies of that workspace’s prompts and responses.
1212 
1313Use EFS when you want Claude’s most capable models but need to keep your Sealed Safety Data in your own cloud account. With EFS, people at your organization, not reviewers at Anthropic, review [Safety Cases](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/flagged-cases). EFS includes both:
1414 
from line 22
2222Anthropic doesn’t charge for EFS, and EFS doesn’t change model behavior, API pricing, or rate limits. Your cloud provider bills you for that storage as usual, including reads, writes, and data egress.
2323 
2424EFS covers requests to the Messages API in a workspace configured for EFS regardless of model. It does not cover data that is stored by Claude Platform features for their own use, even within a Messages API request, such as code execution containers, Files API uploads, Batch API results, and Claude Managed Agents sessions. See [Data and retention](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/faq#data-and-retention) in the FAQ.
25 
26## Get access
27 
28To get EFS, follow these steps:
29 
301. If the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console already shows **Enterprise Frontier Safeguards**, skip to step 2. Otherwise, contact your Anthropic account team to request access. If you don’t have an account team, complete the [Enterprise Frontier Safeguards request form](https://claude.com/form/enterprise-frontier-safeguards).
312. Once Anthropic confirms that your organization is eligible, an Organization Admin accepts the terms from the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console.
323. To set up EFS, follow the [EFS setup guide for your platform](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console).
33 
34On Amazon Bedrock, you get access through AWS. See [Enterprise Frontier Safeguards on Amazon Bedrock](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-amazon-bedrock).
2535 
2636## On Claude Platform, EFS applies to a whole workspace
2737 

manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed Changed · +10 / -4 lines

### Accept the terms

from line 51
5151To set up Enterprise Frontier Safeguards, you need the following:
5252 
5353* [`roles/claude.admin`](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#using-the-claude-console) on the Google Cloud project whose organization will use EFS.
54* [Access to EFS](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed#what-getting-access-changes) for your organization, from your Anthropic account team. Getting access can change settings that you can’t change back.
54* [Access to EFS](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed#what-getting-access-changes) for your organization. Getting access can change settings that you can’t change back.
5555* To use your own key: [customer-managed keys turned on](https://platform.claude.com/docs/en/manage-claude/cmek#availability) for your organization.
5656 
57To open the Claude Console, go to [Claude Platform](https://console.cloud.google.com/agent-platform/claude-platform) in the Google Cloud console and select your project. Then, select **Anthropic managed** and click **Open Claude Console**. Do this before you follow links on this page to the Claude Console. Each link opens in the Anthropic organization that your browser is signed in to. To check which organization you’re in, go to **Settings** > **Organization**. **Google Cloud project number** must show your project’s number, not its ID. If the page has no such row, you’re probably in another organization.
58 
5759## What getting access changes
5860 
5961<Warning>
from line 87
8587 </Accordion>
8688</AccordionGroup>
8789 
88## 1. Add cloud resources
90### Accept the terms
8991 
90To open the Claude Console, go to [Claude Platform](https://console.cloud.google.com/agent-platform/claude-platform) in the Google Cloud console and select your project. Then, select **Anthropic managed** and click **Open Claude Console**. Do this before you follow links on this page to the Claude Console. Each link opens in the Anthropic organization that your browser is signed in to. To check which organization you’re in, go to **Settings** > **Organization**. **Google Cloud project number** must show your project’s number, not its ID. If the page has no such row, you’re probably in another organization.
92To accept the terms, go to the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console and click **Accept terms** on the **Enterprise Frontier Safeguards** card. If you don’t see **Accept terms** there, click **Open Verification Portal** on the same page, and then click **Accept terms** in the Verification Portal.
9193 
92To use EFS, you need your own bucket. Your own encryption key is optional. Without one, a workspace uses an Anthropic-managed key. To add your bucket and key, go to the [Data retention](https://platform.claude.com/settings/privacy) page in the Claude Console and select **Organization** at the top of the page.
94Ask your Anthropic account team for access if you can’t open the Verification Portal or don’t see **Accept terms** there either. If you don’t have an account team, complete the [Enterprise Frontier Safeguards request form](https://claude.com/form/enterprise-frontier-safeguards).
95 
96## 1. Add cloud resources
97 
98To use Enterprise Frontier Safeguards, you need your own bucket. Your own encryption key is optional. Without one, a workspace uses an Anthropic-managed key. To add your bucket and key, go to the [Data retention](https://platform.claude.com/settings/privacy) page in the Claude Console and select **Organization** at the top of the page.
9399 
94100To use your own key, create a [customer-managed key](https://platform.claude.com/docs/en/manage-claude/cmek-google-cloud-kms) in Google Cloud KMS, then register it with Anthropic under **Encryption keys**. Follow the **Claude Platform** tab and stop before **Attach the key to a workspace**. Use a different key from your bucket’s own key, which you create with the bucket.
95101 

manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws Changed · +4 / -4 lines

from line 61
6161To set up Enterprise Frontier Safeguards, you need the following:
6262 
6363* The Admin role in the Claude Console. To get the role, go to the **Claude Platform on AWS** service page in the AWS Console, select **Admin**, and click **Sign in**. Sign in this way before you follow links on this page to the Claude Console. Each link opens in the Anthropic organization that your browser is signed in to.
64* [Access to EFS](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws#what-getting-access-changes) for your organization, from your Anthropic account team.
64* [Access to EFS](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws#what-getting-access-changes) for your organization.
6565* [IAM permissions](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws#iam-permissions) for your IAM principal.
6666 
6767Use a new workspace for EFS, even if you already have workspaces. Anthropic recommends that you set its **AWS region** to `us-east-2` to avoid network transfer costs, but it isn’t required. You can’t change the region later.
from line 109
109109 
110110### Accept the terms
111111 
112To accept the terms, go to the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console and click **Accept terms** on the **Enterprise Frontier Safeguards** card. If you don’t see **Accept terms** there, sign in to the [Verification Portal](https://portal.anthropic.com), select your organization, and click **Accept terms**.
112To accept the terms, go to the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console and click **Accept terms** on the **Enterprise Frontier Safeguards** card. If you don’t see **Accept terms** there, click **Open Verification Portal** on the same page, and then click **Accept terms** in the Verification Portal.
113113 
114Ask your Anthropic account team for access if you can’t sign in to the Verification Portal or don’t see **Accept terms** there either. If you don’t have an account team, complete the [Enterprise Frontier Safeguards request form](https://claude.com/form/enterprise-frontier-safeguards).
114Ask your Anthropic account team for access if you can’t open the Verification Portal or don’t see **Accept terms** there either. If you don’t have an account team, complete the [Enterprise Frontier Safeguards request form](https://claude.com/form/enterprise-frontier-safeguards).
115115 
116116## 1. Add cloud resources
117117 
Feedback