Loading...
    • Developer Guide
    • API Reference
    • MCP
    • Resources
    • Release Notes
    Search...
    ⌘K
    First steps
    Intro to ClaudeQuickstart
    Models & pricing
    Models overviewChoosing a modelWhat's new in Claude 4.6Migration guideModel deprecationsPricing
    Build with Claude
    Features overviewUsing the Messages APIHandling stop reasonsPrompting best practices
    Model capabilities
    Extended thinkingAdaptive thinkingEffortFast mode (beta: research preview)Structured outputsCitationsStreaming MessagesBatch processingPDF supportSearch resultsMultilingual supportEmbeddingsVision
    Tools
    OverviewHow to implement tool useWeb search toolWeb fetch toolCode execution toolMemory toolBash toolComputer use toolText editor tool
    Tool infrastructure
    Tool searchProgrammatic tool callingFine-grained tool streaming
    Context management
    Context windowsCompactionContext editingPrompt cachingToken counting
    Files & assets
    Files API
    Agent Skills
    OverviewQuickstartBest practicesSkills for enterpriseUsing Skills with the API
    Agent SDK
    OverviewQuickstartHow the agent loop works
    MCP in the API
    MCP connectorRemote MCP servers
    Claude on 3rd-party platforms
    Amazon BedrockMicrosoft FoundryVertex AI
    Prompt engineering
    OverviewConsole prompting tools
    Test & evaluate
    Define success and build evaluationsUsing the Evaluation ToolReducing latency
    Strengthen guardrails
    Reduce hallucinationsIncrease output consistencyMitigate jailbreaksStreaming refusalsReduce prompt leak
    Administration and monitoring
    Admin API overviewData residencyWorkspacesUsage and Cost APIClaude Code Analytics APIZero Data Retention
    Console
    Log in
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Partners

    • Amazon Bedrock
    • Google Cloud's Vertex AI

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Help and security

    • Availability
    • Status
    • Support
    • Discord

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy
    Administration and monitoring

    Zero Data Retention (ZDR)

    Learn about Anthropic's Zero Data Retention (ZDR) policy, including which API endpoints and features are ZDR-eligible.

    This page provides a list of which API endpoints and features are ZDR-eligible and which are not.

    Information about Anthropic's standard retention policies are set out in Anthropic's commercial data retention policy and consumer data retention policy.

    Zero Data Retention (ZDR) is Anthropic's commitment to ensuring that customer data submitted through certain API endpoints is not stored after the API response is returned except where needed to comply with law or combat misuse, as outlined in a customer's arrangements with Anthropic. Subject to these exceptions, when using ZDR-enabled endpoints, your data is processed in real-time and immediately discarded, with no logging or storage of prompts or outputs.

    Important limitations

    What ZDR covers

    • Certain Claude APIs: ZDR applies to the Claude Messages and Token Counting APIs
    • Claude Code: ZDR applies when used with enterprise API credentials or through Claude for Enterprise (see Claude Code ZDR docs)

    What ZDR does NOT cover

    • Beta products and features: Products and features in beta unless specified otherwise
    • Console and Workbench: Any usage on Console or Workbench
    • Claude consumer products: Claude Free, Pro, or Max plans, including when customers on those plans use Claude's web, desktop, or mobile apps or Claude Code
    • Claude for Work and Claude for Enterprise: Claude for Work and Claude for Enterprise product interfaces are not ZDR-eligible, except for Claude Code when used through Claude for Enterprise with ZDR enabled on the organization. For other product interfaces, only Commercial organization API keys are eligible.
    • Third-party integrations: Data processed by third-party websites, tools, or other integrations is not ZDR-eligible, though some may offer similar offerings. When using external services in conjunction with the Claude API, make sure to review those services' data handling practices.

    For the most up-to-date information on what products and features are ZDR-eligible, please refer to your contract terms or contact your Anthropic account representative.

    ZDR eligibility by product/feature

    ZDR-eligible

    These API endpoints process data in real-time:

    FeatureEndpointDescription
    Messages API/v1/messagesStandard API calls for generating Claude responses.
    Token Counting/v1/messages/count_tokensCount tokens before sending requests.
    Web Search/v1/messages (with web_search tool)Basic tool version (web_search_20250305) is ZDR-eligible. The web_search_20260209 version with dynamic filtering is not ZDR-eligible by default. See Web search tool for details.
    Web Fetch/v1/messages (with web_fetch tool)Basic tool version (web_fetch_20250910) is ZDR-eligible. Website publishers may retain URL parameters. The web_fetch_20260209 version with dynamic filtering is not ZDR-eligible by default. See Web fetch tool for details.
    Memory Tool/v1/messages (with memory tool)Client-side memory storage where you control data retention.
    Tool Search (client-side)/v1/messagesCustom client-side tool search uses the standard Messages API.
    Context Management (compaction)/v1/messages (with context_management)Server-side compaction summarizes conversation context in real-time.
    Fast Mode/v1/messages (with speed: "fast")Same Messages API endpoint with faster inference. ZDR applies regardless of speed setting.
    1M Token Context Window/v1/messagesExtended context processing uses the standard Messages API. ZDR applies for all supported models, including beta access on Claude Sonnet 4.5 and Sonnet 4.

    Not ZDR-eligible

    The following is a non-exhaustive list of endpoints and features that store data beyond when the API response is generated and are not ZDR-eligible:

    FeatureEndpointData Retention PolicyWhy It's Not ZDR-Eligible
    Batch API/v1/messages/batchesStandard policy: 29-day retention. Use the /v1/messages/batches DELETE endpoint to delete message batches at any time after processing.Batch processing requires asynchronous storage of responses.
    Code Execution/v1/messages (with code_execution tool)Container data retained up to 30 days.Server-side code execution stores execution data and uploaded files beyond the immediate API response.
    Programmatic Tool Calling/v1/messages (with code_execution tool)Container data retained up to 30 days.Built on code execution; uses sandbox containers that retain user data.
    Tool Search (server-side)/v1/messages (with tool_search tool)Data retained according to standard policy.Server-side tool search indexes and stores tool catalog data beyond the immediate API response.
    Files API/v1/filesFiles retained until explicitly deleted.Beta features are excluded from ZDR. Files uploaded via the Files API are retained for future API requests.

    Special cases

    These features have nuanced data retention characteristics:

    Prompt caching

    Status: Prompt caching is a beta feature that stores KV cache representations and cryptographic hashes of cached content. Cached entries have at least a 5 or 60-minute lifetime and are isolated between organizations. Because Anthropic does not store the raw text of prompts or responses, this feature may be suitable for customers who require ZDR-type data retention commitments.

    See Prompt Caching documentation for details.

    Structured Outputs

    Status: When using Structured Outputs with a JSON schema, prompts and responses are processed with ZDR. However, the JSON schema itself is temporarily cached for up to 24 hours for optimization purposes. No prompt or response data is retained.

    Additional limitations and exclusions

    CORS not supported

    Cross-Origin Resource Sharing (CORS) is not supported for organizations with ZDR arrangements. If you need to make API calls from browser-based applications, you must:

    • Use a backend proxy server to make API calls on behalf of your frontend
    • Implement your own CORS handling on the proxy server
    • Never expose API keys directly in browser JavaScript

    Data retention for policy violations and where required by law

    Even with ZDR arrangements in place, Anthropic may retain data where required by law or to combat Usage Policy violations and malicious uses of Anthropic's platform. As a result, if a chat or session is flagged for such a violation, Anthropic may retain inputs and outputs for up to 2 years.

    Frequently asked questions

    How do I know if my organization has ZDR arrangements?

    Check your contract terms or contact your Anthropic account representative to confirm if your organization has ZDR arrangements in place.

    What happens if I use a feature that isn't ZDR-eligible when my organization has ZDR arrangements?

    Data will be retained according to the feature's standard retention policy. Ensure you understand the retention characteristics of each feature before use.

    Can I request deletion of data from features that are not ZDR-eligible?

    Contact your Anthropic account representative to discuss deletion options for non-ZDR features.

    Does ZDR apply to all Claude models?

    ZDR applies to ZDR-eligible endpoints regardless of which Claude model you use.

    Does this apply to Claude on AWS Bedrock or Google Vertex AI?

    No, only the Claude API is eligible for ZDR. For Claude deployments on AWS Bedrock or Google Vertex AI, refer to those platforms' data retention policies.

    Is Claude Code eligible for ZDR?

    Claude Code is eligible for ZDR through two paths:

    • API keys: Claude Code used with pay-as-you-go API keys from a Commercial organization
    • Claude for Enterprise: Claude Code used through Claude for Enterprise with ZDR enabled on the organization

    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.

    Additionally, if you have metrics logging enabled in Claude Code, productivity data (such as usage statistics) is exempted from ZDR and may be retained.

    For full details on ZDR for Claude Code on Claude for Enterprise, including disabled features and how to request enablement, see the Claude Code ZDR documentation.

    Does Claude for Excel support ZDR?

    No, Claude for Excel is not currently ZDR-eligible.

    How do I request ZDR?

    To request a ZDR arrangement, contact the Anthropic sales team.

    Related resources

    • Privacy Policy
    • Batch Processing
    • Files API
    • Agent SDK Sessions
    • Prompt Caching

    Was this page helpful?

    • Important limitations
    • ZDR eligibility by product/feature
    • ZDR-eligible
    • Not ZDR-eligible
    • Special cases
    • Additional limitations and exclusions
    • CORS not supported
    • Data retention for policy violations and where required by law
    • Frequently asked questions
    • Related resources