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
This node integrates with the SparkBot WhatsApp API to manage WhatsApp channels associated with specific WhatsApp numbers. The "Delete Channel" operation under the "Channels" resource allows users to remove a particular channel by its ID from a given WhatsApp number.
Typical use cases include:
- Cleaning up or removing obsolete or inactive communication channels linked to a WhatsApp number.
- Managing channel lifecycle programmatically within automated workflows.
- Ensuring that only relevant channels remain active for messaging or broadcasting purposes.
For example, if a user wants to delete a newsletter channel identified by a specific channel ID from their WhatsApp business account, this node operation facilitates that action seamlessly.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The identifier (ID) of the WhatsApp number/device from which the channel will be deleted. |
| Channel ID | The unique identifier of the channel to delete. Examples: 123000098765421000 or 123000098765421000@newsletter. |
Output
The output is a JSON object representing the result of the delete operation. Typically, it will contain confirmation details such as success status or any relevant metadata returned by the SparkBot API after deleting the channel.
No binary data output is expected from this operation.
Dependencies
- Requires an API key credential for authenticating with the SparkBot WhatsApp API.
- The node depends on the SparkBot service being accessible and properly configured.
- The "WhatsApp Number" must be valid and associated with the authenticated account.
- Proper permissions to delete channels on the specified WhatsApp number are necessary.
Troubleshooting
Common Issues:
- Invalid or missing WhatsApp Number or Channel ID parameters.
- Insufficient permissions or invalid API key leading to authorization errors.
- Attempting to delete a non-existent or already deleted channel.
- Network connectivity issues preventing access to the SparkBot API.
Error Messages & Resolutions:
"Channel not found": Verify the Channel ID is correct and exists under the specified WhatsApp Number."Unauthorized"or"Invalid API key": Check that the API key credential is correctly set up and has required permissions."Missing required parameter": Ensure both WhatsApp Number and Channel ID are provided.- Timeout or network errors: Confirm network connectivity and SparkBot API availability.
Links and References
- SparkBot WhatsApp API Documentation (general reference for API capabilities)
- n8n Documentation on Creating Custom Nodes
- Best practices for managing WhatsApp channels via APIs (refer to official WhatsApp Business API guides)