WaAPI icon

WaAPI

Interact with WaAPI API

Actions85

Overview

This node interacts with the WaAPI API to delete a specific 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 irrelevant conversations, 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 to delete each chat by its ID automatically.

Properties

Name Meaning
Id Instance ID (a required number identifying the instance)
Chat Id The unique identifier of the chat to delete, formatted like <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 sends requests to https://waapi.app/api/v1.
  • Proper configuration of the API key credential within n8n is necessary for successful operation.

Troubleshooting

  • Common issues:

    • Invalid or missing chat ID format may cause the API to reject the request.
    • Incorrect or expired API key will result in authentication errors.
    • Network connectivity problems can prevent reaching the WaAPI endpoint.
  • Error messages:

    • Authentication failures usually indicate issues with the API key; verify and update credentials.
    • "Chat not found" errors suggest the provided chat ID does not exist or was already deleted.
    • Validation errors may occur if required properties like Id or Chat Id are missing or malformed.

Resolving these typically involves verifying input values, ensuring valid credentials, and checking network access.

Links and References

Discussion