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
Name | Type | Required | Description |
---|---|---|---|
msgId | integer | Yes | The ID of the message to retrieve information for its returned from send-message endpoints. |
text | string | Yes | The 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
}
}