# 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`

{% hint style="warning" %}

* 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).&#x20;
* Processing the request takes 15 seconds and may return a 404 response, but this does not indicate an error.
  {% endhint %}

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.

<figure><img src="https://2417185145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhsdgGmVCG31mEaHyRvxC%2Fuploads%2FyigQgNsAsgcMDHxT1ii9%2Fimage.png?alt=media&#x26;token=af6e0347-fe6f-47b4-ac41-7f910e718965" alt=""><figcaption></figcaption></figure>
