v4
latestSwagger 2.02026-08-0343714211.7 MBchat_sessions
Chat Sessions
List Chat Sessions
List Chat Sessions
get/chat_sessions
Query parameters
cursorstring
Used for pagination. When a list request has more records available, cursors are provided in the response headers X-Files-Cursor-Next and X-Files-Cursor-Prev. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
per_pageinteger
Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
If set, sort records by the specified field in either asc or desc direction. Valid fields are id.
If set, return records where the specified field is equal to the supplied value. Valid fields are ai_task_id, user_id or workspace_id.
Response
A list of ChatSessions objects.
Example response
[
{
"id": "example",
"title": "example",
"user_id": 1,
"ai_task_id": 1,
"workspace_id": 1,
"last_active_at": "2000-01-01T01:00:00Z",
"created_at": "2000-01-01T01:00:00Z",
"messages": [
{
"id": 1,
"role": "example",
"content": "example",
"created_at": "2000-01-01T01:00:00Z"
}
]
}
]