SmartLead

Comprehensive SmartLead API integration for email marketing automation

Overview

The node integrates with the SmartLead API to manage email marketing campaigns. Specifically, the Update Status operation under the 🎯 Campaign Management resource allows users to change the status of an existing campaign. This can be used to start, pause, or stop a campaign programmatically.

Typical use cases include:

  • Automatically pausing a campaign based on external triggers or conditions.
  • Resuming a paused campaign without manual intervention.
  • Stopping a campaign when certain criteria are met (e.g., budget limits reached).

For example, you might use this node in a workflow that monitors campaign performance and pauses campaigns that are underperforming, or resumes campaigns after a scheduled break.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign whose status you want to update.
Additional Fields Optional fields to customize the request:
- Limit Number of results to return (not directly relevant for update status but part of schema).
- Offset Number of results to skip (not directly relevant here).
- Status The new status to set for the campaign. Options: Active, Paused, Stopped.

Output

The node outputs the JSON response from the SmartLead API after updating the campaign status. The output is structured as an array of JSON objects representing the updated campaign data returned by the API.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the SmartLead API.
  • The base URL for API requests is https://server.smartlead.ai/api/v1.
  • The node uses HTTP PATCH method to update the campaign status endpoint /campaigns/{campaignId}/status.

Troubleshooting

  • Common issues:

    • Invalid or missing Campaign ID will cause the API call to fail.
    • Providing an unsupported status value will result in an error from the API.
    • Network or authentication errors if the API key is invalid or missing.
  • Error messages:

    • "Campaign not found": Verify the Campaign ID is correct.
    • "Unauthorized" or "Authentication failed": Check the API key credential configuration.
    • "Invalid status value": Ensure the status is one of Active, Paused, or Stopped.
  • To resolve errors, confirm all required parameters are correctly set and the API credentials are valid.

Links and References

Discussion