SmartLead icon

SmartLead

Comprehensive SmartLead API integration for email marketing automation

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/v1 for 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

Discussion