Chats
Delete Message
POST
/api/v1/chat/deleteDelete a message for everyone.
Parameters
- PhonestringRequired
The chat the message is in. For a group use the group id ending in @g.us.
- IdstringRequired
The id of the message to delete.
- SenderJIDstringOptional
Who sent the message. Leave it out for your own messages.
| Name | Type | Required | Description |
|---|---|---|---|
| Phone | string | Yes | The chat the message is in. For a group use the group id ending in @g.us. |
| Id | string | Yes | The id of the message to delete. |
| SenderJID | string | No | Who sent the message. Leave it out for your own messages. |
Code Examples
cURL
curl -X POST "https://orvachat.com/api/v1/chat/delete" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Phone": "923001234567",
"Id": "3EB0ABCDEF1234567890"
}'Response Example
200 OK
{
"code": 200,
"data": {
"Details": "Deleted",
"Id": "AABBCC11223344",
"Timestamp": 1700000000
},
"success": true
}