working-with-messages changedbuild-with-claude/working-with-messages
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
352
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits35to this page, all time
The whole hunk
from line 352, old and new numbered
/
from line 352
352352}
353353```
354354
355With [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.
355With [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, so your application still keeps the whole conversation. Plan for a thread 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 (see [How long a thread lasts](https://platform.claude.com/docs/en/build-with-claude/message-threads#lifetime)).
356356
357357### System role in messages
358358
No line in this hunk matches that.