Restoring Missing Messages Using Resync
In situations where incoming or outgoing WhatsApp messages are temporarily inaccessible (returning a 404 error via HTTP GET requests), Whapi.Cloud provides a resync functionality allowing you to recover these messages into your cache.
When to Use the Resync Function
Messages sent or received during internal synchronization issues.
HTTP GET requests for messages returning a 404 error.
Quoting a message that returns a 404 error.
How to Resync Messages
Send a GET request with the resync=true
parameter to the Whapi endpoint:
GET https://gate.whapi.cloud/messages/{MessageID}?resync=true
Make sure that the linked phone is connected to the network during the request (it is sufficient for the phone to be simply turned on).
Processing the request takes 15 seconds and may return a 404 response, but this does not indicate an error.
The HTTP GET request for the message will cease returning a 404 within a few minutes, allowing you to reference and use the message ID normally.
Important Considerations
After resyncing, a webhook notification about the message will be triggered! If you have automation scripts or bots configured to listen for new message webhooks, temporarily disable them to avoid unintended processing of these restored messages.

Last updated
Was this helpful?