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

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.

Response

Chats retrieved successfully.

chats
object[]
required

Every chat in the session, sorted by createdAt ascending.

defaultModelId
string
required

Default model id surfaced to clients with no explicit preference (e.g. openai/gpt-5.4).