Skip to main content
DELETE
/
{instance}
/
delete-message
cURL
curl --request DELETE \
  --url https://app.hypersender.com/api/whatsapp/v1/{instance}/delete-message \
  --header 'Authorization: Bearer <token>'
{
"key": {
"remoteJid": "[email protected]",
"fromMe": true,
"id": "3EB0E474C76F33528463B1"
},
"message": {
"protocolMessage": {
"key": {
"remoteJid": "[email protected]",
"fromMe": true,
"id": "3EB05B8C1E491431AEAA9A"
},
"type": "REVOKE"
}
},
"messageTimestamp": "1749413855",
"status": "PENDING"
}
You can delete messages from the chat. so if you want to delete a message from a specific chat pass the chatId and messageId in the query parameters. chatId - The unique identifier for the chat (e.g., [email protected]) messageId - The unique identifier for the message (e.g., [email protected]_3EB081B845A6A6E3991180)
Delete Message

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept
string

application/json

Example:

"application/json"

Content-Type
string

application/json

Example:

"application/json"

Path Parameters

instance
string
required

Instance UUID copied from hypersender dashboard

Example:

"{{ instance_id }}"

Query Parameters

chatId
string
required

Contact number - learn what is chatId

messageId
string
required

ID of the message to delete

Response

Successful response

key
object
message
object
messageTimestamp
string
status
string
I