WSAPI icon

WSAPI

Interact with WSAPI WhatsApp API

Overview

This node enables interaction with WhatsApp groups via the WSAPI WhatsApp API. Specifically, the "Delete Group" operation allows users to delete a WhatsApp group by providing its unique group identifier. This is useful for automating group management tasks such as cleaning up obsolete or inactive groups.

Practical examples include:

  • Automatically deleting groups that are no longer active.
  • Managing group lifecycle in customer support or community engagement workflows.
  • Integrating group deletion into broader automation pipelines involving WhatsApp communications.

Properties

Name Meaning
Group ID The unique identifier of the WhatsApp group to delete. Format: <group ID>@g.us (e.g., 120363123456789@g.us).

Output

The node outputs JSON data representing the result of the delete operation. Typically, this will confirm whether the group was successfully deleted or provide error information if the deletion failed.

If the operation returns binary data (not typical for delete operations), it would represent related media or files, but this is not expected here.

Dependencies

  • Requires an API key credential for authenticating with the WSAPI WhatsApp API.
  • The node depends on the WSAPI base URL configured in the credentials.
  • No additional external services are explicitly required beyond the WSAPI WhatsApp API.

Troubleshooting

  • Common issues:

    • Invalid or incorrectly formatted Group ID (must end with @g.us).
    • Insufficient permissions or invalid API credentials causing authorization errors.
    • Attempting to delete a group that does not exist or has already been deleted.
  • Error messages and resolutions:

    • "The resource "groups" is not known!": Indicates a misconfiguration of the resource parameter; ensure "Group" is selected.
    • "The operation "delete" is not implemented yet!": Suggests an internal issue or outdated node version; update the node or check implementation.
    • API errors returned from WSAPI (e.g., 404 Not Found, 401 Unauthorized) should be resolved by verifying the group ID and API credentials.

Links and References

  • WSAPI WhatsApp API Documentation (general reference for API endpoints)
  • WhatsApp official documentation on group management (for understanding group IDs and permissions)

Discussion