Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

beta-headers changedapi/beta-headers

Nearest release: v2.1.307, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+6added
Lines−6removed
From line 22 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits13to this page, all time

The whole hunk

from line 22, old and new numbered
/
lines
from line 22
2222content-type: application/json
2323```
2424 
25Each feature's documentation states the exact beta name to send. The [API overview](https://platform.claude.com/docs/en/api/overview) lists the APIs currently in beta.
25Each feature's documentation states the exact beta name to send. The [API overview](https://platform.claude.com/docs/en/api/overview) lists the APIs in beta.
2626 
27The following examples show the same request with cURL, the `ant` CLI, and the SDK, using the [context editing](https://platform.claude.com/docs/en/build-with-claude/context-editing) beta as the example. The SDK takes beta names through `betas` (csharp, go: `Betas`; java: `.addBeta()`) and sends the `anthropic-beta` header for you:
27The following example sends a request with the [context editing](https://platform.claude.com/docs/en/build-with-claude/context-editing) beta. The SDK takes beta names through `betas` (csharp, go: `Betas`; java: `.addBeta()`) and sends the `anthropic-beta` header for you:
2828 
2929<CodeGroup>
3030 ```bash cURL
from line 141
141141 client = Anthropic::Client.new
142142 
143143 message = client.beta.messages.create(
144 model: "claude-opus-5-5",
144 model: Anthropic::Model::CLAUDE_OPUS_5_5,
145145 max_tokens: 1024,
146146 messages: [{role: "user", content: "Hello, Claude"}],
147147 betas: ["context-management-2025-06-27"]
from line 185
185185On Amazon Bedrock, where beta names go depends on the API you call:
186186 
187187* [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) (`bedrock-mantle` endpoints) takes them in the `anthropic-beta` header.
188* The [InvokeModel API](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) reads them from the request body, not from a header. List them in the body's `anthropic_beta` array, one name per element, for example `"anthropic_beta": ["feature1", "feature2"]`.
188* The [InvokeModel API](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) reads them from the request body, not from a header. List them in the body's `anthropic_beta` array, one name for each element, for example `"anthropic_beta": ["feature1", "feature2"]`.
189189 
190190### Endpoint-specific headers
191191 
from line 232
232232 </Card>
233233 
234234 <Card title="API overview" icon="compass" href="https://platform.claude.com/docs/en/api/overview">
235 Explore the Claude API's features, including the APIs currently in beta.
235 Explore the Claude API's features, including the APIs in beta.
236236 </Card>
237237</CardGroup>
238238 
Feedback