WAHA API icon

WAHA API

Complete WhatsApp automation with WAHA API - Multi-engine support

Overview

This node integrates with the WAHA API to manage WhatsApp groups and other WhatsApp-related resources. Specifically, the "Revoke Group Invite Code" operation under the "Group" resource allows users to revoke an existing invite code for a WhatsApp group. This is useful when you want to invalidate a previously shared invite link to prevent new members from joining via that link.

Common scenarios include:

  • Securing a group by revoking old invite links after sharing them temporarily.
  • Managing group membership access dynamically.
  • Automating group administration tasks in workflows.

Example: Automatically revoke a group's invite code after a certain event or time period to control group access.

Properties

Name Meaning
Session Name The name of the WhatsApp session to use (defaults to a configured default session).
Chat ID The WhatsApp group chat ID where the invite code will be revoked (e.g., groupid@g.us).
Additional Fields A collection of optional fields; not specifically used for this operation but available generally.

Note: For this operation, only "Session Name" and "Chat ID" are required inputs.

Output

The output JSON contains the response from the WAHA API after revoking the group invite code. It typically includes confirmation details about the revocation status.

Example output structure:

{
  "success": true,
  "message": "Group invite code revoked successfully",
  "data": {
    "groupId": "groupid@g.us",
    "revokedAt": "2024-06-01T12:00:00Z"
  }
}

No binary data is involved in this operation.

Dependencies

  • Requires an active WAHA API credential with a valid API key and base URL.
  • Optionally uses an additional API key credential for N8N Tools API validation.
  • The node requires proper configuration of WhatsApp sessions within WAHA.
  • Network access to the WAHA API endpoint is necessary.

Troubleshooting

  • Invalid Credentials: If the API key or session name is incorrect, the node will throw authentication errors. Verify credentials and session names.
  • Unknown Group or Chat ID: Providing an invalid or non-existent group chat ID will cause errors. Ensure the group ID is correct and the session has access.
  • API Validation Failures: Errors related to the N8N Tools API subscription or key may occur. Check your subscription status and API keys.
  • Operation Not Supported: If the operation name is misspelled or unsupported, the node throws an error indicating an unknown operation.
  • Network Issues: Connectivity problems to the WAHA API endpoint can cause request failures.

Links and References

Discussion