SmartLead

Interact with SmartLead API for email marketing automation

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 include:

  • Fetching a campaign's details before updating or analyzing it.
  • Integrating campaign data into dashboards or CRM systems.
  • Triggering follow-up actions based on campaign attributes.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign to retrieve. This must be provided to fetch the specific campaign details.

Output

The node outputs JSON data representing the retrieved campaign object from the SmartLead API. The structure typically includes all properties of the campaign such as its ID, name, status, creation date, and other metadata defined by the API.

If the request fails and "Continue On Fail" is enabled, the output will contain an error object with a message describing the failure.

No binary data is output by this node.

Dependencies

  • Requires an API key credential for authenticating requests to the SmartLead API.
  • The base URL used is https://server.smartlead.ai/api/v1.
  • Proper configuration of the API authentication credential in n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Campaign ID will cause the API to return an error.
    • Authentication failures if the API key is incorrect or expired.
    • Network connectivity problems preventing access to the SmartLead API.
  • Error messages:

    • Errors returned from the API are passed through and can appear as messages like "Not Found" if the campaign ID does not exist.
    • If the node throws a NodeOperationError, check the item index mentioned to identify which input caused the failure.
  • Resolutions:

    • Verify the Campaign ID is correct and exists in your SmartLead account.
    • Ensure the API key credential is valid and has sufficient permissions.
    • Enable "Continue On Fail" to allow workflows to proceed even if some items fail.

Links and References

Discussion