Edit Message

Supported & Tested

Modify text contents of previously dispatched messages.

POSThttps://api.waplix.io/api/v1/messages/edit
Authentication
Authorization: Bearer YOUR_API_KEY
Parameters Specification
instance_id
stringReq

Waplix instance id slot

message_id
stringReq

Target WhatsApp message id to modify

message
stringReq

Updated message text content details

Usage Notes
Editing is supported only for text-based messages. Editing media message captions is not supported by current engines.
Request Payload Example
Request
curl -X POST "https://api.waplix.io/api/v1/api/v1/messages/edit" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "instance_id": "demo_instance",
  "message_id": "MSG_DEMO_001",
  "chat_id": "15551234567@s.whatsapp.net",
  "message": "Docs test edited"
}'
Success Response
Response · 200 OK
{
  "success": true,
  "data": {
    "instance_id": "demo_instance",
    "message_id": "MSG_DEMO_001",
    "new_message": "Docs test edited",
    "status": "edited"
  }
}
Related Webhook Events

The API response confirms that Waplix accepted or processed the request. Delivery and read updates may arrive asynchronously through configured webhooks.

message.edited

Triggered when a sent message is successfully edited in the chat.

{
  "event": "message.edited",
  "instance_id": "demo_instance",
  "message_id": "MSG_DEMO_001",
  "message": "Hello from Waplix API docs.",
  "timestamp": 1782582340
}
Was this page helpful?