Actions74
- šÆ Campaign Management Actions
- š„ Lead Management Actions
- š§ Email Accounts Actions
- š Analytics & Stats Actions
- š Smart Delivery Actions
- Get Region Provider IDs
- Create Manual Placement Test
- Create Automated Placement Test
- Get Spam Test Details
- Delete Tests in Bulk
- Stop Automated Test
- List All Tests
- Get Provider Report
- Get Geo Report
- Get Sender Account Report
- Get Spam Filter Report
- Get DKIM Details
- Get SPF Details
- Get rDNS Report
- Get Sender Account List
- Get Blacklists
- Get Domain Blacklist
- Get Spam Test Email Content
- Get Email Reply Headers
- Get Schedule History
- Get IP Details
- Get Mailbox Summary
- Get Mailbox Count
- Get All Folders
- Create Folder
- Get Folder by ID
- Delete Folder
- š Webhooks Actions
- šØ Smart Senders 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.
- Synchronize or report on email account usage per campaign.
- Automate workflows that depend on fetching all email accounts tied to a campaign for further processing or analysis.
Example use case:
You have an ongoing email marketing campaign and want to fetch all email accounts involved in sending emails for that campaign to monitor their status or update settings programmatically.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign for which to retrieve all associated email accounts. |
| Additional Fields | Optional parameters to refine the request: |
| - Limit | Number of results to return (default 100). |
| - Offset | Number of results to skip (default 0). |
| - Status | Filter by campaign status; options are: Active, Paused, Stopped (default: Active). |
Output
The node outputs a JSON array containing the list of email accounts associated with the specified campaign. Each item in the array represents an email account object as returned by the SmartLead API's /campaigns/{campaignId}/email-accounts endpoint.
The output structure typically includes details such as email account identifiers, configuration, status, and other metadata related to each email account.
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/v1for API requests. - 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.
- API Authentication Errors: Ensure the API key credential is correctly set up and has sufficient permissions.
- Rate Limits or Network Issues: Temporary network failures or API rate limits may cause request failures. Retrying after some time or checking API usage limits can help.
- Invalid Additional Fields: Providing invalid values for limit, offset, or status may result in errors or unexpected results. Use the documented options only.
Common error messages thrown by the node include JSON parsing errors if input JSON fields are malformed (not applicable here since inputs are simple strings/numbers), or HTTP errors from the API which should be inspected for details.
Links and References
- SmartLead API Documentation (assumed official docs URL)
- n8n Documentation on Creating Custom Nodes
- General info on email marketing campaign management best practices
If you need summaries for other operations or resources, feel free to ask!