Asks the phone for older messages; they arrive later. Poll: SYNC_STARTED, SYNC_RUNNING, then SYNC_DONE once.
Your API key from the console (gw_live_…).
In: header
Path Parameters
A chat id (wac_…), or a WhatsApp JID / phone number together with account_id.
Query Parameters
The account the id belongs to: required when the path names a JID or a phone number instead of Swarmhit's id.
length <= 4096Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/whatsapp/api/v1/chats/wac_k3J9sLq2Vx8nB4mR/sync?account_id=wa_Xk2pQ9rT4vW8yZ1a"{ "object": "ChatHistorySync", "chat_id": "wac_k3J9sLq2Vx8nB4mR", "status": "SYNC_STARTED"}Start a chat POST
One attendee: a message to that person (their chat is reused when it exists; a first message counts as a new chat against the caps and WhatsApp's quota, and the number is checked to be on WhatsApp first). Two or more: a new group named `subject`, with an optional first message. JSON, or multipart for files. Answers 201.
Delete a message DELETE
This number's own message: deleted for everyone. Someone else's: deleted for this number only.