List chats
/v1/chat/listRetired. This endpoint answers
410 Goneand no longer works. It is documented for reference only; use the v2 agent API's Chat instead.
Page through the organization's chats, newest activity first by default. Each row is a lightweight summary (id, message count, timestamps); fetch a single chat with Retrieve a chat to read its messages.
Pagination is offset-based: pass skip and limit, and stop when
pagination.hasMore is false.
Query parameters
4Number of chats to return. Values below 1 or non-numeric values fall back to 20; values above 100 are clamped to 100.
Number of chats to skip before the first returned row. Negative or non-numeric values are treated as 0.
Field to sort on. Any other value silently falls back to updatedAt.
Sort direction. Anything other than asc is treated as desc.
Response
The page of chat summaries.
Unique id of the chat.
Number of messages in the thread.
Same value as messagesCount, kept for compatibility.
When the chat was created.
When the chat was last written to.
Offset-based page metadata used by List chats.
Total number of chats in the organization.
Page size that was applied after clamping.
Offset that was applied.
Whether skip + limit is still below total.
Errors
18Every error is JSON with a single error string unless noted. Match on the status code; the message is for humans.
This endpoint has been retired (v1/chat/list).Always, for API callers. This check runs before authentication and consumes no quota.
curl -X GET "https://stylor.ai/api/v1/chat/list" \
-H "Authorization: Bearer $STYLOR_API_KEY"{
"chats": [
{
"chatId": "3f0c2a4e-8b1d-4c6a-9e2f-7a5b1c0d9e88",
"messagesCount": 4,
"messageCount": 4,
"createdAt": "2026-09-12T14:03:11.412Z",
"updatedAt": "2026-09-12T14:09:48.907Z"
},
{
"chatId": "c2b7e1a9-5d3f-4e8b-a6c0-1f2d3e4a5b6c",
"messagesCount": 2,
"messageCount": 2,
"createdAt": "2026-09-11T09:21:05.118Z",
"updatedAt": "2026-09-11T09:21:37.552Z"
}
],
"pagination": {
"total": 137,
"limit": 20,
"skip": 0,
"hasMore": true
}
}