SmartLead icon

SmartLead

Comprehensive SmartLead API integration for email marketing automation

Overview

This node integrates with the SmartLead API to manage campaign webhooks, specifically allowing users to add or update webhooks for email marketing campaigns. It enables automation of event notifications such as email opens or clicks by configuring webhook URLs and subscribed events.

Typical use cases include:

  • Automatically triggering workflows when specific campaign events occur (e.g., an email is opened or a link is clicked).
  • Keeping external systems synchronized with campaign activity via real-time webhook notifications.
  • Managing webhook configurations programmatically within n8n to streamline campaign monitoring and response.

For example, you can configure a webhook to notify your CRM system whenever a recipient opens an email in a campaign, enabling timely follow-up actions.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign for which the webhook is being added or updated.
Webhook Data JSON configuration of the webhook, including:
- url: The destination URL where webhook events will be sent.
- events: An array of event types to subscribe to, e.g., ["email_opened", "email_clicked"].

Output

The node outputs the JSON response from the SmartLead API after adding or updating the webhook. This typically includes details about the webhook configuration and confirmation of the operation's success.

The output is structured as an array of JSON objects corresponding to each input item processed, containing the API response data under the json field.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the SmartLead API.
  • The node makes HTTP requests to the SmartLead server at https://server.smartlead.ai/api/v1.
  • Proper network connectivity and valid credentials are necessary for successful API communication.

Troubleshooting

  • Invalid JSON in Webhook Data: If the provided webhook JSON is malformed, the node throws an error indicating invalid JSON. Ensure the webhook configuration is correctly formatted JSON.
  • Missing or Incorrect Campaign ID: The operation requires a valid campaign ID. Errors may occur if this is missing or incorrect.
  • API Authentication Errors: Failure to authenticate with the SmartLead API due to invalid or missing credentials will result in errors. Verify that the API key credential is configured properly.
  • Network Issues: Connectivity problems to the SmartLead API endpoint can cause request failures. Check network access and proxy settings if applicable.

Links and References


This summary focuses on the "Add/Update Campaign Webhook" operation under the "Webhooks" resource, describing its inputs, outputs, and behavior based on static analysis of the node's source code and provided property definitions.

Discussion