Smartlead icon

Smartlead

Interact with the Smartlead.ai API

Overview

This node integrates with the Smartlead.ai API to manage and retrieve information about campaigns, leads, email accounts, statistics, webhooks, and clients. Specifically, for the Campaign - Get operation, it fetches detailed information about a single campaign by its ID.

Use cases include:

  • Retrieving campaign details to monitor or display campaign configurations.
  • Integrating campaign data into workflows for reporting or automation.
  • Fetching campaign info before performing updates or related operations.

Example: You have a campaign running outreach emails and want to get its current settings and status to decide on next steps in your automation.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign you want to retrieve. This is required.

Output

The output is a JSON object representing the campaign's details as returned by the Smartlead.ai API. It typically includes fields such as campaign name, client ID, status, schedule, sequences, associated email accounts, and other metadata relevant to the campaign.

The node outputs this data as an array of JSON objects (one per input item), suitable for further processing or routing within n8n workflows.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Smartlead.ai API.
  • The base URL used for requests is https://server.smartlead.ai/api/v1.
  • The node uses HTTP methods with JSON payloads and expects JSON responses.
  • Proper configuration of the API key credential in n8n is necessary for successful requests.

Troubleshooting

  • Common issues:

    • Invalid or missing Campaign ID will cause the API to return an error.
    • Authentication failures if the API key credential is not set up correctly.
    • Network connectivity issues preventing access to the Smartlead.ai API endpoint.
  • Error messages:

    • Errors from the API are propagated and may appear as messages like "Campaign not found" or "Unauthorized".
    • If the node throws a generic request error, verify the API key and campaign ID correctness.
  • Resolutions:

    • Double-check that the Campaign ID is correct and exists in your Smartlead.ai account.
    • Ensure the API key credential is valid and has appropriate permissions.
    • Test network connectivity to https://server.smartlead.ai/api/v1.

Links and References

Discussion