Create a campaign (draft)
create_campaignCreate a campaign as a DRAFT — it does not send. Optionally set the schedule, settings, the email sequence (steps can carry up to 5 A/B variants), campaign tags and lead emails (up to 1000; add full lead details with add_leads). By default the campaign sends from ALL connected mailboxes of the workspace; to send only from specific ones pass accounts with settings.useAllAccounts = false. Nothing is sent until start_campaign; send_test_email sends a preview of a step first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| leads | No | Lead email addresses. Malformed ones are counted as invalid, not rejected. | |
| tagIds | No | Campaign tag ids to put on it (read them from `tags[]` of list_campaigns / get_campaign; tags are created in the dashboard). | |
| accounts | No | Mailbox ids the campaign sends from when settings.useAllAccounts is false; while it is true they do not limit sending. | |
| schedule | No | Sending schedule. | |
| sequence | No | Email steps in send order. | |
| settings | No | The campaign Settings page: tracking, stop rules, lead skipping by verification, text mode, unsubscribe, sending pattern, A/B optimization, keep active when leads run out, which mailboxes send. |