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, content, or performance metrics for further processing or reporting within an n8n workflow.
Practical examples:
- Fetching a campaign's details before updating or analyzing it.
- Retrieving campaign metadata to trigger conditional logic based on campaign status.
- Integrating campaign data into dashboards or CRM systems.
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 a JSON object representing the campaign data retrieved from the SmartLead API. The structure corresponds directly to the API response for a single campaign, typically including fields like campaign ID, name, status, creation date, and other relevant campaign attributes.
If the API 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 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 API authentication credentials must be set up in n8n to authorize requests.
Troubleshooting
Common issues:
- Invalid or missing Campaign ID will cause the API to return an error.
- Network connectivity problems or incorrect API credentials will result in authentication or connection errors.
- If the campaign ID does not exist, the API will likely return a 404 error.
Error messages:
"error": "Not Found"— The specified campaign ID does not exist. Verify the ID is correct.- Authentication errors indicate invalid or missing API credentials; ensure the API key is correctly configured.
- Timeout or network errors suggest connectivity issues; check your internet connection and API server status.
To handle errors gracefully, enable the node’s "Continue On Fail" option to allow workflows to proceed even if a particular campaign retrieval fails.
Links and References
- SmartLead API Documentation (assumed typical location)
- n8n Documentation on HTTP Request Node for understanding API calls
- n8n Documentation on Error Handling