Edit a previously sent message
Replaces the text content of a message already sent from the WUTS-connected device. WhatsApp only allows editing within a limited time window after the original message was sent.
Replaces the text content of a message already sent from the WUTS-connected device. WhatsApp only allows editing within a limited time window after the original message was sent.
Authorization
bearerAuth Per-user API token (UUID v4) sent as Authorization: Bearer <token>. Identifies the tenant and user.
In: header
Path Parameters
The WhatsApp ID of the message to edit.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/messages/3EB0XXXX1234ABCD" \ -H "Content-Type: application/json" \ -d '{ "to": "5511999999999", "message": "Updated: your order ships tomorrow at 9am." }'{ "success": true, "message_id": "3EB0XXXXEDIT0001", "timestamp": "2026-06-15T14:33:00Z", "message": "Message edited successfully"}{ "success": false, "error": "validation failed", "error_code": "VALIDATION_ERROR", "timestamp": "2026-06-15T12:00:00Z"}{ "success": false, "error": "validation failed", "error_code": "VALIDATION_ERROR", "timestamp": "2026-06-15T12:00:00Z"}{ "success": false, "error": "validation failed", "error_code": "VALIDATION_ERROR", "timestamp": "2026-06-15T12:00:00Z"}Delete (revoke) a message DELETE
Deletes a message from a WUTS-connected chat. With deleteType 'for_everyone' the message is revoked on WhatsApp for all participants (subject to WhatsApp's time limit); with 'for_me' the call succeeds locally without revoking on the server.
Download inbound message media GET
Returns the binary payload of an inbound WhatsApp media message. WUTS serves warm-cached bytes when available and otherwise re-downloads the media on demand over the live whatsmeow socket, requesting retransmission from the sender when the WhatsApp CDN copy has expired.