WhatsApi icon

WhatsApi

Connect with WhatApp HTTP API

Overview

This node connects to a WhatsApp HTTP API service to list groups associated with a specific phone session. It is useful for workflows that need to retrieve and process WhatsApp group information, such as managing group memberships, monitoring group activity, or integrating group data into other systems.

A practical example would be automating the retrieval of all WhatsApp groups linked to a particular phone number session to sync group details with a CRM or messaging platform.

Properties

Name Meaning
Phone Session id representing the phone number session to query groups for. This is required and typically set from stored credentials.

Output

The node outputs JSON data containing the list of WhatsApp groups retrieved from the API for the specified session. The exact structure depends on the API response but generally includes group identifiers, names, and possibly metadata about each group.

No binary data output is indicated.

Dependencies

  • Requires connection to a WhatsApp HTTP API service.
  • Needs an API URL and authentication credentials (such as an API key or token) configured in n8n credentials.
  • The sessionId property must correspond to a valid active WhatsApp session identifier.

Troubleshooting

  • Invalid or missing sessionId: Ensure the session ID provided matches an active WhatsApp session; otherwise, the API may return errors or empty results.
  • Authentication errors: Verify that the API credentials are correctly configured and have sufficient permissions.
  • API connectivity issues: Check network access to the WhatsApp API endpoint and confirm the base URL is correct.
  • Unexpected API responses: If the output JSON is empty or malformed, verify the API service status and the correctness of request parameters.

Links and References

  • WhatsApp HTTP API documentation (refer to your specific API provider)
  • n8n documentation on creating and using custom nodes and credentials

Discussion