Follow Discord
Sweep 31 Oct 2026 · 01:10Z Build v2.1.316 534 read Stable v2.1.309 Latest v2.1.316 Next v2.1.316 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

working-with-messages changedbuild-with-claude/working-with-messages

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

## Availability ### API support ### Data handling

The whole hunk

from line 2, old and new numbered
/
lines
from line 2
22title: Using the Messages API
33url: https://platform.claude.com/docs/en/build-with-claude/working-with-messages
44description: Practical patterns and examples for using the Messages API effectively
5featureMetadata:
6 status: ga
7 zdr:
8 eligibility: eligible
9 note: Excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements). Standard API calls for generating Claude responses.
10 supportedModels:
11 - claude-fable-5-1
12 - claude-mythos-5-1
13 - claude-fable-5
14 - claude-mythos-5
15 - claude-mythos-preview
16 - claude-opus-5-5
17 - claude-opus-5
18 - claude-sonnet-5-5
19 - claude-sonnet-5
20 - claude-haiku-5-5
21 - claude-haiku-4-5-20251001
22 - claude-opus-4-8
23 - claude-opus-4-7
24 - claude-opus-4-6
25 - claude-sonnet-4-6
26 - claude-opus-4-5-20251101
27 - claude-sonnet-4-5-20250929
28 supportedPlatforms:
29 Claude API: ga
30 Claude Platform on AWS: ga
31 Claude Models on Google Cloud (Anthropic managed): ga
32 Amazon Bedrock: ga
33 Amazon Bedrock (InvokeModel): ga
34 Claude Models on Google Cloud (Google managed): ga
35 Microsoft Foundry: ga
536---
637 
738Anthropic offers two ways to build with Claude, each suited to different use cases:
from line 44
1344 
1445This guide covers common patterns for working with the Messages API, including basic requests, multi-turn conversations, prefill techniques, and vision capabilities. For complete API specifications, see the [Messages API reference](https://platform.claude.com/docs/en/api/messages/create). For the managed agent harness instead, see the [Claude Managed Agents overview](https://platform.claude.com/docs/en/managed-agents/overview).
1546 
16<Note>
17 To learn how zero data retention (ZDR) applies to this feature, see [API and data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention).
18</Note>
19 
2047## Basic request and response
2148 
2249<Note>
from line 1082
10551082 Set an advisory token budget across a full agentic loop with `output_config.task_budget`.
10561083 </Card>
10571084</CardGroup>
1085 
1086## Availability
1087 
1088The Messages API is available on every model and eligible for zero data retention and HIPAA readiness.
1089 
1090### API support
1091 
1092Available
1093 
1094### Data handling
1095 
1096[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
1097 
1098| Item | Zero data retention | HIPAA |
1099| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
1100| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
1101| Details | Standard API calls for generating Claude responses. | — |
1102 
1103Applicable endpoints:
1104 
1105* `/v1/messages`
10581106 
Feedback