List chats
Chats in My chats, Queued chats, Unassigned chats or Supervised chats, with customer, channel and last message.
GET https://cotlet.dev/api/v1/livechat/chats
read
Lists the chats in one of the lists you see in the Chats section: my, queued, unassigned or supervised. Each item has the customer, the channel, the last message and whether the chat is active or inactive. Pass next_cursor back as cursor for the next page.
Parameters
| Name | Type | Description |
|---|---|---|
| list enum | enum | my, queued, unassigned or supervised. Default: my. |
| limit integer | integer | Number of chats per page. Default: 20. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/livechat/chats \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("livechat", "list_chats") const result = await cotlet.call('livechat', 'list_chats'); cotlet call livechat list_chats Example response
{
"chats": [
{
"chat_id": "PJ0MRSHTDG",
"list": "unassigned",
"customer": {
"name": "Lena Ortiz",
"email": "lena@example.com"
},
"channel": "WhatsApp",
"active": true,
"last_message": {
"from": "customer",
"text": "Hi, I was charged twice in October.",
"sent_at": "2026-10-17T05:42:00Z"
}
}
],
"next_cursor": null
}