Create a sequence email
create_sequence_emailAdd an email to a Kit sequence with subject, content, delay, and publish status; confirm=true is required for delivery or publishing changes.
Instructions
Create a sequence email. May affect delivery, audience membership, published data or irreversible state. Requires confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Named private account from KIT_ACCOUNTS. Defaults to KIT_DEFAULT_ACCOUNT or the first configured account. | |
| confirm | No | Must be true for audience/delivery changes, publishing, destructive operations and signing-secret changes. Use only for an action requested by the user. | |
| content | No | HTML body content of the email | |
| payload | No | Complete JSON body instead of individual body flags. Supports nullable fields and nested bulk structures. Cannot be combined with body flags or payload_file. | |
| subject | No | Subject line of the email | |
| position | No | Zero-based position of the email in the sequence. Assigned automatically after the last email if omitted | |
| published | No | Whether the email is active and will be sent to subscribers. Defaults to `false` (draft) | |
| send_days | No | Days of the week this email may be sent. Defaults to all 7 days (inherits the sequence schedule). Pass a subset to restrict delivery, or `null` to reset to all days | |
| delay_unit | No | Unit for the send delay. Use `days` for schedule-aware delivery, `hours` for a fixed hourly delay | |
| delay_value | No | Number of days or hours to wait before sending this email after the previous one | |
| sequence_id | Yes | Positive sequence id. | |
| payload_file | No | Local JSON request body file, at most 5 MB. Contents are validated before the API call and are never logged. | |
| preview_text | No | Preview text shown in email clients before the email is opened | |
| email_template_id | No | ID of the email template to use for layout and styling |