Skip to main content
POST
Edit message
Auth: TokenAccount or TokenInstanceRate-limit: Global (100/min) • Idempotent: no Edits the content of a message you sent. Only text messages are supported.
Edit window: ~15 minutes after sending (limit imposed by WhatsApp). Older messages fail with too old to edit.

Example

Send the new content in the content field. The original message must have been sent by the instance itself and be within the 15-minute window.

Success response

200 OK

Path parameters

string
required
Instance name.

Headers

string
required
TokenAccount or TokenInstance.

Request body

string
required
ID of the message to edit. It must exist and have been sent by you.
string
required
New message content.

Notes

  • The recipient sees the new text with the “Edited” tag.
  • The edit emits a message.exchange event on the webhook/WebSocket with type: "message_edit" and isEdit: true.
  • Editing a media caption (image/video/document) is not reliably supported, use only on plain text messages.

Error responses