SmartLead icon

SmartLead

Comprehensive SmartLead API integration for email marketing automation

Overview

This node integrates with the SmartLead API to manage webhooks related to email marketing campaigns. Specifically, for the Delete Campaign Webhook operation under the Webhooks resource, it allows users to delete an existing webhook associated with a particular campaign.

Use cases include:

  • Removing outdated or incorrect webhook URLs from a campaign.
  • Cleaning up webhook configurations when campaigns are modified or retired.
  • Managing event notifications by controlling which webhooks remain active.

Practical example:

  • You have a campaign that no longer requires certain event notifications. Using this node operation, you can delete the webhook URL that was previously set up to receive those events, ensuring no further data is sent to that endpoint.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign whose webhook you want to delete.

The node expects the Campaign ID as a required string input to identify which campaign's webhook should be deleted.

Output

The output JSON contains the response data from the SmartLead API after attempting to delete the webhook. Typically, this will confirm whether the deletion was successful or provide error details if it failed.

The structure is:

{
  "data": { ... }
}

Where data holds the API response payload relevant to the deletion request.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating requests to the SmartLead API.
  • The base URL used for requests is https://server.smartlead.ai/api/v1.
  • Proper configuration of the API authentication within n8n is necessary for successful execution.

Troubleshooting

  • Invalid Campaign ID: If the provided campaign ID does not exist or is malformed, the API may return an error indicating the campaign was not found. Verify the campaign ID is correct.
  • Authentication Errors: Missing or invalid API credentials will cause authentication failures. Ensure the API key credential is correctly configured and has sufficient permissions.
  • Webhook Not Found: Attempting to delete a webhook that does not exist for the specified campaign may result in an error or no action. Confirm the webhook exists before deletion.
  • JSON Parsing Errors: Although this operation does not require JSON input beyond the campaign ID, other webhook operations do. For those, ensure JSON inputs are valid to avoid parsing errors.

Links and References

Discussion