WhatsApp: Edit a Sent Message
View all WhatsApp Messaging API endpoints →Edit the text of a message you previously sent. Send a JSON body with the chatJid, the messageId of your sent message, and the new text. For group messages you may pass senderJid; it is inferred from the available message history when omitted. Only your own messages can be edited. Returns the result.
API Features
In-place correction Update the text of a message you already sent without deleting it
Cache-assisted senderJid is resolved automatically from the available message history when omitted
Simple payload Just chatJid, messageId, and the new text
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
POST
/api/project/whatsapp-messaging/edit-message API Response (JSON)
{} curl -X POST 'https://api.opendata-api.com/api/project/whatsapp-messaging/edit-message?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"chatJid\":\"8613800138000@s.whatsapp.net\",\"messageId\":\"ABCD1234\",\"text\":\"Corrected text\"}"}'
curl -X POST 'https://api.opendata-api.com/api/project/whatsapp-messaging/edit-message?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"chatJid\":\"8613800138000@s.whatsapp.net\",\"messageId\":\"ABCD1234\",\"text\":\"Corrected text\"}"}' Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Fix a typo in an automated notification after it was sent
- Update a status or price in a previously sent message
- Correct information in a support reply