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, specifically providing operations related to managing webhooks. The "Get Webhook Logs" operation retrieves log entries for a specified webhook, allowing users to monitor and audit webhook activity.
Common scenarios where this node is beneficial include:
- Debugging webhook events by reviewing recent logs.
- Auditing webhook calls to ensure expected behavior.
- Monitoring webhook usage and troubleshooting issues in integrations.
For example, a user can specify a webhook ID and retrieve the last 20 log entries to see what data was sent or received through that webhook.
Properties
| Name | Meaning |
|---|---|
| Webhook ID | The unique identifier of the webhook for which to retrieve logs. |
| Options | Additional parameters to control the log retrieval: |
| - Maximum Entries (size) | The maximum number of log entries to retrieve (default is 20). |
| - Skip Entries (skip) | The number of log entries to skip from the start (default is 0). |
Output
The output contains a JSON array of webhook log entries corresponding to the specified webhook ID. Each entry typically includes details such as timestamps, event data, status, and any relevant metadata about the webhook invocation.
If the node supports binary data output (not explicitly shown here), it would represent raw payloads or attachments related to webhook events.
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.
- No additional environment variables are explicitly required beyond the API key credential.
Troubleshooting
Common Issues:
- Invalid or missing webhook ID will cause errors or empty results.
- Network connectivity problems may prevent retrieving logs.
- Exceeding API rate limits could result in temporary failures.
Error Messages:
- Errors indicating authentication failure suggest checking the API key credential.
- Errors about invalid parameters usually mean the webhook ID or options are incorrect.
- Timeout or network errors require verifying internet connection and API availability.
To resolve these issues, verify the webhook ID is correct, ensure the API key is valid and has necessary permissions, and check network connectivity.
Links and References
- SparkBot WhatsApp API Documentation (general reference for API capabilities)
- n8n documentation on creating custom nodes (for extending or debugging nodes)