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 associated with email marketing campaigns. Specifically, the "Get All for Campaign" operation under the Email Accounts resource retrieves all email accounts linked to a specified campaign.
This functionality is useful when you want to:
- Audit or review which email accounts are currently assigned to a particular campaign.
- Monitor or manage email accounts involved in a campaign’s outreach.
- Use the retrieved email account data as input for further automation steps, such as updating settings or analyzing performance.
Example use case:
You have an ongoing email marketing campaign and want to fetch all email accounts participating in it to check their status or prepare them for warmup adjustments.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign for which to retrieve all associated email accounts. This is a required string input. |
| Additional Fields | Optional parameters to refine the request (not applicable specifically for this operation). In general, these can include: - Limit: Number of results to return - Offset: Number of results to skip - Status: Campaign status filter (Active, Paused, Stopped) |
Note: For the "Get All for Campaign" operation on Email Accounts, only the Campaign ID is required and used.
Output
The output is a JSON array where each item represents an email account associated with the specified campaign. Each item contains details about an email account as returned by the SmartLead API's /campaigns/{campaignId}/email-accounts endpoint.
Typical fields in each email account object may include identifiers, email address, status, warmup settings, and other metadata related to the email account within the campaign context.
No binary data output is produced by 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 and valid campaign IDs are necessary to successfully retrieve email accounts.
Troubleshooting
- Invalid Campaign ID: If the provided 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.
- Authentication Errors: Ensure that the API key credential is correctly set up and has sufficient permissions.
- Empty Results: If no email accounts are returned, confirm that the campaign actually has email accounts assigned.
- Rate Limits or API Downtime: Network issues or API rate limits might cause failures; retry after some time or check API status.
Common error messages will be passed through from the API response and surfaced by the node. Handling errors gracefully by enabling "Continue On Fail" can help in workflows processing multiple items.
Links and References
- SmartLead API Documentation (Assumed based on base URL)
- n8n Documentation on HTTP Request Node (for understanding API calls)
- General info on email marketing campaign management best practices.