SmartLead icon

SmartLead

Comprehensive SmartLead API integration for email marketing automation

Overview

The Update Status operation in the šŸŽÆ Campaign Management resource allows users to change the current status of an email campaign within the SmartLead platform. This operation supports starting, pausing, or stopping a campaign by updating its status accordingly.

This node is beneficial in scenarios where automated control over campaign lifecycles is needed, such as:

  • Pausing campaigns temporarily during maintenance or review.
  • Stopping campaigns permanently when goals are met or issues arise.
  • Starting campaigns that were previously paused or newly created.

For example, a marketing automation workflow could pause a campaign if certain performance thresholds are not met, or start a campaign at a scheduled time.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign whose status you want to update.
Status The new status to set for the campaign. Options:
- Paused
- Stopped
- Start

Output

The node outputs the JSON response from the SmartLead API after attempting to update the campaign status. The output typically contains details about the updated campaign status and related metadata returned by the API.

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

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the SmartLead API via an API key credential configured in n8n.
  • The node uses the base URL https://server.smartlead.ai/api/v1.
  • Proper permissions on the API key to update campaign statuses are necessary.

Troubleshooting

  • Invalid Campaign ID: If the provided campaign ID does not exist or is malformed, the API will return an error. Verify the campaign ID is correct.
  • Unauthorized Access: Errors related to authentication indicate missing or invalid API credentials. Ensure the API key is correctly configured and has sufficient permissions.
  • Invalid Status Value: Setting a status outside the allowed options (PAUSED, STOPPED, START) will cause errors. Use only the supported status values.
  • Network Issues: Connectivity problems with the SmartLead API endpoint can cause request failures. Check network access and API availability.
  • JSON Parsing Errors: Although this operation sends simple parameters, other operations may require valid JSON inputs. Invalid JSON in those cases will throw errors.

To resolve errors, check the error message returned by the node, verify input parameters, and confirm API credentials and network connectivity.

Links and References

  • SmartLead API Documentation (for detailed API endpoints and payloads)
  • n8n Documentation on HTTP Request Node (conceptual similarity)
  • General best practices for managing email campaigns and statuses in marketing automation tools

Discussion