mailkite_start_sequence
Start a sequence for a contact by name or ID without a lookup, returning the enrollment to inspect, follow, or cancel. Responds with 409 and the reason when the contact is suppressed, already enrolled, or missing required input.
Instructions
Start a sequence for one contact, directly — when your code already knows WHICH sequence it wants. Takes a sequence NAME or id, so "start the dunning sequence" needs no lookup. Returns the enrollment it created: the run you then inspect, follow, or cancel. Refused with 409 when the address is suppressed, is already running on a reentry: "once" sequence, or is missing a required input — and the response says which. Reach for sendEvent instead when your code only knows what HAPPENED and policy should decide what reacts. Requires an API key (mk_live_…).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Sender for this enrollment, when the sequence has no default (a send-triggered sequence normally inherits one from the triggering message, which a manual enroll does not have). | |
| No | The address to enroll. Give this or `contactId`. | ||
| input | No | The sequence's input, checked against its declared signature. A missing required field refuses the start and says which — you find out here rather than days later as a blank merge tag. | |
| sequence | Yes | Path parameter `sequence`. | |
| cancelKey | No | Your own key for this enrollment. Cancel later with POST /v1/enrollments/cancel and this key — no need to store our id. | |
| contactId | No | A contact you own (ctc_…), as an alternative to `email`. |