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. expert_id: Restrict the listing to sessions scoped to this expert. pinned_first: Whether pinned sessions precede strict recency ordering.
Returns: ListSessionsResponse: List of session summaries and total count.
Query parameters
Keep pinned sessions before recent sessions. Set false for strict recency when adopting the latest expert thread.
Keep pinned sessions before recent sessions. Set false for strict recency when adopting the latest expert thread.
Response
Successful Response
Changes
Changed in 6 of the 92 revisions of this API.36
- ○
added the new optional
queryrequest parameterpinned_firstnew-optional-request-parameter
- ○
- ○
added the new optional
queryrequest parameterexpert_idnew-optional-request-parameter
- ○
added the optional property
sessions/items/expert_idto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
sessions/items/is_pinnedto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
sessions/items/source_platformto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
sessions/items/chat_statusto the response with the200statusresponse-optional-property-added
- ○
- ●
removed the optional property
sessions/items/chat_statusfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
sessions/items/is_pinnedfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
sessions/items/source_platformfrom the response with the200statusresponse-optional-property-removed
This revision also has 96 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●