Skip to main content
GET
/
api
/
sessions
/
{sessionId}
/
chats
/
{chatId}
Get session chat
curl --request GET \
  --url https://api.recoupable.com/api/sessions/{sessionId}/chats/{chatId} \
  --header 'x-api-key: <api-key>'
{
  "chat": {
    "id": "<string>",
    "sessionId": "<string>",
    "title": "<string>",
    "modelId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "activeStreamId": "<string>",
    "lastAssistantMessageAt": "2023-11-07T05:31:56Z"
  },
  "isStreaming": true,
  "messages": [
    {
      "id": "<string>",
      "parts": [
        {}
      ]
    }
  ]
}

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

x-api-key
string
header
required

Path Parameters

sessionId
string
required

The id of the parent session.

chatId
string
required

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.

chat
object
required
isStreaming
boolean
required

True when chat.activeStreamId is non-null.

messages
object[]
required

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.