WasenderApi - Low Cost WhatsApp API for Developers Edit a Message - API Documentation - WasenderApi - Low Cost WhatsApp API for Developers
WasenderApi API

API Documentation

WasenderApi WhatsApp API

Edit a Message

Messages

PUT/api/messages/{msgId}

Edits the text content of a previously sent message. Note: This is usually only possible for a short period after the message was sent.

Edit a Message

Edits the text content of a previously sent message. Note: This is usually only possible for a short period after the message was sent.

Parameters

NameTypeRequiredDescription
msgIdintegerYesThe ID of the message to retrieve information for its returned from send-message endpoints.
textstringYesThe new text content for the message.

Code Examples

curl -X PUT "https://www.wasenderapi.com/api/messages/{msgId}"
  -H "Authorization: Bearer YOUR_API_KEY"
  -H "Content-Type: application/json"
  -d '{
      "text": "This is the new message content",
  }'

Response Examples

{
    "success": true,
    "data": {
        "remoteJid": "123456789@s.whatsapp.net",
        "id": "EN82FV0387IVR54JTE2R1",
        "msgId": 100000,
        "key": {
            "id": "EN82FV0387IVR54JTE2R1",
            "fromMe": true,
            "remoteJid": "123456789@s.whatsapp.net"
        },
      "message": {
            "protocolMessage": {
                "key": {
                    "id": "EN82FV0387IVR54JTE2R1",
                    "fromMe": true,
                    "remoteJid": "123456789@s.whatsapp.net"
                },
                "type": 14,
                "timestampMs": 1751302295563,
                "editedMessage": {
                    "extendedTextMessage": {
                        "text": "updated"
                    }
                }
            }
        "messageTimestamp": "1751297488",
        "status": 1
    }
}