Actions148
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
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
- SparkBot WhatsApp API Documentation (example placeholder, replace with actual URL if known)
- n8n documentation on creating custom nodes and using credentials: https://docs.n8n.io/
- WhatsApp Group Management best practices: https://faq.whatsapp.com/
This summary focuses on the "Groups" resource and the "Revoke Invite Code" operation as requested.