Across chats, from Swarmhit's stored history, newest first.
Your API key from the console (gw_live_…).
In: header
Query Parameters
Only these accounts: one wa_… id, or several separated by commas.
length <= 4096Only messages from this person: a JID or a phone number.
length <= 128Items 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/messages?account_id=wa_Xk2pQ9rT4vW8yZ1a&sender_id=33612345678%40s.whatsapp.net"{ "object": "MessageList", "items": [ { "object": "Message", "id": "wam_P7tR2wQ9zL4kN8vX", "provider_id": "3EB0C431D2A1B5E6F7A8", "account_id": "wa_Xk2pQ9rT4vW8yZ1a", "chat_id": "wac_k3J9sLq2Vx8nB4mR", "chat_provider_id": "33612345678@s.whatsapp.net", "sender_id": "33612345678@s.whatsapp.net", "sender_attendee_id": "waa_H5gT8kL2mQ9wR3vB", "text": "Hi, thanks for reaching out!", "attachments": [], "timestamp": "2026-10-31T09:30:00.000Z", "is_sender": 0, "is_forwarded": false, "is_view_once": false, "reactions": [], "seen": 0, "seen_by": {}, "hidden": 0, "deleted": 0, "edited": 0, "is_event": 0, "delivered": 1, "behavior": null, "original": "", "message_type": "MESSAGE" } ], "cursor": null}