Listmonk icon

Listmonk

Interact with Listmonk API

Actions71

Overview

This node allows users to create email templates in the Listmonk system. It supports creating different types of templates such as campaign, campaign visual, and transactional (tx) templates. Users can specify the template's name, type, subject (for transactional templates), body source (for campaign visual templates), and HTML body content. This node is useful for automating the management of email templates in marketing or transactional email workflows.

Use Case Examples

  1. Creating a campaign email template with a specific HTML body to be used in marketing campaigns.
  2. Creating a transactional email template with a subject line and HTML body for automated transactional emails.
  3. Creating a campaign visual template by providing a JSON source for the email builder along with the HTML body.

Properties

Name Meaning
Name Name of the template, used to identify the template in the system.
Type Type of the template, which can be 'campaign', 'campaign_visual', or 'tx' (transactional). This determines the template's usage and required fields.
Subject Subject line for the template, applicable only for transactional (tx) templates.
Body Source JSON source for the email-builder template, applicable only for campaign visual templates.
Body HTML body content of the template, defining the email's main content.
Request Options Additional request options such as batching, SSL certificate validation, proxy settings, and timeout configuration to control how the API request is made.

Output

JSON

  • id - Unique identifier of the created template.
  • name - Name of the created template.
  • type - Type of the created template.
  • subject - Subject line of the template, if applicable.
  • body_source - JSON source of the email-builder template, if applicable.
  • body - HTML body content of the created template.
  • created_at - Timestamp when the template was created.

Dependencies

  • Requires an API key credential for authenticating with the Listmonk API.

Troubleshooting

  • Ensure that the API base URL and credentials are correctly configured to avoid authentication errors.
  • If creating a campaign visual template, ensure the 'body_source' JSON is correctly formatted to prevent validation errors.
  • For transactional templates, the 'subject' field must be provided; otherwise, the API may reject the request.
  • Network issues or proxy misconfiguration can cause request failures; verify proxy settings if used.
  • Timeout settings should be adjusted based on network conditions to avoid premature request abortion.

Links

Discussion