SmartLead icon

SmartLead

Comprehensive SmartLead API integration for email marketing automation

Overview

This node integrates with the SmartLead API to manage and interact with webhooks related to email marketing campaigns. Specifically, the "Fetch Webhooks by Campaign ID" operation retrieves all webhook configurations associated with a given campaign. This is useful for monitoring or managing event notifications such as email opens, clicks, or other campaign-related events.

Practical scenarios include:

  • Auditing which webhooks are currently set up for a campaign.
  • Synchronizing webhook configurations between systems.
  • Debugging or verifying that webhooks are correctly registered for campaign event tracking.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign whose webhooks you want to fetch.
Additional Fields (Not applicable for this operation)

The provided properties JSON defines:

  • Campaign ID (string, required): Specifies the campaign to fetch webhooks for.
  • Additional Fields: Not used in this operation but generally includes options like limit, offset, and status for other operations.

Output

The node outputs an array of webhook objects under the json output field. Each object represents a webhook configured for the specified campaign, typically including details such as:

  • Webhook URL
  • Events subscribed to (e.g., email opened, clicked)
  • Status or metadata about the webhook registration

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 configuration of the API authentication credential in n8n is necessary.

Troubleshooting

  • Invalid JSON in Webhook Data: If adding or updating webhooks, ensure the webhook JSON configuration is valid. Errors will indicate parsing issues.
  • Missing or Incorrect Campaign ID: The operation requires a valid campaign ID; missing or incorrect IDs will cause API errors.
  • API Authentication Errors: Ensure the API key credential is correctly set up and has sufficient permissions.
  • Network Issues: Connectivity problems to the SmartLead API endpoint can cause request failures.
  • Continue on Fail Behavior: If enabled, the node will return error messages per item instead of stopping execution.

Links and References

Discussion