Actions39
- Campaign Actions
- Campaign Statistic Actions
- Client Actions
- Email Account Actions
- Lead Actions
- Master Inbox Actions
- Webhook Actions
Overview
This node interacts with the Smartlead.ai API to manage campaigns and related entities. Specifically, the Delete Campaign operation allows users to delete an existing campaign by its ID. This is useful for cleaning up or removing campaigns that are no longer needed.
Typical use cases include:
- Automating campaign lifecycle management by deleting outdated or completed campaigns.
- Integrating campaign deletion into workflows triggered by external events or conditions.
- Maintaining a clean and organized campaign list in Smartlead.ai by programmatically removing unwanted campaigns.
Example: You have a campaign that has finished running and you want to remove it automatically from Smartlead.ai when certain criteria are met in your workflow. Using this node's Delete Campaign operation, you provide the campaign ID, and the campaign is deleted via the API.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign to delete. This is a required string input property. |
Output
The output JSON contains the response from the Smartlead.ai API after attempting to delete the specified campaign. Typically, this will be a confirmation object indicating success or failure of the deletion request.
The structure depends on the API but generally includes status information or details about the deleted campaign.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the Smartlead.ai API.
- Requires an API authentication token credential configured in n8n (referred generically as "an API key credential").
- The base URL used for requests is
https://server.smartlead.ai/api/v1.
Troubleshooting
Common issues:
- Providing an invalid or non-existent Campaign ID will likely result in an error response from the API.
- Network connectivity problems can cause request failures.
- Missing or incorrect API credentials will prevent successful authentication.
Error messages:
- Errors returned by the API typically include messages indicating why the deletion failed (e.g., "Campaign not found", "Unauthorized").
- If the node throws an authentication error, verify that the API key credential is correctly set up.
- For network errors, check internet connectivity and API endpoint availability.
Resolution tips:
- Double-check the Campaign ID value before running the node.
- Ensure the API key credential has sufficient permissions to delete campaigns.
- Use the node’s "Continue On Fail" option if you want the workflow to proceed despite deletion errors.
Links and References
- Smartlead.ai API Documentation (general reference for API endpoints and usage)
- n8n documentation on API Credentials for setting up authentication tokens