GET /api/chats — List Recent WhatsApp Chats by Activity
GET /api/chats returns recent WhatsApp chats sorted by latest activity, with unread counts, pin and mute status, timestamps, and last message summaries.
Use this file to discover all available pages before exploring further.
GET /api/chats fetches all WhatsApp conversations available to the authenticated account and returns the most recent ones sorted by activity. Each chat entry includes display name, group/read-only flags, unread message count, pin and mute status, and a summary of the last message. This is useful for building an inbox view or for discovering the chat IDs you need to pass to /api/messages.
Maximum number of chats to return. Must be an integer between 1 and 100. Chats are sorted by timestamp (most recent first) before the limit is applied, so you always receive the freshest conversations.