Delete Message
Supported & TestedRevoke/Delete a previously sent message for everyone in the chat.
POSThttps://api.waplix.io/api/v1/messages/delete
Authentication
Authorization: Bearer YOUR_API_KEY Parameters Specification
| Parameter | Type | Required | Description |
|---|---|---|---|
| instance_id | string | Required | Waplix instance id slot |
| message_id | string | Required | Target WhatsApp message id |
| for_everyone | boolean | Optional | Optional boolean flag to trigger global revoke |
instance_id
stringReq Waplix instance id slot
message_id
stringReq Target WhatsApp message id
for_everyone
booleanOpt Optional boolean flag to trigger global revoke
Usage Notes
Requires access to the message key payload in local storage client caches.
Request Payload Example
Request
curl -X POST "https://api.waplix.io/api/v1/api/v1/messages/delete" \
-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"
}'Success Response
Response · 200 OK
{
"success": true,
"data": {
"instance_id": "demo_instance",
"message_id": "MSG_DEMO_001",
"status": "deleted",
"for_everyone": true
}
} 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.deleted
Triggered when a sent message is successfully deleted or revoked in the chat.
{
"event": "message.deleted",
"instance_id": "demo_instance",
"message_id": "MSG_DEMO_001",
"for_everyone": true,
"timestamp": 1782582373
} Was this page helpful?