List messages across all accounts
Messages across all your accounts, oldest first. Poll with after_cursor = the last next_cursor you received to get only what has arrived since — no gaps, no duplicates. Filter with account_id, chat and since/until (when the message was sent; until is exclusive); include_history adds synced history. Mirrors the wa_list_messages MCP tool.
Request
- Base URL: https://api.whatsmcp.com
- URL: https://api.whatsmcp.com/v1/messages
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Query parameters
return messages after this cursor; omit or 0 to start from the beginning
how many to return, 1-200; omit or 0 for 50
only this account's messages; omit for every account
only this conversation — a phone number or a group JID
only messages sent at or after this time: RFC3339 with a zone, or a date (midnight UTC)
only messages sent BEFORE this time (exclusive): one day is since=2026-10-01&until=2026-10-02
also return imported history; a page is then in storage order — sort by at
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.