create_campaign
Create a draft email campaign with a name, subject, and target lists so you can review it before scheduling or sending.
Instructions
Create a campaign in draft status; nothing is sent yet. body is the message content and template_id selects the layout template that wraps it. Returns the new campaign ID. Next, review it with get_campaign_preview, then start it with send_campaign or schedule_campaign.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Message content in the chosen content_type; can also be added later with update_campaign | |
| name | Yes | Campaign name | |
| tags | No | Labels for organising campaigns | |
| type | No | regular (normal campaign) or optin (asks subscribers to confirm a double opt-in subscription) | regular |
| lists | Yes | IDs of the mailing lists to send to, at least one (see get_mailing_lists) | |
| subject | Yes | Email subject | |
| template_id | No | Layout template that wraps the body (see get_templates); omit to use the default campaign template | |
| content_type | No | Format of body: richtext, html, markdown or plain | richtext |