AI · Flashcard

A team builds a chat feature and assumes the API remembers previous messages by conversation ID, but Claude never recalls earlier turns. Why?

  • AThe Messages API is stateless — the client must resend the full conversation history on every request
  • BThe Messages API is session-based — a conversation ID must be passed to reload stored server-side turns
  • CThe Messages API is cached — earlier turns expire after a fixed idle window and must then be refreshed
  • DThe Messages API is streaming-only — history is retained solely while an SSE connection stays open live

Why this is the answer

The Messages API is stateless: there is no server-side memory, so the client resends prior turns each call. There is no conversation ID that reloads server state (2), no idle-expiry cache of turns (3), and history is not tied to an SSE stream (4).

Official docs
Study in Gnoseed →