WaAPI icon

WaAPI

Interact with WaAPI API

Actions85

Overview

This node interacts with the WaAPI API to retrieve chat labels associated with a specific chat instance. It is useful in scenarios where you want to organize, filter, or analyze chats based on their assigned labels. For example, you might use it to fetch all labels for a customer support chat to understand its categorization or priority.

Properties

Name Meaning
Id The numeric identifier of the WaAPI instance to connect to.
Chat Id The unique identifier of the chat whose labels you want to retrieve (e.g., <xxxxx>@c.us).

Output

The node outputs JSON data containing the labels associated with the specified chat. The exact structure depends on the API response but typically includes label names, IDs, and possibly metadata about each label. There is no indication that binary data is output by this node.

Dependencies

  • Requires an active connection to the WaAPI API service.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The base URL for the API is https://waapi.app/api/v1.
  • The node uses standard HTTP headers for JSON content negotiation.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication errors.
    • Providing an incorrect or non-existent chat ID may result in empty results or error responses.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • Authentication failures usually indicate invalid or expired API tokens; reconfigure credentials.
    • "Chat not found" or similar errors suggest verifying the chat ID format and existence.
    • Timeout or network errors require checking internet access and API availability.

Links and References

Discussion