Skip to main content
Two endpoints manage causal chat sessions: one to list all sessions associated with your account, and one to retrieve the full message history for a specific session.

List sessions

Returns all sessions belonging to the authenticated user, ordered by most recently updated.

Authentication

Required. Include a session cookie or Authorization: Bearer <token> header.

Response

Status: 200 OK
Content-Type: application/json
sessions
object[]
required
Array of session summary objects.

Example

200

Get session messages

Returns the full ordered message history for a specific session.

Authentication

Required. Include a session cookie or Authorization: Bearer <token> header.

Path parameters

sessionId
string
required
UUID of the session to retrieve. Obtain this from the id field in the list sessions response.

Response

Status: 200 OK
Content-Type: application/json
messages
object[]
required
Chronologically ordered array of messages in the session.

Example

200

Error responses