List chats
list_chatsList an account's WhatsApp conversations, newest first, including name, latest message, and unread, pinned, archived, or muted state. Filter by archived, unread, type, or search text.
Instructions
An account's conversations, the one with the newest message first: each chat's name, picture id, latest message and WhatsApp's unread, pinned, archived and muted state. Only chats wuapi stored a message of. A state field that is missing (unread, unreadCount, pinned, pinnedAt, archived, muted) is not known to wuapi yet, which is not the same as false. Filter by archived, unread or type, or search names, numbers and recent text with q. Read a conversation with list_messages and the chat's id as chatId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search the contact or group name, the number, the username and recent message text. Results come best match first. | |
| type | No | Only chats with a contact, groups, or channels. | |
| limit | No | Page size, 1 to 100. Default 20. | |
| cursor | No | `nextCursor` from the previous page, to get the next one. | |
| unread | No | true: only chats with unread messages or marked as unread. false: every other chat. | |
| archived | No | true: only chats WhatsApp reported as archived. false: every other chat, including those whose state is not known yet. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). |