Messages

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.

PUT
/messages/{messageId}

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
AuthorizationBearer <token>

Per-user API token (UUID v4) sent as Authorization: Bearer <token>. Identifies the tenant and user.

In: header

Path Parameters

messageId*string

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"}