Actions74
- šÆ Campaign Management Actions
- š„ Lead Management Actions
- š§ Email Accounts Actions
- š Analytics & Stats Actions
- š Smart Delivery Actions
- Get Region Provider IDs
- Create Manual Placement Test
- Create Automated Placement Test
- Get Spam Test Details
- Delete Tests in Bulk
- Stop Automated Test
- List All Tests
- Get Provider Report
- Get Geo Report
- Get Sender Account Report
- Get Spam Filter Report
- Get DKIM Details
- Get SPF Details
- Get rDNS Report
- Get Sender Account List
- Get Blacklists
- Get Domain Blacklist
- Get Spam Test Email Content
- Get Email Reply Headers
- Get Schedule History
- Get IP Details
- Get Mailbox Summary
- Get Mailbox Count
- Get All Folders
- Create Folder
- Get Folder by ID
- Delete Folder
- š Webhooks Actions
- šØ Smart Senders 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 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 and all reports are collected, 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 | (Not applicable for Delete operation) |
Output
The output JSON contains the response data returned by the SmartLead API after attempting to delete the campaign. Typically, this will confirm whether the deletion was successful or provide error details if it failed.
The structure is generally:
{
"data": {
// API response fields confirming deletion status or error messages
}
}
No binary data is involved in this operation.
Dependencies
- Requires an active connection to the SmartLead API via an API key credential configured in n8n.
- The node uses the base URL
https://server.smartlead.ai/api/v1for campaign-related requests. - Proper permissions on the API key to delete campaigns are necessary.
Troubleshooting
- Invalid Campaign ID: If the provided Campaign ID does not exist or is malformed, the API will return an error. Verify the ID before running the node.
- Authentication Errors: Ensure the API key credential is valid and has permission to delete campaigns.
- Network Issues: Connectivity problems may cause request failures; check network access to the SmartLead API endpoint.
- API Rate Limits: Excessive requests might be throttled by the API; consider adding delays or retries.
Common error message example:
"error": "Campaign not found"ā means the specified Campaign ID does not exist."error": "Unauthorized"ā indicates invalid or insufficient API credentials.
Resolving these typically involves verifying input parameters and API credentials.
Links and References
- SmartLead API Documentation (general reference for API endpoints)
- n8n documentation on HTTP Request Node for understanding API calls
- SmartLead support or developer resources for detailed API usage and troubleshooting