SparkBot icon

SparkBot

Interact with SparkBot WhatsApp API

Actions148

Overview

This node interacts with the SparkBot WhatsApp API to perform various operations related to WhatsApp messaging and team management. Specifically, for the Team resource and the Get Device Team Members operation, it retrieves the list of team members associated with a particular WhatsApp number (device). This is useful in scenarios where you want to manage or audit which users have access to a specific WhatsApp device within your organization.

Practical examples:

  • Fetching all team members who can send messages from a given WhatsApp number.
  • Auditing user permissions on WhatsApp devices before granting or revoking access.
  • Integrating team member data into workflows that automate user management or reporting.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) for which to get the associated team members. This is selected from a list of available WhatsApp numbers loaded dynamically.

Output

The output is a JSON object containing the details of the team members associated with the specified WhatsApp number. Each item in the output array represents a team member with their relevant information as returned by the SparkBot API.

If the node supports binary data output (not indicated here), it would typically represent files or media related to the team members, but this operation focuses on JSON data about users.

Dependencies

  • Requires an API key credential for authenticating with the SparkBot WhatsApp API.
  • The node depends on the SparkBot API service being accessible and properly configured.
  • The "WhatsApp Number" property dynamically loads options via an internal method (getDevices), which requires connectivity to the API to fetch available devices.

Troubleshooting

  • Common issues:

    • Invalid or missing API key credential will cause authentication failures.
    • Specifying a WhatsApp number that does not exist or is not linked to the account will result in errors or empty results.
    • Network connectivity problems may prevent loading WhatsApp numbers or retrieving team members.
  • Error messages:

    • Authentication errors: Check that the API key credential is correctly set up and has necessary permissions.
    • "Device not found" or similar: Verify the WhatsApp number ID is correct and active.
    • Timeout or network errors: Ensure stable internet connection and that the SparkBot API endpoint is reachable.

Links and References

Discussion