v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01302395850.8 KB
v2
chat
chat

Get Session

Retrieve the details of a specific chat session.

Supports cursor-based pagination via limit and before_sequence. When no pagination params are provided, returns the most recent messages.

get/api/chat/sessions/{session_id}

Path parameters

session_idstring required

Query parameters

limitinteger
before_sequenceinteger nullable

Response

Successful Response

idstring required
created_atstring required
updated_atstring required
user_idstring nullable required
chat_statusstring
messagesobject[] required
has_more_messagesboolean
oldest_sequenceinteger nullable
total_prompt_tokensinteger
total_completion_tokensinteger