Create a sequence email
create_sequence_emailCreate an email in a Kit sequence by setting its subject, delay, content, and publish status. Requires confirm=true for this irreversible action.
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 | Set true only when the user asked for exactly this action. | |
| 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 | ||
| 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 |