Skip to main content
Returns a summary list of the authenticated user’s most recent causal chat sessions, each with a preview of the last message. Use this endpoint to populate history panels or session pickers in your integration.
To retrieve the full message list for a specific session, use GET /api/causal-chat/sessions/.

Endpoint

Authentication

Required. Include a session cookie or Authorization: Bearer <token> header. Unauthenticated requests return 401 Unauthorized.

Request

This endpoint accepts no query parameters or request body.

Headers

Authorization
string
required
Bearer token for API authentication. Format: Bearer <token>.

Response

Status: 200 OK
Content-Type: application/json
Returns a list of recent sessions, each containing metadata and a preview of the last message. Sessions are ordered by most recently updated first.
sessions
object[]
required
Array of recent session objects.

Examples

200

Error responses