--- url: "https://platform.claude.com/docs/en/api/beta-headers" titulek: "Beta headers - Claude Platform Docs" h1: "Beta headers" popis: "Access experimental features before they become part of the standard API with the `anthropic-beta` header or the SDKs' `betas` parameter." jazyk: "en" kanonicka: "https://platform.claude.com/docs/en/api/beta-headers" drobecky: ["API reference", "Beta headers"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 15:36:27" znaku: 3633 slov: 505 kodovani: "iso-8859-2" sha256: "de2b4180008331eb3c467a751383082ccf09119c3ac7d14fe1eeddba2242c358" --- Beta headers allow you to access experimental features and new model capabilities before they become part of the standard API. ## How to use beta headers To access beta features, include the `anthropic-beta` header in your API requests: ``` POST /v1/messages x-api-key: YOUR_API_KEY anthropic-version: 2023-06-01 anthropic-beta: BETA_FEATURE_NAME content-type: application/json ``` Each feature's documentation states the exact beta name to send. The [API overview](/docs/en/api/overview) lists the APIs currently in beta. The following examples show the same request with cURL, the `ant` CLI, and the SDKs, using the [context editing](/docs/en/build-with-claude/context-editing) beta as the example. The SDKs take beta names in the `betas` parameter and send the `anthropic-beta` header for you: ``` client = Anthropic() response = client.beta.messages.create( model="claude-opus-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello, Claude"}], betas=["context-management-2025-06-27"], ) print(response.content) ``` ### Multiple beta features To use multiple beta features in a single request, include all feature names in the header separated by commas: ``` anthropic-beta: feature1,feature2,feature3 ``` When using an SDK, list each feature in the `betas` parameter (for example, `betas=["feature1", "feature2"]`). With the CLI, pass a single `--beta` flag with the feature names separated by commas (for example, `--beta feature1,feature2`). Avoid repeating the flag: currently only the first flag's value takes effect. ### Endpoint-specific headers Some beta APIs are scoped to specific endpoints and require a feature-specific beta header on every request: | Endpoints | Beta header | | --- | --- | | `/v1/agents`, `/v1/sessions`, `/v1/environments` | `managed-agents-2026-04-01` | | `/v1/tunnels` | `mcp-tunnels-2026-06-22` | | `/v1/memory_stores` and sub-resources | `agent-memory-2026-07-22` | The SDKs' `beta` namespaces add these headers automatically. Add them yourself only when making raw HTTP requests. See the [Managed Agents overview](/docs/en/managed-agents/overview), [Using agent memory](/docs/en/managed-agents/memory), and the [MCP tunnels reference](/docs/en/agents-and-tools/mcp-tunnels/reference#tunnels-api) for details. Endpoint-specific headers that apply to the same endpoint aren't always combinable. On memory store endpoints, `agent-memory-2026-07-22` replaces `managed-agents-2026-04-01`: sending both on the same request returns a `400` error. The client SDKs send the correct header for each endpoint automatically. ### Version naming conventions Beta feature names typically follow the pattern `feature-name-YYYY-MM-DD`, where the date indicates when the beta was released. Always use the exact beta feature name as documented. ## Error handling If you use an invalid beta name, or a beta your organization doesn't have access to, you'll receive a `400` error response: Output ``` { "type": "error", "error": { "type": "invalid_request_error", "message": "Unexpected value(s) `invalid-beta-name` for the `anthropic-beta` header. Please consult our documentation at platform.claude.com/docs or try again without the header." }, "request_id": "req_011CcnGfC9fELffo2EALu4Wd" } ``` ## Getting help For updates to beta features, see the [release notes](/docs/en/release-notes/overview). For help with production issues, contact [support](https://support.claude.com/). ## Next steps  [Errors](/docs/en/api/errors) Understand the HTTP status codes, error response shape, and request IDs the Claude API returns, and handle errors with the SDKs' typed exceptions. [API overview](/docs/en/api/overview) Explore the Claude API's features, including the APIs currently in beta. Was this page helpful?