PAPI WhatsApp icon

PAPI WhatsApp

Interaja com a PAPI WhatsApp API

Mensagem → Deletar Mensagem

AI-generated

Summary

Delete a specific WhatsApp message from a given instance and recipient using message ID and sender information.

Inputs

  • ID da Instância (required) — ID of the WhatsApp instance from which to delete the message.
  • Número/JID (required) — Recipient's phone number with country code or group JID.
  • ID da Mensagem (required) — ID of the message to delete.
  • Mensagem Própria — Boolean flag indicating whether the message was sent by you (defaults to true).

Output shape

a single JSON object representing the API response to the delete operation

The operation returns the raw API response JSON from the PAPI WhatsApp endpoint for deleting a message. Handle errors as raised by the API, such as authorization issues or resource not found.

Examples

Example 1: Deleting a message you sent to a specific recipient

Provide the instance ID, recipient number/JID, message ID of your own message, and leave 'Mensagem Própria' as true.

Example 2: Deleting a message received from another user

Provide the instance ID, recipient number/JID, message ID, and set 'Mensagem Própria' to false.

Discussion