Smartlead icon

Smartlead

Interact with the Smartlead.ai API

Overview

This node integrates with the Smartlead.ai API to manage campaigns and their associated email accounts, leads, sequences, and statistics. Specifically, the "Add Email Account" operation under the Campaign resource allows users to associate one or more email accounts with a given campaign. This is useful for scenarios where multiple email accounts are used to send outreach emails within a single campaign, enabling better management and distribution of sending load.

Practical example:
A marketing team running an email outreach campaign wants to add several email accounts to the campaign so that emails can be sent from different addresses to improve deliverability and avoid spam filters. Using this node operation, they can specify the campaign ID and a list of email account IDs to link those accounts to the campaign.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign to which email accounts will be added.
Email Account IDs A comma-separated list of email account IDs to add to the specified campaign.

Output

The output JSON contains the response from the Smartlead.ai API after attempting to add the specified email accounts to the campaign. Typically, this will include confirmation details such as the updated list of email accounts linked to the campaign or status information about the operation.

No binary data is produced by this operation.

Dependencies

  • Requires an active connection to the Smartlead.ai API.
  • Requires an API authentication token configured in n8n credentials (referred generically as "an API key credential").
  • The base URL for API requests is https://server.smartlead.ai/api/v1.

Troubleshooting

  • Invalid Campaign ID: If the campaign ID does not exist or is incorrect, the API will likely return an error indicating the campaign was not found. Verify the campaign ID before running the node.
  • Invalid Email Account IDs: Ensure the email account IDs are valid integers and correspond to existing email accounts in Smartlead.ai. Incorrect IDs may cause the API to reject the request.
  • Malformed Email Account IDs Input: The property expects a comma-separated string of IDs. Extra spaces or invalid characters could cause parsing errors. Make sure the input format is correct (e.g., "2907, 2908").
  • API Authentication Errors: If the API key credential is missing or invalid, the node will fail to authenticate. Confirm that the API key is correctly set up in n8n.
  • Network Issues: Connectivity problems with the Smartlead.ai server will cause request failures. Check network access and Smartlead.ai service status.

Links and References

Discussion