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, 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, which typically includes campaign metadata, settings, and statistics.

If an error occurs (e.g., invalid campaign ID), the output will contain an object with an error field describing the issue, but only if the node is configured to continue on failure.

No binary data is output by this operation.

Dependencies

  • Requires an active connection to the SmartLead API.
  • Needs an API authentication token credential configured in n8n to authorize requests.
  • The base URL used is https://server.smartlead.ai/api/v1.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Campaign ID will result in an error from the API.
    • Network connectivity problems can cause request failures.
    • Missing or incorrect API credentials will prevent successful authentication.
  • Error messages:

    • Errors returned by the API are passed through; typical messages might indicate "Campaign not found" or "Unauthorized".
    • If the node is set to stop on failure, these errors will halt execution; otherwise, they appear in the output as error objects.
  • Resolutions:

    • Verify the Campaign ID is correct and exists in your SmartLead account.
    • Ensure the API key credential is valid and has necessary permissions.
    • Check network connectivity and SmartLead service status.

Links and References

Discussion