संदेश

Edit sent message

PUT
/messages/{messageId}

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

पाथ पैरामीटर

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.

लंबाई1 <= length <= 512

हेडर पैरामीटर

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.

अनुरोध की बॉडी

application/json
  1. body
text*string

The new text (or the new caption, for media).

लंबाई1 <= length <= 65536
link_preview?boolean

Optional: true to show a preview of the first link in the new text.

रिस्पॉन्स बॉडी

Message edited.

application/json
  1. 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"  }}