Smartlead icon

Smartlead

Interact with the Smartlead.ai API

Overview

This node interacts with the Smartlead.ai API to manage and retrieve data related to marketing campaigns, leads, email accounts, webhooks, and campaign statistics. Specifically, for the Webhook resource with the Get Many By Campaign operation, it fetches multiple webhook configurations associated with a specified campaign.

Use cases include:

  • Retrieving all webhooks configured for a particular campaign to monitor or audit webhook endpoints.
  • Integrating webhook data into workflows that automate campaign management or reporting.
  • Synchronizing webhook settings between Smartlead and other systems.

Example: You have a campaign running and want to list all webhooks that trigger on events in that campaign to verify their URLs or update them accordingly.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign for which you want to fetch associated webhooks.

Output

The node outputs an array of JSON objects representing the webhooks linked to the specified campaign. Each object typically contains details such as webhook ID, name, URL, and other configuration parameters as returned by the Smartlead.ai API.

No binary data output is involved in this operation.

Dependencies

  • Requires an active API key credential for Smartlead.ai to authenticate requests.
  • The node makes HTTP requests to the Smartlead.ai API endpoint at https://server.smartlead.ai/api/v1.
  • Proper network connectivity to the Smartlead.ai service is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Campaign ID will cause the API request to fail.
    • Authentication errors if the API key credential is invalid or expired.
    • Network connectivity problems may prevent reaching the Smartlead.ai API.
  • Error messages:

    • "Unauthorized" or similar indicates authentication failure; verify API credentials.
    • "Not Found" or empty results may indicate the campaign ID does not exist or has no webhooks.
    • Timeout or network errors suggest connectivity issues; check firewall and internet access.
  • Resolution tips:

    • Double-check the Campaign ID input for correctness.
    • Ensure the API key credential is correctly configured and has sufficient permissions.
    • Test network access to https://server.smartlead.ai/api/v1 from your environment.

Links and References

Discussion