Edit sent message
Replaces the text (or caption) of a message this number sent. WhatsApp only accepts edits for a while after sending (currently 15 minutes); after that, the rejection comes as recusado_pelo_whatsapp. Recipients see the message marked as edited.
X-Api-Key: wpf_YOUR_KEYThe connection's API key (wpf_...), generated in the dashboard.
Authorization: Bearer wpf_YOUR_KEYThe same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).
messageId*stringThe 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.
1 <= length <= 512Idempotency-Key?stringOptional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.
application/json- body
text*stringThe new text (or the new caption, for media).
1 <= length <= 65536link_preview?booleanOptional: true to show a preview of the first link in the new text.
Message edited.
application/json- response
data*curl -X PUT 'https://app.wappfy.io/api/v1/messages/true_5581999999999@c.us_3EB0C767D26A1D5E' \ -H 'X-Api-Key: wpf_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{ "text": "Olá! Seu pedido sai amanhã de manhã."}'{ "data": { "message_id": "string", "chat_id": "string", "text": "string" }}
