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:
- Fetching a campaign’s details before updating or analyzing it.
- Retrieving campaign info to display in dashboards or reports.
- Validating campaign existence before triggering further automation steps.
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 name, ID, status, creation date, and other campaign-specific metadata.
If an error occurs (e.g., invalid ID), the output will contain an error field with the error message.
No binary data is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the SmartLead API.
- The node uses the base URL
https://server.smartlead.ai/api/v1. - Proper configuration of the API authentication credential within n8n is necessary.
Troubleshooting
Common issues:
- Providing an invalid or non-existent Campaign ID will result in an error from the API.
- Missing or incorrect API credentials will cause authentication failures.
- Network connectivity issues can prevent successful API calls.
Error messages:
- Errors returned from the API are passed through in the output under an
errorproperty. - Authentication errors typically indicate invalid or missing API keys; verify your credential setup.
- If the node throws a generic execution error, check the Campaign ID format and network access.
- Errors returned from the API are passed through in the output under an
Links and References
- SmartLead API Documentation (assumed based on base URL)
- n8n documentation on HTTP Request Node for understanding API interactions
- General guide on Using Credentials in n8n