curl -u admin:admin http://localhost:9000/api/campaigns/1/preview

Category: Listmonk & Newsletters

curl -u admin:admin http://localhost:9000/api/campaigns/1/preview

Preview a campaign's rendered message

Renders the campaign body with template placeholders like {{ .Subscriber.FirstName }} filled with sample subscriber data. Use it to check layout and personalization before sending. The response is rendered HTML or plain text depending on the campaign content type.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.