One read of Claude Developer Platformapi-20261021T220722Z
82 pages moved out of 808 read.
Pages moved
82
significant first
Pages read
808
in this capture
Captured
22:07 UTC
Corpus hash
dd90a8d0c9c2
index-hash
What this read moved
51-75 of 82, page 3 of 4This capture is too large to show at once. Changes 51-75 of 82 are below, significant first; the rest are on the following screens.
agents-and-tools/tool-use/web-fetch-tool Changed · +4 / -0 lines
from line 244
244244
245245## How to use web fetch
246246
247<Note>
248 An organization admin can turn off web fetch for your organization on the [**Capabilities**](https://platform.claude.com/settings/capabilities) page of the Claude Console. With web fetch off, a Messages API request that includes the tool fails with a 400 `invalid_request_error` that says web fetch is not enabled, and `web_fetch` calls in a [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) session return an error result to the agent while the session continues. With web fetch on, the admin can also set allowed or blocked domains for web fetch on the same page. For how the organization's domain lists apply, see [Domain filtering](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools#domain-filtering) for Messages API requests and [Restrict web search and web fetch domains](https://platform.claude.com/docs/en/managed-agents/tools-web-restrictions) for Managed Agents sessions.
249</Note>
250
247251Provide the web fetch tool in your API request:
248252
249253<CodeGroup>
api/errors Changed · +2 / -2 lines
from line 275
275275 </CodeGroupItem>
276276
277277 ```bash CLI
278 # The CLI streams events; --format jsonl emits one event per line
278 # The CLI streams events; --format jsonl emits one event on each line
279279 ant messages create --stream --format jsonl <<'YAML'
280280 model: claude-sonnet-5
281281 max_tokens: 128000
from line 413
413413 client = Anthropic::Client.new
414414
415415 message = client.messages.stream(
416 model: "claude-sonnet-5",
416 model: Anthropic::Model::CLAUDE_SONNET_5,
417417 max_tokens: 128000,
418418 messages: [{ role: "user", content: "Write a detailed analysis..." }]
419419 ).accumulated_message
api/service-tiers Changed · +1 / -1 lines
from line 171
171171 client = Anthropic::Client.new
172172
173173 message = client.messages.create(
174 model: "claude-opus-4-8",
174 model: Anthropic::Model::CLAUDE_OPUS_4_8,
175175 max_tokens: 1024,
176176 messages: [{ role: "user", content: "Hello, Claude!" }],
177177 service_tier: :auto # Automatically use Priority Tier when available, fallback to standard
api/versioning Changed · +1 / -1 lines
from line 20
2020
2121## Version history
2222
23Anthropic recommends using the latest API version whenever possible. Previous versions are considered deprecated and may be unavailable for new users.
23Anthropic recommends using the latest API version whenever possible.
2424
2525* `2026-10-21`
2626
build-with-claude/compaction-threshold Changed · +1 / -2 lines
from line 2320
23202320 ```
23212321
23222322 ```bash CLI
2323 ant beta:messages count-tokens \
2324 --beta compact-2026-01-12 <<'YAML'
2323 ant beta:messages count-tokens --beta compact-2026-01-12 <<'YAML'
23252324 model: claude-opus-5-5
23262325 messages:
23272326 - role: user
build-with-claude/effort Changed · +2 / -1 lines
from line 402
402402 ```
403403
404404 ```bash CLI
405 ant beta:messages create --beta mid-conversation-output-config-2026-07-01 <<'YAML'
405 ant beta:messages create \
406 --beta mid-conversation-output-config-2026-07-01 <<'YAML'
406407 model: claude-fable-5-1
407408 max_tokens: 4096
408409 output_config:
build-with-claude/mid-conversation-system-messages Changed · +2 / -1 lines
from line 2114
21142114 ```
21152115
21162116 ```bash CLI
2117 ant beta:messages create --beta mid-conversation-system-clear-at-2026-08-21 <<'YAML'
2117 ant beta:messages create \
2118 --beta mid-conversation-system-clear-at-2026-08-21 <<'YAML'
21182119 model: claude-fable-5-1
21192120 max_tokens: 4096
21202121 messages:
build-with-claude/multilingual-support Changed · +1 / -1 lines
from line 161
161161 client = Anthropic::Client.new
162162
163163 message = client.messages.create(
164 model: "claude-opus-5-5",
164 model: Anthropic::Model::CLAUDE_OPUS_5_5,
165165 max_tokens: 1024,
166166 system: "Always respond in French, regardless of the language the user writes in.",
167167 messages: [
build-with-claude/prompt-caching Changed · +2 / -2 lines
from line 171
171171 client = Anthropic::Client.new
172172
173173 response = client.messages.create(
174 model: "claude-opus-5-5",
174 model: Anthropic::Model::CLAUDE_OPUS_5_5,
175175 max_tokens: 1024,
176176 cache_control: {type: "ephemeral"},
177177 system: "You are an AI assistant tasked with analyzing literary works. Your goal is to provide insightful commentary on themes, characters, and writing style.",
from line 448
448448 client = Anthropic::Client.new
449449
450450 response = client.messages.create(
451 model: "claude-opus-5-5",
451 model: Anthropic::Model::CLAUDE_OPUS_5_5,
452452 max_tokens: 1024,
453453 cache_control: {type: "ephemeral"},
454454 system: "You are a helpful assistant that remembers our conversation.",
build-with-claude/prompt-engineering/claude-prompting-best-practices Changed · +1 / -1 lines
from line 224
224224 client = Anthropic::Client.new
225225
226226 message = client.messages.create(
227 model: "claude-opus-5-5",
227 model: Anthropic::Model::CLAUDE_OPUS_5_5,
228228 max_tokens: 1024,
229229 system: "You are a helpful coding assistant specializing in Python.",
230230 messages: [
build-with-claude/working-with-messages Changed · +2 / -1 lines
from line 553
553553
554554 ```bash CLI
555555 # Option 1: Base64-encoded image (CLI auto-encodes binary @file refs)
556 curl -s "https://platform.claude.com/docs/images/vision-example.jpg" -o ./vision-example.jpg
556 curl -s "https://platform.claude.com/docs/images/vision-example.jpg" \
557 -o ./vision-example.jpg
557558
558559 ant messages create <<'YAML'
559560 model: claude-opus-5-5
claude_api_primer Changed · +2 / -1 lines
from line 146
146146<CodeGroup exclude="shell:cURL, typescript, csharp, go, java, php, ruby">
147147 ```bash CLI
148148 # Option 1: Base64-encoded image (@ prefix auto-encodes binary files as base64)
149 curl -sSo vision-example.jpg https://platform.claude.com/docs/images/vision-example.jpg
149 curl -sSo vision-example.jpg \
150 https://platform.claude.com/docs/images/vision-example.jpg
150151
151152 ant messages create <<'YAML'
152153 model: claude-opus-5-5
cli-sdks-libraries/cli/apply Changed · +1 / -1 lines
from line 41
4141First apply ./claude-lock.json does not exist yet and will be created
4242
4343Resources will be created with
44 credentials API key (--api-key / ANTHROPIC_API_KEY)
44 credentials API key (ANTHROPIC_API_KEY)
4545 host api.anthropic.com
4646 organization 1b0c2a4d-6c1f-4f0e-9a57-2e8d1c3b4a5f
4747 workspace wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ
cli-sdks-libraries/cli/scripting Changed · +1 / -3 lines
from line 77
7777```bash
7878FIRST_AGENT=$(ant beta:agents list --transform id --raw-output | head -1)
7979
80ant beta:agents:versions list \
81 --agent-id "$FIRST_AGENT" \
82 --format jsonl
80ant beta:agents:versions list --agent-id "$FIRST_AGENT" --format jsonl
8381```
8482
8583### Inspect errors
cli-sdks-libraries/cli/using Changed · +1 / -3 lines
from line 71
7171Use `--transform` to reshape responses before printing. The expression is a [GJSON path](https://github.com/tidwall/gjson/blob/master/SYNTAX.md). For list endpoints the transform runs against each item individually, not the envelope:
7272
7373```bash
74ant beta:agents list \
75 --transform "{id,name,model}" \
76 --format jsonl
74ant beta:agents list --transform "{id,name,model}" --format jsonl
7775```
7876
7977```jsonl Output
cli-sdks-libraries/libraries/apple-foundation-models Changed · +1 / -1 lines
from line 235
235235} catch ClaudeError.missingCredential {
236236 // Prompt for an API key.
237237} catch let error as LanguageModelError {
238 // Framework-shaped errors (rate limits, guardrails, context length, decoding).
238 // Framework-shaped errors (rate limits, guardrails, context-window overflow, decoding).
239239} catch {
240240 // Transport errors.
241241}
cli-sdks-libraries/sdks/java Changed · +2 / -2 lines
from line 15
1515<Tabs>
1616 <Tab title="Gradle">
1717 ```kotlin
18 implementation("com.anthropic:anthropic-java:3.0.0")
18 implementation("com.anthropic:anthropic-java:3.1.0")
1919 ```
2020 </Tab>
2121
from line 24
2424 <dependency>
2525 <groupId>com.anthropic</groupId>
2626 <artifactId>anthropic-java</artifactId>
27 <version>3.0.0</version>
27 <version>3.1.0</version>
2828 </dependency>
2929 ```
3030 </Tab>
get-started Changed · +2 / -2 lines
from line 435
435435 }
436436
437437 dependencies {
438 implementation("com.anthropic:anthropic-java:3.0.0")
438 implementation("com.anthropic:anthropic-java:3.1.0")
439439 }
440440
441441 application {
from line 461
461461 <dependency>
462462 <groupId>com.anthropic</groupId>
463463 <artifactId>anthropic-java</artifactId>
464 <version>3.0.0</version>
464 <version>3.1.0</version>
465465 </dependency>
466466 </dependencies>
467467 </project>
manage-claude/data-residency Changed · +1 / -1 lines
from line 188
188188 client = Anthropic::Client.new
189189
190190 response = client.messages.create(
191 model: "claude-opus-5-5",
191 model: Anthropic::Model::CLAUDE_OPUS_5_5,
192192 max_tokens: 1024,
193193 inference_geo: "us",
194194 messages: [
manage-claude/opentelemetry/sdk Changed · +2 / -2 lines
from line 84
8484
8585 <CodeGroup exclude="shell, python, typescript, csharp, go, php, ruby">
8686 ```kotlin Gradle
87 implementation("com.anthropic:anthropic-java:3.0.0")
87 implementation("com.anthropic:anthropic-java:3.1.0")
8888 ```
8989
9090 ```xml Maven
from line 91
9191 <dependency>
9292 <groupId>com.anthropic</groupId>
9393 <artifactId>anthropic-java</artifactId>
94 <version>3.0.0</version>
94 <version>3.1.0</version>
9595 </dependency>
9696 ```
9797 </CodeGroup>
manage-claude/workspaces Changed · +2 / -1 lines
from line 362
362362 ```
363363
364364 ```bash CLI
365 ant organization:workspaces archive --workspace-id wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ
365 ant organization:workspaces archive \
366 --workspace-id wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ
366367 ```
367368
368369 ```python Python
managed-agents/agent-setup Changed · +1 / -1 lines
from line 145
145145 ```ruby Ruby
146146 agent = client.beta.agents.create(
147147 name: "Coding Assistant",
148 model: "claude-opus-5-5",
148 model: Anthropic::Beta::BetaManagedAgentsModel::CLAUDE_OPUS_5_5,
149149 system_: "You are a helpful coding agent.",
150150 tools: [{type: "agent_toolset_20260401"}]
151151 )
managed-agents/define-outcomes Changed · +2 / -2 lines
from line 300
300300 "title": "Financial analysis on Costco"
301301 }'
302302
303 # Define the outcome: SESSION_ID is the id from the create response
303 # Define the outcome: SESSION_ID is the ID from the create response
304304 # The agent starts working when it receives the event
305305 curl -fsSL "https://api.anthropic.com/v1/sessions/$SESSION_ID/events" \
306306 -H "x-api-key: $ANTHROPIC_API_KEY" \
from line 327
327327 --environment-id "$ENVIRONMENT_ID" \
328328 --title "Financial analysis on Costco"
329329
330 # Define the outcome: SESSION_ID is the id from the create response
330 # Define the outcome: SESSION_ID is the ID from the create response
331331 # The agent starts working when it receives the event
332332 ant beta:sessions:events send --session-id "$SESSION_ID" <<YAML
333333 events:
managed-agents/event-deltas Changed · +1 / -1 lines
from line 580
580580
581581 ```bash CLI
582582 # The thread stream takes the same event_deltas parameter as the session stream,
583 # one --event-delta flag per event type to preview.
583 # one --event-delta flag for each event type to preview.
584584 ant beta:sessions:threads:events stream \
585585 --session-id "$SESSION_ID" \
586586 --thread-id "$THREAD_ID" \
managed-agents/events-and-streaming Changed · +1 / -1 lines
from line 1248
12481248 ```
12491249
12501250 ```ruby Ruby
1251 # Resuming a session is just sending the next event to it. In production,
1251 # To resume a session, send it the next event. In production,
12521252 # pass the session ID you stored when the session was created.
12531253 client.beta.sessions.events.send_(
12541254 session.id,