claude_api_primer changedclaude_api_primer
Nearest release: v2.1.336, published an hour before 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+1added
Lines−1removed
From line
102
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits32to this page, all time
The whole hunk
from line 102, old and new numbered
/
from line 102
102102 ```
103103</CodeGroup>
104104
105With [message threads](https://platform.claude.com/docs/en/build-with-claude/message-threads), in beta, the API can keep the conversation, so that each later request sends only the new messages. A thread expires 5 minutes after its last request and is deleted no more than 1 hour after its last use.
105With [message threads](https://platform.claude.com/docs/en/build-with-claude/message-threads), in beta, the API can keep the conversation so that each later request sends only the new messages. A thread is best-effort and short-lived. Plan for it to expire 5 minutes after the last response that the API stored. The API deletes every thread no more than 1 hour after its last use. Keep your own copy of the conversation. If a later request returns a 404 error with `error.details.error_code` set to `thread_not_found`, send the full conversation again and start a new thread.
106106
107107### Prefilling Claude’s response
108108
No line in this hunk matches that.