OneSender icon

OneSender

Send WhatsApp messages via OneSender API

Actions7

Overview

This node integrates with the OneSender API to manage WhatsApp messages. Specifically, for the Message Management resource and Delete Messages operation, it allows users to delete one or more WhatsApp messages by specifying their message IDs.

Common scenarios where this node is beneficial include:

  • Automatically cleaning up or retracting sent messages based on business logic.
  • Managing message lifecycle in bulk by deleting multiple messages at once.
  • Integrating message deletion into automated workflows for compliance or error correction.

For example, a user can provide a comma-separated list of message IDs that need to be deleted from the WhatsApp account managed via OneSender, and the node will send a request to delete those messages.

Properties

Name Meaning
Message IDs Comma-separated list of WhatsApp message IDs to delete (e.g., id1,id2,id3). Required.

Output

The node outputs a JSON array where each element corresponds to the response from the OneSender API for the delete request. The structure depends on the API's response but generally includes confirmation of deletion or details about the deleted messages.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the OneSender API.
  • Needs an API key credential configured in n8n for authentication.
  • The node uses the base URL and API key from the provided credentials to make HTTP requests.

Troubleshooting

  • Error: Invalid or missing message IDs
    Ensure that the "Message IDs" property is correctly filled with valid, comma-separated message IDs. Empty or malformed IDs will cause the API to reject the request.

  • Error: Authentication failed
    Verify that the API key credential is correctly set up and has the necessary permissions to delete messages.

  • Error: Network or API errors
    Check network connectivity and OneSender service status. Also, confirm that the base URL in the credentials is correct.

  • Partial failures when deleting multiple messages
    If some message IDs are invalid or already deleted, the API might return partial success. Review the output JSON for detailed error messages per message ID.

Links and References

Discussion