Chat
Edit message
Changes the content of a message you sent
POST
Edit message
Auth:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: no
Edits the content of a message you sent. Only text messages are supported.
Example
Send the new content in thecontent 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.exchangeevent on the webhook/WebSocket withtype: "message_edit"andisEdit: true. - Editing a media caption (image/video/document) is not reliably supported, use only on plain text messages.