Overview
This node interacts with the SmartLead API to manage email marketing campaigns and leads. Specifically, for the Campaign - Get operation, it retrieves detailed information about a single campaign by its unique ID. This is useful when you want to fetch specific campaign data such as status, performance metrics, or configuration details.
Practical examples include:
- Fetching a campaign's details before updating or analyzing it.
- Integrating campaign data into reports or dashboards.
- Triggering workflows based on campaign attributes or status.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign to retrieve. This must be provided to fetch the specific campaign's details. |
Output
The node outputs an array of JSON objects representing the retrieved campaign data. Each object contains all the fields returned by the SmartLead API for that campaign, such as campaign name, status, creation date, and other metadata.
If the request fails and "Continue On Fail" is enabled, the output will contain an error object with an error field describing the failure message.
No binary data is output by this operation.
Dependencies
- Requires an active API key credential for the SmartLead API.
- The node makes authenticated HTTP GET requests to the SmartLead API endpoint:
https://server.smartlead.ai/api/v1/campaigns/{campaignId} - Proper network access to the SmartLead API server is necessary.
Troubleshooting
Common issues:
- Invalid or missing Campaign ID will cause the API to return an error.
- Network connectivity problems can prevent successful API calls.
- Expired or incorrect API credentials will result in authentication errors.
Error messages:
"error": "Not Found"ā The specified campaign ID does not exist. Verify the ID.- Authentication errors indicate invalid or missing API credentials; reconfigure the API key.
- Timeout or network errors suggest connectivity issues; check your internet connection and firewall settings.
Enabling "Continue On Fail" allows the workflow to proceed even if some items fail, returning error details in the output.
Links and References
- SmartLead API Documentation (assumed URL based on base URL)
- n8n Documentation on HTTP Request Node (for understanding API calls)
- General info on Email Marketing Automation