Delete Message (Everyone)
Delete Message
POST
https://api.wapim.io/api/v1/whatsapp/message/delete
Request Body
{
"status": true,
"code": 200,
"data": "OK"
}
{
"status": false,
"code": 400,
"message": "Bad Request",
"error": {
"Delete Message": [
"Malformed or missing message_id!"
]
}
}
curl
-X POST https://api.wapim.io/api/v1/whatsapp/message/delete
-H 'Token: YOUR_WAPIM_TOKEN'
-d '{"message_id": "WHATSAPP_MESSAGE_ID"}'
const axios = require('axios');
axios
.post(
'https://api.wapim.io/api/v1/whatsapp/message/delete',
{
message_id: 'WHATSAPP_MESSAGE_ID'
},
{
headers: {
token: 'YOUR_WAPIM_TOKEN',
}
}
)
.then(response => console.log(response.data))
.catch(error => console.log(error.response.data))