Actions37
- 🎯 Campaign Management Actions
- 👥 Lead Management Actions
- 📧 Email Accounts Actions
- 📊 Analytics & Stats Actions
Overview
This node integrates with the SmartLead API to manage email accounts within email marketing campaigns. Specifically, the Add to Campaign operation under the Email Accounts resource allows users to add an existing email account to a specified campaign. This is useful for automating the assignment of email accounts to campaigns, enabling streamlined campaign management and execution.
Practical examples include:
- Automatically adding newly created or imported email accounts to active campaigns.
- Managing which email accounts participate in specific campaigns without manual intervention.
- Scaling campaign reach by programmatically associating multiple email accounts.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign to which the email account will be added. |
| Additional Fields | Optional parameters including: • Limit: Number of results to return (default 100) • Offset: Number of results to skip (default 0) • Status: Campaign status filter with options Active, Paused, Stopped (default Active) |
Output
The node outputs JSON data representing the response from the SmartLead API after attempting to add the email account to the campaign. The structure typically includes details about the updated campaign-email account association or confirmation of the addition.
If the operation fails, the output may contain an error message describing the issue.
No binary data output 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. - Proper permissions on the API key are necessary to modify email accounts and campaigns.
Troubleshooting
Common issues:
- Invalid or missing Campaign ID or Email Account ID can cause failures.
- Insufficient API permissions may result in authorization errors.
- Network connectivity problems can prevent successful API calls.
Error messages:
"error": "Campaign not found"— Verify the Campaign ID is correct and exists."error": "Email account not found"— Check that the Email Account ID is valid."error": "Unauthorized"— Ensure the API key credential has proper access rights.
Resolutions:
- Double-check input property values for correctness.
- Confirm API credentials and permissions.
- Retry after network issues are resolved.
Links and References
- SmartLead API Documentation (hypothetical link based on base URL)
- n8n Documentation on HTTP Request Node (for understanding API integration basics)