create_campaign
Create a new email campaign in MailerCloud. Requires name, subject, and at least one list ID. If sender is not provided, it will be auto-resolved from your verified senders (if only one exists) or you will be prompted to choose. Reply-to defaults to sender email (best practice) — only provide reply_email or reply_id if you need a different reply-to address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | HTML email content | |
| name | Yes | Campaign name,required | |
| api_key | No | MailerCloud API key | |
| subject | Yes | Email subject line,required | |
| tag_ids | No | Tag IDs to apply to campaign | |
| list_ids | Yes | List IDs to send to,required | |
| reply_id | No | Pre-configured reply email ID (alternative to reply_email) | |
| segments | No | Segment IDs | |
| sender_id | No | Pre-configured sender ID(s) (alternative to sender_name/sender_email) | |
| is_publish | No | Publish immediately: true or false (default: false creates a draft) | |
| plain_text | No | Plain text content | |
| reply_email | No | Reply-to email address | |
| sender_name | No | Sender display name (auto-resolved from verified senders if omitted) | |
| scheduled_at | No | Schedule datetime (YYYY-MM-DD HH:MM:SS) | |
| sender_email | No | Sender email address (auto-resolved from verified senders if omitted) | |
| frequency_cap | No | Frequency cap (daily, weekly, etc) | |
| email_preheader | No | Email preheader text (max 150 chars) | |
| exclude_tag_ids | No | Tag IDs to exclude from send | |
| exclude_list_ids | No | List IDs to exclude from send | |
| exclude_segments | No | Segment IDs to exclude from send |