WhatsApi icon

WhatsApi

Connect with WhatApp HTTP API

Overview

This node allows users to leave a WhatsApp group by specifying the group identifier. It is useful in scenarios where automated workflows need to manage group memberships, such as removing a bot or user from a group after certain conditions are met, or cleaning up group participations programmatically.

For example, a workflow could automatically remove a user from a promotional group once a campaign ends, or a support bot could leave a customer group after resolving an issue.

Properties

Name Meaning
Phone Session ID representing the WhatsApp phone session to use for the API call. Typically linked to the user's authenticated session.
To The unique identifier (Jid) of the WhatsApp group to leave. Format example: [email protected].

Output

The node outputs JSON data representing the response from the WhatsApp HTTP API after attempting to leave the specified group. This typically includes status information about the operation's success or failure.

No binary data output is involved.

Dependencies

  • Requires an active WhatsApp HTTP API service endpoint.
  • Needs an API key or authentication token configured in the node credentials to authorize requests.
  • The base URL for the WhatsApp API must be set in the node credentials.
  • The node uses the @devlikeapro/n8n-openapi-node package internally to build and send requests based on the OpenAPI specification.

Troubleshooting

  • Invalid Session ID: If the session ID is incorrect or expired, the API will reject the request. Ensure the session ID corresponds to a valid, active WhatsApp session.
  • Incorrect Group Jid: Providing an invalid or malformed group Jid will cause the API to fail. Verify the group identifier format matches WhatsApp's expected pattern.
  • Authentication Errors: Missing or invalid API credentials will result in authorization failures. Confirm that the API key/token and base URL are correctly configured.
  • Network Issues: Connectivity problems with the WhatsApp API endpoint can cause timeouts or errors. Check network access and endpoint availability.

Links and References

Discussion