SparkBot icon

SparkBot

Interact with SparkBot WhatsApp API

Actions148

Overview

The node interacts with the SparkBot WhatsApp API, specifically allowing management of WhatsApp groups. The "Revoke Invite Code" operation under the "Groups" resource enables users to invalidate an existing invite code for a specified WhatsApp group. This is useful when you want to prevent further users from joining a group via a previously shared invite link, enhancing group security and control.

Practical scenarios include:

  • Revoking access after an event or campaign ends.
  • Preventing unauthorized users from joining a private group.
  • Managing group membership dynamically by controlling invite codes.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which the group is managed.
Group ID The unique identifier of the WhatsApp group whose invite code will be revoked.

Output

The node outputs a JSON object representing the result of the revoke invite code operation. Typically, this includes confirmation that the invite code was successfully revoked or details about the updated group state. The exact structure depends on the API response but generally confirms the action's success.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the SparkBot WhatsApp API.
  • The node depends on the SparkBot WhatsApp API service being accessible.
  • Proper configuration of the WhatsApp number (device) and group identifiers is necessary.
  • The node uses internal methods to load available devices and groups dynamically.

Troubleshooting

  • Common issues:
    • Invalid or expired API key leading to authentication errors.
    • Incorrect WhatsApp number or group ID causing "not found" errors.
    • Network connectivity problems preventing API calls.
  • Error messages:
    • Errors indicating missing or invalid parameters suggest checking the input properties.
    • Permission-related errors may require verifying that the WhatsApp number has rights to manage the group.
  • Resolutions:
    • Ensure the API key is valid and has required permissions.
    • Verify that the WhatsApp number and group ID are correct and active.
    • Check network settings and API endpoint accessibility.

Links and References


This summary focuses on the "Groups" resource and the "Revoke Invite Code" operation as requested.

Discussion