Listmonk icon

Listmonk

Interact with a listmonk instance for email marketing and newsletter management. Supports creating subscribers, managing campaigns, sending emails, and more.

Campaign → Create

AI-generated

Overview

The node integrates with a Listmonk instance, a platform for email marketing and newsletter management. Specifically, the "Campaign" resource with the "Create" operation allows users to create new email campaigns within their Listmonk setup. This is useful for automating campaign creation workflows, such as launching newsletters, promotional emails, or announcements directly from n8n.

Practical examples include:

  • Automatically creating a campaign when a new product is added to an e-commerce store.
  • Scheduling regular newsletters by generating campaigns on a timed trigger.
  • Creating targeted campaigns based on user behavior or external data sources.

Properties

Name Meaning
Json Body The JSON body to send to the Listmonk API representing the campaign details to be created. This should contain all necessary fields as per Listmonk's campaign creation API specification.

Output

The node outputs the response from the Listmonk API after attempting to create the campaign. The json output field contains the full JSON response from the API, which typically includes details of the newly created campaign such as its ID, status, and other metadata.

If the API supports returning binary data (not indicated here), it would be summarized accordingly, but in this case, the output is purely JSON-based.

Dependencies

  • Requires access to a Listmonk instance with API enabled.
  • Needs credentials including domain URL, username, and password for basic authentication.
  • The node expects the API endpoint base URL to be configured via credentials.
  • No additional external services are required beyond the Listmonk API.

Troubleshooting

  • Authentication errors: Ensure that the provided credentials (domain, username, password) are correct and have sufficient permissions to create campaigns.
  • Invalid JSON Body: The JSON body must conform to Listmonk's API schema for campaign creation. Malformed or incomplete JSON will cause errors.
  • API Endpoint issues: Verify that the domain URL does not have trailing slashes and points correctly to the Listmonk API.
  • Network connectivity: Confirm that the n8n instance can reach the Listmonk server without firewall or network restrictions.
  • Common error messages will come from the Listmonk API and usually indicate missing fields, invalid data types, or authentication failures. Review the API documentation for required fields.

Links and References

Discussion