WaAPI icon

WaAPI

Interact with WaAPI API

Actions83

Overview

This node interacts with the WaAPI API to delete a chat by its identifier. It is useful in scenarios where you need to programmatically remove chat instances from the system, such as cleaning up old or inactive chats, managing chat data lifecycle, or automating chat management workflows.

For example, if you have a list of chat IDs that are no longer needed, this node can be used within an automation workflow to delete those chats automatically without manual intervention.

Properties

Name Meaning
Id Instance ID (a required number)
Chat Id The unique identifier of the chat to delete (string, e.g., <xxxxx>@c.us)

Output

The node outputs JSON data representing the response from the WaAPI API after attempting to delete the specified chat. This typically includes confirmation of deletion or error details if the operation failed.

No binary data output is expected from this node.

Dependencies

  • Requires an API key credential for authenticating with the WaAPI API.
  • The node uses the base URL https://waapi.app/api/v1 for API requests.
  • Proper configuration of the API authentication credential in n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing chat ID may cause the API to reject the request.
    • Authentication failures due to incorrect or expired API keys.
    • Network connectivity problems preventing access to the WaAPI endpoint.
  • Error messages:

    • Errors related to authorization usually indicate issues with the API key; verify and update credentials.
    • "Chat not found" or similar errors suggest the provided chat ID does not exist or was already deleted.
    • Timeout or connection errors require checking network settings and API availability.

Links and References

Discussion