v51

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

List Sessions

List chat sessions for the authenticated user.

Returns a paginated list of chat sessions belonging to the current user, with pinned sessions first and most-recently-updated as the tiebreaker.

Args: user_id: The authenticated user's ID. limit: Maximum number of sessions to return (1-100). offset: Number of sessions to skip for pagination.

Returns: ListSessionsResponse: List of session summaries and total count.

get/api/chat/sessions

Query parameters

limitinteger
offsetinteger

Response

Successful Response

totalinteger required