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 interacts with the SparkBot WhatsApp API to retrieve information about WhatsApp numbers associated with the user's account. Specifically, the "Get Numbers" operation under the "WhatsApp Numbers" resource allows users to fetch a list of WhatsApp numbers filtered by various criteria such as IDs, status, session status, or search terms. This is useful for managing and monitoring multiple WhatsApp numbers in automation workflows.
Common scenarios:
- Fetching all operative WhatsApp numbers to send messages or perform further actions.
- Filtering numbers by session status (e.g., online or offline) to determine availability.
- Searching for specific numbers by phone number, alias, or ID.
- Paginating through large sets of WhatsApp numbers for batch processing.
Practical example:
A customer support team uses this node to get all currently operative WhatsApp numbers that are online, then routes incoming messages accordingly or triggers notifications if any number goes offline.
Properties
| Name | Meaning |
|---|---|
| Filters | A collection of filters to narrow down the WhatsApp numbers returned: |
| - WhatsApp Number IDs | Filter by specific WhatsApp number IDs (multiple values allowed). |
| - Status | Filter by the status of the WhatsApp numbers. Options: Operative, Pending, Disabled, Removed. |
| - Session Status | Filter by the session status of the WhatsApp numbers. Options: Authorize, Online, Timeout, Offline, Error. |
| - Search Term | Search WhatsApp numbers by phone number, alias, or ID using a text string. |
| - Results Page Size | Number of results to return per page (default 50). |
| - Page Number | The page number to retrieve, starting from 0 (default 0). |
Output
The node outputs an array of JSON objects representing WhatsApp numbers matching the specified filters. Each object contains details about a WhatsApp number such as its ID, phone number, alias, status, session status, and other metadata provided by the SparkBot API.
If binary data were involved (not applicable here), it would be summarized accordingly, but this operation returns only JSON data.
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.
- No additional environment variables are explicitly required beyond the API key credential.
Troubleshooting
Common issues:
- Incorrect or missing API key credential will cause authentication failures.
- Using invalid filter values (e.g., unsupported status or session status) may result in empty responses or errors.
- Pagination parameters out of range might lead to no results returned.
Error messages:
- Authentication errors typically indicate invalid or expired API keys; recheck and update credentials.
- Validation errors on filters suggest checking the allowed options for status and session status.
- Network or API downtime errors require verifying connectivity and SparkBot service status.
Links and References
- SparkBot WhatsApp API Documentation (example placeholder link)
- n8n documentation on Creating Custom Nodes
- General info on WhatsApp Business API usage and management