Messages

Delete message for everyone

DELETE
/messages/{messageId}

Deletes, for everyone, a message this number sent. Recipients see "This message was deleted". WhatsApp limits how long after sending this is accepted.

Autorisation

X-Api-Key: wpf_YOUR_KEY

The connection's API key (wpf_...), generated in the dashboard.

Authorization: Bearer wpf_YOUR_KEY

The same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).

Paramètres de chemin

messageId*string

The full message_id of a message sent by this number (true_<chat>_<id>), as returned by the send response and the webhooks. Escape @ as %40 if your HTTP client does not do it.

Longueur1 <= length <= 512

Paramètres d'en-tête

Idempotency-Key?string

Optional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.

Corps de la réponse

Message deleted for everyone.

application/json
  1. response
data*
curl -X DELETE 'https://app.wappfy.io/api/v1/messages/true_5581999999999@c.us_3EB0C767D26A1D5E' \  -H 'X-Api-Key: wpf_YOUR_KEY'
{  "data": {    "message_id": "string",    "chat_id": "string",    "deleted": true  }}