
Claude Message Threads: How the New Messages API Beta Works and When to Use It
Claude message threads is a new public beta in Anthropic's Messages API that lets an app send the whole conversation once and then only the new messages on each later turn. Anthropic says this cuts the time before Claude starts answering in long agent sessions: with threads on by default for most Claude Code users, requests of 500k to 1M tokens see median time to first token (TTFT) fall by about 35%. Trade press dated the launch 2 November 2026; Anthropic's own announcement page carries no visible date.
What changes for developers
Until now the Messages API was stateless, so every turn resent the entire history, system prompt and tool results. Anthropic's docs describe the new flow in two steps:
- Create. The first request sends the full conversation, system and tools, plus "thread": {"type": "create"}. The API stores the conversation under the response id.
- Continue. Later requests send only the new messages plus "thread": {"type": "continue", "previous_message_id": "<id>"}. system and tools are left out because the thread keeps them.
- Replay. A thread is best-effort. It expires 5 minutes after its last request and is deleted within an hour. If it is gone, a continue request returns a 404 and the client sends the full conversation again.
Every request needs the beta header message-threads-2026-08-12. The official SDKs have a thread helper that adds the header, creates and continues threads, and replays automatically on specific errors.
What it does not change
- Tokens and price. Claude still reads the full conversation on every turn, so token usage stays the same. Standard rates and existing rate limits apply.
- Prompt caching. A thread does not cache your prompt. You still place cache breakpoints or send a top-level
cache_controlon each request. In short, a thread saves the repeated upload and re-validation, while the cache saves repeated model processing; independent write-ups such as Max Nardit's draw the same line. - Your own history. Your app must keep its own copy of every message, because there is no API to list, read or delete a thread.
Where it helps most
Anthropic names three cases: long-running coding agents where each tool result adds to the history, computer-use agents whose screenshots stay in the thread instead of being re-uploaded, and document- or image-heavy workflows. The announcement's only measured number (about 35% lower median TTFT) covers Claude Code requests at 500k to 1M tokens. The sources we read give no figure for smaller conversations, so measure your own.
Key limits at a glance
| Area | Rule |
|---|---|
| Expiry | 5 minutes after last request; deleted at most 1 hour after last use |
| Append-only | Each response id can be continued once; no edits or branches |
| Create-only fields | system and tools go on the create request only; sending them on a continue request returns a 400 error |
| Fixed fields | model, thinking, tool_choice, top-level cache_control and the beta headers must match the create request, or the API returns thread_fingerprint_mismatch; start a new thread to change them |
| Cache breakpoints | At most 4 per request |
| Not supported | Message Batches, token counting, compaction on demand, most context editing; no API to list, read or delete a thread |
| Data | Not eligible for zero data retention or HIPAA; unavailable to organizations with HIPAA readiness or inference hooks |
| Availability | Claude API, Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed) and Microsoft Foundry; beta on every model |
What this means for builders
- Measure before you switch. Log context size, TTFT and cache-read tokens first. If most of your wait is prefill, caching matters more than threads.
- Build the replay path first. Agents that wait on humans or timers will outlive 5 minutes, so replay is the normal path for them.
- Check data rules. Threads are held in memory, encrypted, and deleted within an hour, but Anthropic lists them as not ZDR eligible, so confirm this fits your contracts.
- Related reading. See how agents work in What Is a Coding Agent?, compare tools in Claude Code vs Codex, plan spend with our AI API pricing guide, learn the basics of how to build an AI agent, and read about Anthropic's usage policy update.
Sources
- Anthropic: Make long-running agents faster with message threads
- Claude docs: Message threads
- Claude docs: Using the Messages API
- Unite.AI: Anthropic Launches Message Threads Beta for Long-Running Agents
- Max Nardit: Claude message threads on the Messages API
FAQ
What are Claude message threads?
A public beta feature in the Messages API. You send the full conversation once with a thread parameter, then send only new messages and the previous response id on later turns.
Do message threads make Claude cheaper?
Not by themselves. Anthropic says Claude still reads the full conversation each turn, so token usage stays the same and standard pricing applies. Prompt caching is the separate feature that reduces repeated-context cost.
How long does a message thread last?
It expires 5 minutes after its last request, and the API deletes it no more than 1 hour after its last use. After expiry you send the full conversation again to start a new thread.
What beta header do I need?
message-threads-2026-08-12 on every request of the thread. The SDK thread helper adds it for you.
Can I use message threads with the Batch API or zero data retention?
No. Anthropic's docs list Message Batches and token counting as unsupported, and threads are not eligible for zero data retention or HIPAA.