create_campaign
Create a new email campaign as a draft: optionally with full HTML content and recipients (exactly ONE of audienceIds / segmentId / contactIds / tagIds / sendToAll) so it's ready to test and send. Nothing is sent until schedule_campaign.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Full HTML body for the email (skip to design later) | |
| name | Yes | Campaign name (internal label) | |
| apiKey | No | Send16 API key (overrides SEND16_API_KEY env var) | |
| tagIds | No | Target contacts with these tag IDs | |
| replyTo | No | Reply-to email address | |
| subject | Yes | Email subject line | |
| fromName | Yes | Sender display name | |
| fromEmail | Yes | Sender email (must be from a verified domain) | |
| segmentId | No | Target this segment (see list_segments) | |
| sendToAll | No | Target all subscribed contacts in the workspace | |
| contactIds | No | Target these specific contact IDs | |
| audienceIds | No | Target these audience IDs (see list_audiences) | |
| previewText | No | Preview text shown in inbox alongside subject |