WaAPI icon

WaAPI

Interact with WaAPI API

Actions85

Overview

This node interacts with the WaAPI API to retrieve information about WhatsApp contacts. Specifically, the "Get Common Groups" operation under the "Contact" resource fetches the groups that a particular contact shares in common. This is useful for scenarios where you want to analyze or manage group memberships of contacts, such as targeting messages to groups where both the user and the contact are members.

Practical examples include:

  • Identifying mutual WhatsApp groups between the user and a contact to tailor communication.
  • Managing group-based marketing campaigns by understanding shared group memberships.
  • Automating workflows that depend on group membership overlap.

Properties

Name Meaning
Id Instance ID (a numeric identifier for the instance of the API or service).
Contact Id The WhatsApp ID of the contact whose common groups you want to retrieve (e.g., "1234567890@c.us").

Output

The node outputs JSON data containing the list of common WhatsApp groups shared with the specified contact. The exact structure depends on the API response but typically includes group identifiers, names, and possibly metadata about each group.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active connection to the WaAPI API service.
  • Needs an API key credential configured in n8n to authenticate requests to WaAPI.
  • The base URL for API requests 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 failures.
    • Providing an incorrect or malformed Contact Id may result in no data or errors.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • Authentication errors usually indicate invalid or expired API keys; verify and update credentials.
    • "Contact not found" or empty results suggest the Contact Id does not exist or has no common groups.
    • Timeout or network errors require checking internet connectivity and API service status.

Links and References

Discussion