Smartlead icon

Smartlead

Interact with the Smartlead.ai API

Overview

This node interacts with the Smartlead.ai API to manage email accounts among other resources. Specifically, for the Email Account - Update operation, it updates details of an existing email account by sending specified key-value pairs to the API.

Typical use cases include:

  • Modifying configuration details of an email account such as sender name, email address, or SMTP settings.
  • Adjusting account parameters without recreating the account.
  • Automating updates to multiple email accounts in bulk workflows.

For example, you might update the "from_name" and "reply_to" fields of an email account to reflect a new campaign manager's contact information.

Properties

Name Meaning
Account ID The unique identifier of the email account to update.
Email Account Details A collection of key-value pairs specifying which details of the email account to update. Each pair consists of:
- Key: The name of the detail to set (e.g., from_name).
- Value: The value to assign to that detail.

Output

The node outputs the JSON response returned by the Smartlead.ai API after updating the email account. This typically includes the updated email account object with its current properties reflecting the changes made.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the Smartlead.ai API.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The base URL used for API calls is https://server.smartlead.ai/api/v1.

Troubleshooting

  • Invalid Account ID: If the provided Account ID does not exist or is incorrect, the API will likely return an error indicating the resource was not found. Verify the Account ID before running the node.
  • Missing Required Fields: Ensure that at least one key-value pair is provided in the Email Account Details; otherwise, the update request may fail or have no effect.
  • Authentication Errors: If the API key or token is invalid or expired, the node will throw an authentication error. Reconfigure the API credentials in n8n.
  • API Rate Limits: Frequent updates may hit API rate limits imposed by Smartlead.ai. Implement error handling or delays if necessary.
  • Malformed Key-Value Pairs: Keys and values must be strings and correctly formatted. Invalid keys may be ignored or cause errors.

Links and References

Discussion