Create campaign (draft)
emailchef_create_campaignWRITE: create a new campaign as a DRAFT (nothing is sent). Needs a verified sender (emailchef_list_senders) and at least one list. To be sendable the HTML body must contain the CAN-SPAM placeholders [[account:business]], [[account:address_1]], [[account:city]], [[account:postal_code]], [[account:country]] and an unsubscribe link , otherwise the send ends FAILED. Schedule or send it afterwards. POST /newsletters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Campaign name (must be unique in the account). | |
| subject | Yes | Email subject. | |
| list_ids | Yes | Lists to send to. | |
| html_body | No | HTML body (include the CAN-SPAM placeholders and unsubscribe link). | |
| sender_id | Yes | A verified sender id from emailchef_list_senders. | |
| text_body | No | Plain-text body. | |
| segment_id | No | Optional segment of the FIRST list to narrow the audience. | |
| reply_to_id | No | Sender id used for replies. |