Actions37
- 🎯 Campaign Management Actions
- 👥 Lead Management Actions
- 📧 Email Accounts Actions
- 📊 Analytics & Stats Actions
Overview
This node integrates with the SmartLead API to manage email marketing campaigns. Specifically, the Delete operation under the 🎯 Campaign Management resource allows users to delete an existing email campaign by its unique ID.
Use cases include:
- Removing outdated or completed campaigns from your system.
- Cleaning up test or duplicate campaigns.
- Automating campaign lifecycle management by deleting campaigns programmatically after completion.
Example scenario: After a campaign has finished running and all relevant data has been exported or archived, you can use this node to delete the campaign automatically to keep your account organized.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign to delete. This is required to specify which campaign to remove. |
| Additional Fields | Optional parameters that can be used with other operations but are not applicable for Delete in this context. Includes options like Limit, Offset, and Status (Active, Paused, Stopped). |
Note: For the Delete operation, only the Campaign ID property is required and used.
Output
The output JSON contains the response from the SmartLead API after attempting to delete the specified campaign. Typically, this will be a confirmation of deletion or an error message if the operation failed.
The structure is generally:
{
"data": {
// API response details about the deletion status
}
}
No binary data is returned by this operation.
Dependencies
- Requires an active connection to the SmartLead API.
- An API authentication token or key credential must be configured in n8n to authorize requests.
- The base URL for API requests is
https://server.smartlead.ai/api/v1.
Troubleshooting
Common issues:
- Invalid or missing Campaign ID: The API will reject requests without a valid campaign identifier.
- Insufficient permissions: Ensure the API key has rights to delete campaigns.
- Network or connectivity problems: Verify internet access and API endpoint availability.
Error messages:
"Campaign not found": The provided Campaign ID does not exist; verify the ID."Unauthorized"or"Authentication failed": Check API credentials and permissions."Failed to delete campaign": Could indicate server-side issues or restrictions; retry or contact support.
To resolve errors, confirm the Campaign ID is correct, check API credentials, and ensure the SmartLead service is operational.
Links and References
- SmartLead API Documentation (Assumed based on base URL)
- n8n documentation on HTTP Request Node for understanding API calls
- General best practices for managing email campaigns and automation workflows