latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-15420246.8 KB

533b3360e2e4

Connections

Edits a previously sent message. Only text messages (including captions) can be edited. The message must have been sent by you and must be within the editable time window (approximately 15 minutes).

patch/connections/{phoneNumber}/messages

Path parameters

phoneNumberstring required
Example:+551234567890

Phone number for connection. Must have + prefix.

Request body

jidstring required

WhatsApp JID [Chat JID where the message exists]

Example request

{
  "messageContent": {
    "text": "Updated message text",
    "mentions": [
      "551101234567@s.whatsapp.net"
    ]
  }
}

Response

Message edited successfully