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": "<string>",
    "fromMe": true,
    "id": "<string>"
  },
  "message": {
    "protocolMessage": {
      "key": {
        "remoteJid": "<string>",
        "fromMe": true,
        "id": "<string>"
      },
      "type": "<string>"
    }
  },
  "messageTimestamp": "<string>",
  "status": "<string>"
}
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