Actions74
- šÆ Campaign Management Actions
- š„ Lead Management Actions
- š§ Email Accounts Actions
- š Analytics & Stats Actions
- š Smart Delivery Actions
- Get Region Provider IDs
- Create Manual Placement Test
- Create Automated Placement Test
- Get Spam Test Details
- Delete Tests in Bulk
- Stop Automated Test
- List All Tests
- Get Provider Report
- Get Geo Report
- Get Sender Account Report
- Get Spam Filter Report
- Get DKIM Details
- Get SPF Details
- Get rDNS Report
- Get Sender Account List
- Get Blacklists
- Get Domain Blacklist
- Get Spam Test Email Content
- Get Email Reply Headers
- Get Schedule History
- Get IP Details
- Get Mailbox Summary
- Get Mailbox Count
- Get All Folders
- Create Folder
- Get Folder by ID
- Delete Folder
- š Webhooks Actions
- šØ Smart Senders Actions
Overview
The "Unsubscribe from All" operation in the Lead Management resource allows users to unsubscribe a lead (identified by their email address) from all email campaigns managed via the SmartLead platform. This is useful for compliance with email marketing regulations, managing user preferences, or cleaning up mailing lists by ensuring that a lead no longer receives any campaign emails.
Common scenarios:
- A lead requests to opt out of all communications.
- Automatically unsubscribing leads who have marked emails as spam or requested removal.
- Managing global unsubscribe preferences across multiple campaigns.
Practical example:
You have a lead with the email john.doe@example.com who wants to stop receiving all marketing emails. Using this node operation, you provide the email address, and the node sends a request to unsubscribe that lead from every campaign they are part of.
Properties
| Name | Meaning |
|---|---|
| Email Address | The email address of the lead to unsubscribe from all campaigns. |
| Additional Fields | Optional parameters such as Limit (number of results), Offset (pagination offset), and Status (campaign status filter). These fields are generally used in other operations but are available here as additional options. |
Note: For this specific operation ("Unsubscribe from All"), only the Email Address property is required and directly relevant.
Output
The node outputs JSON data representing the response from the SmartLead API after attempting to unsubscribe the lead from all campaigns.
- The output JSON typically contains confirmation of the unsubscribe action or details about the lead's updated subscription status.
- If an error occurs (e.g., invalid email format or lead not found), the output will contain an error message.
- No binary data is produced by this operation.
Example output structure (simplified):
{
"success": true,
"message": "Lead unsubscribed from all campaigns",
"email": "john.doe@example.com"
}
Dependencies
- Requires an active connection to the SmartLead API service.
- Needs an API authentication token configured in n8n credentials (referred generically as "an API key credential").
- The base URL for API requests is
https://server.smartlead.ai/api/v1. - Proper permissions on the API key to manage leads and perform unsubscribe actions.
Troubleshooting
Common Issues
- Invalid JSON input: Although this operation does not require JSON input, other lead-related operations do. Ensure JSON inputs are correctly formatted.
- Invalid or missing email address: The email must be provided and valid; otherwise, the API will reject the request.
- API authentication errors: Ensure the API key credential is valid and has sufficient permissions.
- Network issues: Connectivity problems can cause request failures.
Common Error Messages
"Invalid JSON in lead data"ā Not applicable here but relevant for other operations involving JSON input."Lead not found"ā The specified email does not exist in the system."Unauthorized"ā API key is missing or invalid."Bad Request"ā Missing required parameters or invalid parameter values.
Resolution Tips:
- Double-check the email address format.
- Verify API credentials and permissions.
- Review network connectivity.
- Use the node's "Continue On Fail" option to handle errors gracefully in workflows.
Links and References
- SmartLead API Documentation (Assumed based on base URL)
- General best practices for email unsubscribe management: CAN-SPAM Act Compliance
- n8n documentation on HTTP Request Node for understanding API calls
If you need further details on other operations or resources, feel free to ask!