From Swarmhit's stored history, newest activity first. A chat is listed from its first message.
Your API key from the console (gw_live_…).
In: header
Query Parameters
Only these accounts: one wa_… id, or several separated by commas.
length <= 4096Anything but WHATSAPP answers no items.
length <= 20true: only chats with unread messages (unread_count above 0). false or absent: every chat.
Value in
- "true"
- "false"
Items per page, 1 to 250. Default 100.
1 <= value <= 250100The cursor the previous page answered, passed back unchanged, for the next page (newest first). Leave it out for the first page; a null cursor means there is no next page. Keep the same filters from page to page: a page never skips or repeats an item that arrives meanwhile.
length <= 200Only items strictly older than this date: ISO 8601 with a time zone, e.g. 2026-10-31T00:00:00Z. A value that is not a date answers 400.
length <= 40Only items strictly newer than this date: ISO 8601 with a time zone, e.g. 2026-10-31T00:00:00Z. A value that is not a date answers 400.
length <= 40Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/whatsapp/api/v1/chats?account_id=wa_Xk2pQ9rT4vW8yZ1a"{ "object": "ChatList", "items": [ { "object": "Chat", "id": "wac_k3J9sLq2Vx8nB4mR", "account_id": "wa_Xk2pQ9rT4vW8yZ1a", "account_type": "WHATSAPP", "provider_id": "33612345678@s.whatsapp.net", "attendee_provider_id": "33612345678@s.whatsapp.net", "name": "Jane Doe", "type": 0, "timestamp": "2026-10-31T09:30:00.000Z", "unread_count": 1, "archived": 0, "muted_until": null, "read_only": 0, "disabledFeatures": [], "folder": [ "INBOX" ], "pinned": 0 } ], "cursor": null}A chat's messages GET
From Swarmhit's stored history, newest first; readable while the number reconnects.
Act on a chat PATCH
`action`: `setReadStatus`, `setMuteStatus`, `setArchiveStatus`, `setPinnedStatus` (`value` true/false), `addParticipant`, `removeParticipant` (`value` a JID; groups only), `setLabel` (`value` a label id), `getInviteLink` (groups; answers `invite_link`). 400 for an unknown action or a missing `value`.