UazAPI icon

UazAPI

Integração completa com UazAPI - 90+ endpoints para automação WhatsApp

Overview

The "Leave Group" operation in the Group resource allows a user to make the connected WhatsApp instance leave a specified WhatsApp group. This is useful for automating group management tasks, such as exiting groups that are no longer relevant or needed without manual intervention.

Practical examples include:

  • Automatically leaving groups after a campaign or event ends.
  • Exiting groups based on certain triggers or workflows in n8n.
  • Managing group memberships programmatically to keep the WhatsApp instance's group list clean.

Properties

Name Meaning
Group JID The unique identifier (JID) of the WhatsApp group to leave. It typically looks like a number followed by @g.us, e.g., 120363308883996631@g.us.

Output

The node outputs a JSON object containing the response from the API after attempting to leave the group. This response typically includes status information about the leave operation, such as success confirmation or error details.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the UazAPI service with valid credentials including an API base URL and authentication tokens.
  • The node uses HTTP requests authenticated via these credentials to communicate with the UazAPI endpoints.
  • Proper configuration of the API key credential and base URL in n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or missing Group JID: Ensure the Group JID is correctly provided and corresponds to a group the WhatsApp instance is part of.
    • Authentication errors: Verify that the API credentials are correctly set up and have not expired.
    • Network or connectivity problems: Check network access to the UazAPI service endpoint.
  • Error messages:

    • Errors returned from the API will be included in the node output under an error field if the node is configured to continue on failure.
    • Typical errors might indicate invalid group ID, permission issues, or API rate limits.
  • Resolution tips:

    • Double-check the Group JID format and existence.
    • Confirm API credentials and permissions.
    • Review API usage limits and retry policies.

Links and References

  • UazAPI Documentation (hypothetical link, replace with actual if available)
  • WhatsApp Group JID format explanation: Groups use JIDs ending with @g.us.
  • n8n HTTP Request Node documentation for understanding authenticated API calls.

Discussion