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

Parameters: list_chats
NameTypeDescription
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
curl https://cotlet.dev/api/v1/livechat/chats \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("livechat", "list_chats")
Node.js
const result = await cotlet.call('livechat', 'list_chats');
CLI
cotlet call livechat list_chats

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.