Actions39
- Campaign Actions
- Campaign Statistic Actions
- Client Actions
- Email Account Actions
- Lead Actions
- Master Inbox Actions
- Webhook Actions
Overview
This node integrates with the Smartlead.ai API to manage various aspects of marketing campaigns, leads, email accounts, webhooks, and related data. Specifically, for the Webhook - Delete operation, it allows users to delete a webhook associated with a particular campaign.
Use cases include:
- Removing outdated or no longer needed webhooks from a campaign.
- Cleaning up webhook configurations when campaigns are modified or retired.
- Managing integrations that rely on webhooks by programmatically deleting them via n8n workflows.
Example scenario: You have a campaign with several webhooks configured to trigger external processes. When a webhook is deprecated, you can use this node operation to delete it automatically based on its ID and campaign association.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign to which the webhook belongs. |
| Webhook ID | The numeric ID of the webhook to be deleted from the specified campaign. |
Output
The node outputs the JSON response returned by the Smartlead.ai API after attempting to delete the webhook. This typically includes confirmation of deletion or error details if the operation failed.
The output JSON structure corresponds to the API's response format for webhook deletion, which may contain status messages or metadata about the deleted webhook.
No binary data output is produced by this operation.
Dependencies
- Requires an active API key credential for Smartlead.ai configured in n8n.
- The node makes authenticated HTTP requests to
https://server.smartlead.ai/api/v1. - Proper permissions on the API key to delete webhooks within campaigns are necessary.
Troubleshooting
Common issues:
- Invalid or missing Campaign ID or Webhook ID parameters will cause the API request to fail.
- Insufficient API permissions may result in authorization errors.
- Network connectivity problems can prevent successful API calls.
Error messages:
"404 Not Found": The specified webhook or campaign does not exist. Verify IDs."401 Unauthorized": Authentication failure; check API key validity."400 Bad Request": Malformed request, possibly due to incorrect parameter types or missing required fields.
Resolution tips:
- Double-check that the Campaign ID and Webhook ID are correct and correspond to existing resources.
- Ensure the API key used has the necessary rights to perform deletions.
- Review network settings and retry if transient errors occur.
Links and References
- Smartlead.ai API Documentation (for detailed API endpoints and payloads)
- n8n Documentation (for general usage of custom nodes and credentials)