Get Session Chat
Returns the chat’s persisted UI message stream plus its current streaming state so callers can hydrate or refresh a chat view. messages is an array of parts payloads — one per chat_messages row — ordered by created_at ascending (ties broken by id). isStreaming is derived from activeStreamId.
Documentation Index
Fetch the complete documentation index at: https://developers.recoupable.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Path Parameters
The id of the parent session.
The id of the chat being fetched.
Response
Chat retrieved successfully.
Response body for GET /api/sessions/{sessionId}/chats/{chatId}. Carries the full chat row plus its streaming state and persisted UI message stream — enough for both initial render and in-tab refresh.
True when chat.activeStreamId is non-null.
Persisted UI message stream — one serialized UIMessage per chat_messages row, ordered by created_at ascending (ties broken by id). Each item is the full message object, not a bare parts array.
