Nachrichten

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.

Autorisierung

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).

Pfadparameter

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.

Länge1 <= length <= 512

Header-Parameter

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.

Antwort-Body

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  }}