curl -u admin:admin -X POST http://localhost:9000/api/campaigns -H 'Content-Type: application/json' -d '{"name":"June Newsletter","subject":"Hello, world","lists":[1],"content_type":"richtext","type":"regular"}'

Category: Listmonk & Newsletters

curl -u admin:admin -X POST http://localhost:9000/api/campaigns -H 'Content-Type: application/json' -d '{"name":"June Newsletter","subject":"Hello, world","lists":[1],"content_type":"richtext","type":"regular"}'

Create a campaign draft via the API

Creates a campaign in draft status; name, subject, lists, content_type, and type are required. A campaign is one newsletter send to the target lists. Add body with template markup and template_id to use a custom template, then test and schedule it before it goes out.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.