SmartLead

Comprehensive SmartLead API integration for email marketing automation

Overview

This node integrates with the SmartLead API to manage email accounts within email marketing campaigns. Specifically, the "Remove from Campaign" operation under the "📧 Email Accounts" resource allows users to remove an email account from a specified campaign. This is useful for managing which email accounts are actively participating in particular campaigns, such as when an account should no longer send emails for a campaign or needs to be reassigned.

Practical examples include:

  • Removing an email account that is no longer valid or has deliverability issues from a campaign.
  • Managing campaign resources by dynamically adjusting which email accounts are assigned.
  • Automating cleanup of email accounts from campaigns after certain conditions are met.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign from which the email account will be removed.
Additional Fields (Not applicable for this operation)

Output

The output JSON contains the response data returned by the SmartLead API after attempting to remove the email account from the campaign. Typically, this will confirm success or provide details about the removal operation. The exact structure depends on the API response but generally includes status and possibly metadata about the updated campaign-email account relationship.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the SmartLead API.
  • The node makes HTTP requests to https://server.smartlead.ai/api/v1.
  • Proper configuration of the API authentication credential in n8n is necessary.

Troubleshooting

  • Common Issues:

    • Invalid or missing Campaign ID or Email Account ID parameters will cause the API request to fail.
    • Network connectivity issues can prevent successful communication with the SmartLead API.
    • Insufficient permissions or invalid API credentials may result in authorization errors.
  • Error Messages:

    • Errors returned from the API will be surfaced, typically indicating issues like "Not Found" if the campaign or email account does not exist, or "Unauthorized" if credentials are invalid.
    • If the node is set to continue on failure, error details will be included in the output JSON for each failed item.
  • Resolution Tips:

    • Verify that the Campaign ID and Email Account ID are correct and correspond to existing entities.
    • Ensure the API key credential is valid and has appropriate permissions.
    • Check network connectivity and firewall settings.
    • Use the node's "continue on fail" option to handle partial failures gracefully.

Links and References

  • SmartLead API Documentation (Assumed URL based on baseURL; verify actual docs location)
  • n8n Documentation on HTTP Request Node (for understanding underlying request mechanics)
  • General best practices for managing email campaigns and accounts in marketing automation tools.

Discussion