WhatsApi icon

WhatsApi

Connect with WhatApp HTTP API

Overview

This node integrates with a WhatsApp HTTP API to perform messaging operations. Specifically, the "Delete Message Only Me" operation under the "Messages" resource allows a user to delete a message from their own view or chat history without affecting the recipient's copy. This is useful when you want to remove sensitive or unwanted messages from your device while keeping the conversation intact for others.

Practical examples include:

  • Removing mistakenly sent messages from your chat history.
  • Cleaning up personal chat logs without disturbing other participants.
  • Managing message visibility on your side in group or individual chats.

Properties

Name Meaning
Phone The phone number or session identifier used to authenticate and specify the WhatsApp session. Defaults to the phone number stored in credentials.

Output

The node outputs JSON data representing the result of the delete message request. This typically includes confirmation of the deletion status or any error messages returned by the WhatsApp API. There is no indication that binary data is output by this node.

Dependencies

  • Requires connection to a WhatsApp HTTP API service.
  • Needs an API authentication token or key configured as credentials within n8n.
  • The base URL for the WhatsApp API must be set in the node’s credential configuration.
  • The node uses standard HTTP headers for JSON content negotiation.

Troubleshooting

  • Common issues:

    • Invalid or missing phone/session ID can cause authentication failures.
    • Network connectivity problems may prevent reaching the WhatsApp API endpoint.
    • Insufficient permissions or incorrect API keys will result in authorization errors.
    • Trying to delete a message that does not exist or is already deleted might return an error.
  • Error messages:

    • Authentication errors: Check that the API key/token and phone/session ID are correctly configured.
    • 404 Not Found: Verify the message ID and ensure it exists in your chat history.
    • 400 Bad Request: Confirm that all required parameters are provided and valid.
    • 500 Internal Server Error: Retry later or check the WhatsApp API service status.

Links and References

Discussion