Create a journey
POST/v1/journeys
Requires an API key with the journeys:write scope. About keys and scopes
Works with integration, agent and partner keys.
A repeat without a key does it again; send Idempotency-Key and a retry within 24 hours replays the first response. About idempotency
Creates a multi-step automation in a draft state. A draft saves unfinished: it needs a name and a trigger, but may have no steps yet and send steps without their content; what is given is checked. Each step has an id you choose, unique within the journey, and transitions (nextStep, onMatchStep, otherwiseStep, split paths) name those ids: a step whose nextStep is omitted goes on to the next step in steps, null ends the journey there, and a branch's last step should set null. A transition to a step that does not exist, or one that leads back to a step already passed (a loop), is a 400 at that field. A journey does not run until it is activated, which needs it whole (409 DRAFT_INCOMPLETE lists each missing field in errors); edit it with PATCH /v1/journeys/{id}. An email step is built from its design (templateSnapshot): any html or text sent beside it is replaced by the design's rendering. A send step may set onUnreachableStep (the contact cannot receive the channel) and onFailureStep: taken when the message cannot be queued because the plan's sending allowance is used up or its marketing contacts are past the plan's limit (it is recorded skipped, reason plan_limit_reached). Delivery happens after the enrollment has moved on, so a later bounce or provider error does not branch. A contact enters one repeatable journey at most 10 times an hour, whatever its waitAfterEntry; past that, entries are skipped and the workspace admins are notified (journey_loop_detected).
Header parameters
Kirora-WorkspacestringoptionalPartner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.
pattern
^[A-Za-z0-9._:-]{1,128}$Idempotency-KeystringoptionalMakes a retry safe: a repeat with the same key and body within 24 hours gets the first response again, with
Idempotency-Replay: true. The same key with another request is 409IDEMPOTENCY_KEY_REUSED; while the first is still running, 409IDEMPOTENCY_KEY_IN_USE; after anunsafefirst request failed or never returned, 409IDEMPOTENCY_KEY_OUTCOME_UNKNOWN. Use a new key, such as a UUID, for each new request.8–255 characters
Request body
namestringrequired1–255 characters
triggerobjectrequiredWhat starts an enrollment.
One of 6 shapes
- Event trigger
4 child attributes
type"event"requirednamestringrequiredThe event that starts an enrollment.
1–128 characters
whereobject[]optionalConditions on the event's properties; all must hold.
at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
reentryobjectoptionalWhether a contact may enter again:
once(the default);repeatableoncewaitAfterEntryhas passed since their last entry started; oronce_per_value, one run per value ofpropertyon the starting event, so a contact with two failed invoices has two runs and a repeat failure of one starts nothing. An event without that property starts no run.default
{"mode":"once"}One of 3 shapes
- Once
1 child attribute
mode"once"required
- Repeatable
2 child attributes
mode"repeatable"requiredwaitAfterEntryDurationOrZeroInputoptionalHow long after a contact's last entry started before they may enter again, at most 3,650 days; zero lets entries overlap.
- Once per value
2 child attributes
mode"once_per_value"requiredpropertystringrequiredThe property of the starting event whose value keys a run, such as
invoice_id.1–128 characters
- List trigger
3 child attributes
type"list"requiredlistIdstringoptionalThe list whose new members enter; unset, joining any list starts it.
uuid
reentryobjectoptionalWhether a contact may enter again:
once(the default);repeatableoncewaitAfterEntryhas passed since their last entry started; oronce_per_value, one run per value ofpropertyon the starting event, so a contact with two failed invoices has two runs and a repeat failure of one starts nothing. An event without that property starts no run.default
{"mode":"once"}One of 3 shapes
- Once
1 child attribute
mode"once"required
- Repeatable
2 child attributes
mode"repeatable"requiredwaitAfterEntryDurationOrZeroInputoptionalHow long after a contact's last entry started before they may enter again, at most 3,650 days; zero lets entries overlap.
- Once per value
2 child attributes
mode"once_per_value"requiredpropertystringrequiredThe property of the starting event whose value keys a run, such as
invoice_id.1–128 characters
- Segment trigger
4 child attributes
type"segment"requiredsegmentIdstringoptionalThe segment whose matches enter; a draft may leave it unset.
uuid
onstringoptionalenter: when a contact begins matching it;exit: when they stop. Found by the background sweep within 15 minutes.one of
enter,exit· default"enter"reentryobjectoptionalWhether a contact may enter again:
once(the default);repeatableoncewaitAfterEntryhas passed since their last entry started; oronce_per_value, one run per value ofpropertyon the starting event, so a contact with two failed invoices has two runs and a repeat failure of one starts nothing. An event without that property starts no run.default
{"mode":"once"}One of 3 shapes
- Once
1 child attribute
mode"once"required
- Repeatable
2 child attributes
mode"repeatable"requiredwaitAfterEntryDurationOrZeroInputoptionalHow long after a contact's last entry started before they may enter again, at most 3,650 days; zero lets entries overlap.
- Once per value
2 child attributes
mode"once_per_value"requiredpropertystringrequiredThe property of the starting event whose value keys a run, such as
invoice_id.1–128 characters
- Form trigger
4 child attributes
type"form"requiredformIdstringoptionalThe form whose submissions enter; unset, any form starts it.
uuid
whereobject[]optionalConditions on the submission, such as
outcomeequalscreatedfor new contacts only; all must hold.at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
reentryobjectoptionalWhether a contact may enter again:
once(the default);repeatableoncewaitAfterEntryhas passed since their last entry started; oronce_per_value, one run per value ofpropertyon the starting event, so a contact with two failed invoices has two runs and a repeat failure of one starts nothing. An event without that property starts no run.default
{"mode":"once"}One of 3 shapes
- Once
1 child attribute
mode"once"required
- Repeatable
2 child attributes
mode"repeatable"requiredwaitAfterEntryDurationOrZeroInputoptionalHow long after a contact's last entry started before they may enter again, at most 3,650 days; zero lets entries overlap.
- Once per value
2 child attributes
mode"once_per_value"requiredpropertystringrequiredThe property of the starting event whose value keys a run, such as
invoice_id.1–128 characters
- Attribute trigger
4 child attributes
type"attribute"requiredkeystringrequiredThe contact attribute whose change starts an enrollment.
pattern
^[\p{L}\p{N}\p{M}_.-]{1,64}$whereobject[]optionalConditions on the change:
valueis the new value,previous_valuethe old one. For a list attribute,valueequalsan item when it was added.at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
reentryobjectoptionalWhether a contact may enter again:
once(the default);repeatableoncewaitAfterEntryhas passed since their last entry started; oronce_per_value, one run per value ofpropertyon the starting event, so a contact with two failed invoices has two runs and a repeat failure of one starts nothing. An event without that property starts no run.default
{"mode":"once"}One of 3 shapes
- Once
1 child attribute
mode"once"required
- Repeatable
2 child attributes
mode"repeatable"requiredwaitAfterEntryDurationOrZeroInputoptionalHow long after a contact's last entry started before they may enter again, at most 3,650 days; zero lets entries overlap.
- Once per value
2 child attributes
mode"once_per_value"requiredpropertystringrequiredThe property of the starting event whose value keys a run, such as
invoice_id.1–128 characters
- Date trigger
6 child attributes
fieldstringrequiredThe contact date field the journey runs from.
pattern
^[A-Za-z][A-Za-z0-9_]{0,63}$recurrencestringrequiredonceruns on the date a single time;annualrepeats every year.one of
once,annualoffsetSignedDurationInputoptionalHow far from the date to start, in whole days: negative before it, positive after, at most 365 days either way. Defaults to the day itself.
2 child attributes
valueintegerrequiredunitstringrequiredone of
seconds,minutes,hours,days
timestringrequiredTime of day to start, as
HH:MMin the contact's timezone, else the workspace's.pattern
^(?:[01]\d|2[0-3]):[0-5]\d$leapDaystringoptionalFor an annual 29 February date in a common year: run on 28 Feb, on 1 Mar, or skip.
one of
feb28,mar1,skip· default"feb28"type"date"required
exitConditionsobject[]optionalEvents that end a contact's enrollment early.
at most 10 items · default
[]One of 2 shapes
- Event exit
5 child attributes
type"event"requirednamestringrequiredThe event that ends a contact's enrollment when they do it.
1–128 characters
whereobject[]optionalConditions on the event's properties; all must hold.
at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
matchTriggerPropertystringoptionalA property the event must share with the event that started the run, so paying invoice A does not end the run for invoice B. A run whose starting event lacks it is not ended by this exit.
1–128 characters
includeEarlierEventsbooleanoptionalAlso count a matching event from before the run started, checked as the run would start and before each send: a payment that arrived before its failure then starts nothing and sends nothing. Needs
matchTriggerProperty.
- Conversion goal exit
1 child attribute
type"conversion_goal"required
stepsobject[]requiredThe steps. Their order is the default path: a step whose
nextStepis omitted goes on to the next one. Empty while a draft; going live needs a first step.at most 50 items
One of 10 shapes
- Wait step
8 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"wait"requireddurationDurationInputoptionalHow long to wait; at most 365 days. Or set
untilorbusinessDays.2 child attributes
valueintegerrequiredmin > 0
unitstringrequiredone of
seconds,minutes,hours,days
untilobjectoptionalWait until a date the contact or the triggering event holds, instead.
3 child attributes
fromstringrequiredcontact: an attribute or date;event: the trigger event.one of
contact,eventkeystringrequiredThe attribute or date key (
trial_ends_at), or the event property; a dotted path reads a nested one.1–128 characters
offsetSignedDurationInputoptionalHow far before (negative) or after the date; 3 days before is
{ "value": -3, "unit": "days" }. At most 365 days either way.2 child attributes
valueintegerrequiredunitstringrequiredone of
seconds,minutes,hours,days
businessDaysintegeroptionalWait this many working days instead, counted in the contact's local time and ending at the same time of day: the days of
window.dayswhen set, else Monday to Friday.min 1 · max 260
windowobjectoptionalHours the wait may end in, in the contact's local time.
3 child attributes
startHourintegerrequiredHour of day (0-23) the window opens, inclusive.
min 0 · max 23
endHourintegerrequiredHour of day (1-24) the window closes; it must be after
startHour.min 1 · max 24
daysinteger[]optionalDays of the week the window is open, 0 = Sunday to 6 = Saturday; every day when left out.
at least 1 item · at most 7 items
nextStepstring | nulloptionalThe id of the step to run next. Omitted, the next step in
stepsruns (after the last one the journey ends);nullends the journey here. The last step of a branch should setnull, or the enrollment continues into the steps that follow it.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Wait-until step
7 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"wait_until"requiredeventobjectrequiredThe event to wait for, and the conditions it must meet.
2 child attributes
namestringrequiredThe event to wait for.
1–128 characters
whereobject[]optionalConditions on the event's properties; all must hold.
at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
timeoutDurationInputrequiredHow long to wait for the event: 1 minute to 90 days.
2 child attributes
valueintegerrequiredmin > 0
unitstringrequiredone of
seconds,minutes,hours,days
onMatchStepstringrequiredThe id of the step to take when the event happens.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$onTimeoutStepstring | nullrequiredThe id of the step to take on timeout;
nullends the journey.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Digest step
5 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"digest"requiredgatherForDurationInputrequiredHow long to gather events: 1 minute to 7 days.
2 child attributes
valueintegerrequiredmin > 0
unitstringrequiredone of
seconds,minutes,hours,days
nextStepstring | nulloptionalThe id of the step to run next. Omitted, the next step in
stepsruns (after the last one the journey ends);nullends the journey here. The last step of a branch should setnull, or the enrollment continues into the steps that follow it.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Email send step
10 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"send"requiredchannel"email"requiredcontentobjectrequiredThe email. Any part may be missing on a draft; going live needs subject, sender and design.
8 child attributes
subjectstringoptionalThe subject line. Merge tags are allowed.
1–998 characters
previewTextstringoptionalShown by inboxes after the subject. Merge tags are allowed; keep it near 100 characters.
1–255 characters
htmlstringoptionalThe HTML body. Rendered from the design when one is set.
1–512,000 characters
textstringoptionalThe plain-text alternative.
1–512,000 characters
fromstringoptionalThe sender address, on a verified sending domain.
1–320 characters
replyTostringoptionalWhere replies go; the part before the @ must be ASCII.
email
templateSnapshotobjectoptionalThe email: a design, or HTML. Copied from a template, or written here; later template edits do not change it.
One of 2 shapes
- DesignSnapshotInput
- HtmlSnapshotInput
translationsmap<string, object>optionalThe email in other languages, keyed by language tag (
fr,pt-BR). Each contact gets the version for theirlocale: the exact tag first, then each shorter one (fr-CAtakesfr), else the main email. A field a version leaves out is the main email's; the sender, reply-to, topic and tracking are always the main email's, and every A/B version shares the translations. Up to 30.at most 30 keys
5 child attributes
subjectstringoptionalThe subject line. Merge tags are allowed.
1–998 characters
previewTextstringoptionalShown by inboxes after the subject. Merge tags are allowed; keep it near 100 characters.
1–255 characters
htmlstringoptionalThe HTML body. Rendered from the design when one is set.
1–512,000 characters
textstringoptionalThe plain-text alternative.
1–512,000 characters
templateSnapshotobjectoptionalThe email: a design, or HTML. Copied from a template, or written here; later template edits do not change it.
nextStepstring | nulloptionalThe id of the step to run next. Omitted, the next step in
stepsruns (after the last one the journey ends);nullends the journey here. The last step of a branch should setnull, or the enrollment continues into the steps that follow it.pattern
^[a-z0-9][a-z0-9_-]{0,63}$onUnreachableStepstringoptionalThe id of the step to go to when the contact cannot receive this channel; unset skips the send.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$onFailureStepstringoptionalThe id of the step to go to when the message cannot be queued because the plan's sending allowance is used up or its marketing contacts are past the plan's limit (recorded
skipped, reasonplan_limit_reached); later delivery failures do not branch. Unset continues tonextStep.pattern
^[a-z0-9][a-z0-9_-]{0,63}$topicIdstringoptionalSends only to contacts the topic reaches; unset sends to everyone with consent.
uuid
transactionalbooleanoptionalA service message the contact needs whatever their marketing choices (an order receipt, a password reset): sent without email consent or a topic, not held by quiet hours or message limits, with no unsubscribe link, as a transactional send is. Only an address that bounced, or marked transactional email as spam, is skipped. Not for promotions.
- Push send step
10 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"send"requiredchannel"push"requiredcontentobjectrequiredThe notification. Any part may be missing on a draft.
2 child attributes
pushProjectIdstringoptionalThe push app to send through.
uuid
pushobjectoptionalThe notification content.
14 child attributes
titlestringoptionalThe notification title (up to 100 characters).
1–100 characters
bodystringoptionalThe notification text (up to 500 characters).
1–500 characters
actionUrlstringoptionalThe HTTPS page opened when the notification is tapped.
uri · up to 2,048 characters
imageUrlstringoptionalA large picture: web and Android show it; iOS needs the app's service extension.
uri · up to 2,048 characters
iconUrlstringoptionalWeb only; iOS and Android show the app's own notification icon.
uri · up to 2,048 characters
datamap<string, string>optionalUp to 10 string key-value pairs passed to the app untouched, for deep links and in-app routing.
at most 10 keys · keys: pattern
^[A-Za-z0-9_.-]{1,64}$· values: up to 1,024 charactersbuttonsobject[]optionalUp to 2 action buttons. iPhones show them through a notification service extension.
at least 1 item · at most 2 items
collapseKeystringoptionalA newer notification with the same key replaces the older one on the device.
pattern
^[A-Za-z0-9_-]{1,64}$soundstringoptionalThe name of a sound the app ships; the device's default if unset.
1–64 characters
badgeintegeroptionalThe number shown on the iOS app icon.
min 0 · max 99999
ttlDurationOrZeroInputoptionalHow long a provider keeps trying an offline device, up to 28 days; zero delivers now or never. Defaults to one day.
urgencystringoptionalhigh(the default) asks the push service to deliver promptly, even to a locked or sleeping device;normallets it wait for a good moment to save battery, so a locked phone may show it only once woken. Device settings and the app still decide whether and how it is shown.one of
high,normaltranslationsPushTranslationsInputoptionalThe title and body in other languages, keyed by language tag (
fr,pt-BR). Each device gets the one for its own language, as it last reported it: the exact tag first, then its language (fr-CAtakesfr); a device that reported none, the contact'slocale; otherwise the shared text. A translation replaces the title and body on every platform, overrides included, and in every A/B version. Merge tags work as in the shared text.at most 30 keys
overridesobjectoptionalFields that differ on one platform, each replacing the shared one there (a whole
datamap, not merged key by key). On iOS and AndroidactionUrlmay be an app link such asmyapp://orders; the shared one and the web one must be HTTPS.
nextStepstring | nulloptionalThe id of the step to run next. Omitted, the next step in
stepsruns (after the last one the journey ends);nullends the journey here. The last step of a branch should setnull, or the enrollment continues into the steps that follow it.pattern
^[a-z0-9][a-z0-9_-]{0,63}$onUnreachableStepstringoptionalThe id of the step to go to when the contact cannot receive this channel; unset skips the send.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$onFailureStepstringoptionalThe id of the step to go to when the message cannot be queued because the plan's sending allowance is used up or its marketing contacts are past the plan's limit (recorded
skipped, reasonplan_limit_reached); later delivery failures do not branch. Unset continues tonextStep.pattern
^[a-z0-9][a-z0-9_-]{0,63}$topicIdstringoptionalSends only to contacts the topic reaches; unset sends to everyone with consent.
uuid
transactionalbooleanoptionalA service notification the contact needs whatever their marketing choices (an order shipped, a security alert): sent to every device that allows notifications without push consent or a topic, not held by quiet hours or message limits, as a transactional push is. Not for promotions.
- Branch step
6 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"branch"requiredwhereobject[]requiredConditions on the trigger event's properties; all must hold.
at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
onMatchStepstringrequiredThe id of the step to take when the conditions hold.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$otherwiseStepstring | nullrequiredThe id of the step to take when they do not;
nullends the journey.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Filter step
7 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"filter"requiredmodestringrequiredoncechecks the rules here only;continuousre-checks them before every later step.one of
once,continuousrulesobjectrequiredThe contact must match these rules.
Any of 2 shapes
- Match all
1 child attribute
allobject[]requiredEvery rule or nested group must match.
at least 1 item · at most 20 items
- Match any
1 child attribute
anyobject[]requiredAt least one rule or nested group must match.
at least 1 item · at most 20 items
onMatchStepstringrequiredThe id of the step to take when the contact matches.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$otherwiseStepstring | nulloptionalThe id of the step to take when they do not;
nullends the journey.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Split step
5 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"split"requiredpathsobject[]requiredPaths checked in order; the first whose rules match is taken.
at least 1 item · at most 5 items
2 child attributes
rulesobjectrequiredThe contact takes this path when they match.
Any of 2 shapes
- Match all
- Match any
nextStepstringrequiredThe id of the step this path leads to.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$
otherwiseStepstring | nullrequiredThe id of the step to take when no path matches;
nullends the journey.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Random split step
4 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"random_split"requiredpathsobject[]requiredTwo to five paths whose shares add up to 100. A contact takes the same path each time it enters, until the shares change.
at least 2 items · at most 5 items
2 child attributes
percentintegerrequiredShare of the contacts taking this path, in percent.
min 1 · max 99
nextStepstring | nullrequiredThe id of the step this path leads to;
nullis a holdout.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Action step
5 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"action"requiredactionobjectrequiredWhat this step does to the contact.
One of 5 shapes
- Set attribute
3 child attributes
kind"set_attribute"requiredkeystringrequiredThe contact attribute's key.
pattern
^[\p{L}\p{N}\p{M}_.-]{1,64}$valuestring | number | boolean | nullrequiredThe value to set;
nullclears it.
- Add to or remove from list attribute
3 child attributes
kindstringrequiredone of
add_to_attribute,remove_from_attributekeystringrequiredThe contact attribute's key.
pattern
^[\p{L}\p{N}\p{M}_.-]{1,64}$valuestring | number | booleanrequiredThe one item to add to, or remove from, the list; other items are kept.
- Add to list
2 child attributes
kind"add_to_list"requiredlistIdstringrequiredThe list to add the contact to.
uuid
- Remove from list
2 child attributes
kind"remove_from_list"requiredlistIdstringrequiredThe list to remove the contact from.
uuid
- Send webhook
3 child attributes
kind"webhook"requiredwebhookIdstringrequiredThe webhook endpoint to notify.
uuid
datamap<string, any>optionalExtra data sent in the
journey.action_reachedpayload.default
{}
nextStepstring | nulloptionalThe id of the step to run next. Omitted, the next step in
stepsruns (after the last one the journey ends);nullends the journey here. The last step of a branch should setnull, or the enrollment continues into the steps that follow it.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
messageLimitsMessageLimitUseInputoptionalFor the whole journey: a person over a limit skips that send and moves on.
2 child attributes
applybooleanrequiredWhether its messages count toward the workspace's message limits and are held by them.
retryForDurationInputoptionalHow long a message over a limit keeps being retried before it is skipped with reason
message_limit: whole hours, at most 48. Unset, it is skipped at once. Absent whenapplyis false.2 child attributes
valueintegerrequiredmin > 0
unitstringrequiredone of
seconds,minutes,hours,days
utmobject | nulloptionalLink tags for the journey's email, as on campaigns; unset follows the workspace.
6 child attributes
enabledbooleanrequiredsourcestringoptionalpattern
^[\p{L}\p{N}\p{M} ._\-+/]+$· 1–100 charactersmediumstringoptionalpattern
^[\p{L}\p{N}\p{M} ._\-+/]+$· 1–100 characterscampaignstringoptionalpattern
^[\p{L}\p{N}\p{M} ._\-+/]+$· 1–100 characterscontentstringoptionalpattern
^[\p{L}\p{N}\p{M} ._\-+/]+$· 1–100 characterstermstringoptionalpattern
^[\p{L}\p{N}\p{M} ._\-+/]+$· 1–100 characters
maxEntriesinteger | nulloptionalThe most enrollments the journey starts over its life;
nullor unset has no cap.min > 0 · max 100000000
minHoursBetweenSendsinteger | nulloptionalThe least time, in hours (1–168), between two of this journey's messages to one contact, across all their runs: a send due sooner waits, and is not dropped.
nullor unset: no gap.min 1 · max 168
tagsstring[]optionalTag names, up to 20, matched without case; a tag the workspace lacks is created. On update, replaces the tags whole:
[]removes them all.at most 20 items
Returns
Returns 201 Created with a Journey in data. It can also return 409 Conflict, 413 Payload Too Large or 415 Unsupported Media Type; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.
201 CreatedThe newly created journey.409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.413 Payload Too LargeThe body is larger than this operation accepts (PAYLOAD_TOO_LARGE).415 Unsupported Media TypeThe body is not JSON, or not the upload the operation takes (UNSUPPORTED_MEDIA_TYPE).
idstringrequireduuid
namestringrequiredtriggerobjectrequiredWhat starts an enrollment.
One of 6 shapes
- Event trigger
4 child attributes
type"event"requirednamestringrequiredThe event that starts an enrollment.
1–128 characters
whereobject[]optionalConditions on the event's properties; all must hold.
at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
reentryobjectrequiredWhether a contact may enter again:
once(the default);repeatableoncewaitAfterEntryhas passed since their last entry started; oronce_per_value, one run per value ofpropertyon the starting event, so a contact with two failed invoices has two runs and a repeat failure of one starts nothing. An event without that property starts no run.default
{"mode":"once"}One of 3 shapes
- Once
1 child attribute
mode"once"required
- Repeatable
2 child attributes
mode"repeatable"requiredwaitAfterEntryDurationOrZerorequiredHow long after a contact's last entry started before they may enter again, at most 3,650 days; zero lets entries overlap.
- Once per value
2 child attributes
mode"once_per_value"requiredpropertystringrequiredThe property of the starting event whose value keys a run, such as
invoice_id.1–128 characters
- List trigger
3 child attributes
type"list"requiredlistIdstringoptionalThe list whose new members enter; unset, joining any list starts it.
uuid
reentryobjectrequiredWhether a contact may enter again:
once(the default);repeatableoncewaitAfterEntryhas passed since their last entry started; oronce_per_value, one run per value ofpropertyon the starting event, so a contact with two failed invoices has two runs and a repeat failure of one starts nothing. An event without that property starts no run.default
{"mode":"once"}One of 3 shapes
- Once
1 child attribute
mode"once"required
- Repeatable
2 child attributes
mode"repeatable"requiredwaitAfterEntryDurationOrZerorequiredHow long after a contact's last entry started before they may enter again, at most 3,650 days; zero lets entries overlap.
- Once per value
2 child attributes
mode"once_per_value"requiredpropertystringrequiredThe property of the starting event whose value keys a run, such as
invoice_id.1–128 characters
- Segment trigger
4 child attributes
type"segment"requiredsegmentIdstringoptionalThe segment whose matches enter; a draft may leave it unset.
uuid
onstringrequiredenter: when a contact begins matching it;exit: when they stop. Found by the background sweep within 15 minutes.one of
enter,exit· default"enter"reentryobjectrequiredWhether a contact may enter again:
once(the default);repeatableoncewaitAfterEntryhas passed since their last entry started; oronce_per_value, one run per value ofpropertyon the starting event, so a contact with two failed invoices has two runs and a repeat failure of one starts nothing. An event without that property starts no run.default
{"mode":"once"}One of 3 shapes
- Once
1 child attribute
mode"once"required
- Repeatable
2 child attributes
mode"repeatable"requiredwaitAfterEntryDurationOrZerorequiredHow long after a contact's last entry started before they may enter again, at most 3,650 days; zero lets entries overlap.
- Once per value
2 child attributes
mode"once_per_value"requiredpropertystringrequiredThe property of the starting event whose value keys a run, such as
invoice_id.1–128 characters
- Form trigger
4 child attributes
type"form"requiredformIdstringoptionalThe form whose submissions enter; unset, any form starts it.
uuid
whereobject[]optionalConditions on the submission, such as
outcomeequalscreatedfor new contacts only; all must hold.at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
reentryobjectrequiredWhether a contact may enter again:
once(the default);repeatableoncewaitAfterEntryhas passed since their last entry started; oronce_per_value, one run per value ofpropertyon the starting event, so a contact with two failed invoices has two runs and a repeat failure of one starts nothing. An event without that property starts no run.default
{"mode":"once"}One of 3 shapes
- Once
1 child attribute
mode"once"required
- Repeatable
2 child attributes
mode"repeatable"requiredwaitAfterEntryDurationOrZerorequiredHow long after a contact's last entry started before they may enter again, at most 3,650 days; zero lets entries overlap.
- Once per value
2 child attributes
mode"once_per_value"requiredpropertystringrequiredThe property of the starting event whose value keys a run, such as
invoice_id.1–128 characters
- Attribute trigger
4 child attributes
type"attribute"requiredkeystringrequiredThe contact attribute whose change starts an enrollment.
pattern
^[\p{L}\p{N}\p{M}_.-]{1,64}$whereobject[]optionalConditions on the change:
valueis the new value,previous_valuethe old one. For a list attribute,valueequalsan item when it was added.at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
reentryobjectrequiredWhether a contact may enter again:
once(the default);repeatableoncewaitAfterEntryhas passed since their last entry started; oronce_per_value, one run per value ofpropertyon the starting event, so a contact with two failed invoices has two runs and a repeat failure of one starts nothing. An event without that property starts no run.default
{"mode":"once"}One of 3 shapes
- Once
1 child attribute
mode"once"required
- Repeatable
2 child attributes
mode"repeatable"requiredwaitAfterEntryDurationOrZerorequiredHow long after a contact's last entry started before they may enter again, at most 3,650 days; zero lets entries overlap.
- Once per value
2 child attributes
mode"once_per_value"requiredpropertystringrequiredThe property of the starting event whose value keys a run, such as
invoice_id.1–128 characters
- Date trigger
6 child attributes
fieldstringrequiredThe contact date field the journey runs from.
pattern
^[A-Za-z][A-Za-z0-9_]{0,63}$recurrencestringrequiredonceruns on the date a single time;annualrepeats every year.one of
once,annualoffsetSignedDurationrequiredHow far from the date to start, in whole days: negative before it, positive after, at most 365 days either way. Defaults to the day itself.
2 child attributes
valueintegerrequiredunitstringrequiredone of
seconds,minutes,hours,days
timestringrequiredTime of day to start, as
HH:MMin the contact's timezone, else the workspace's.pattern
^(?:[01]\d|2[0-3]):[0-5]\d$leapDaystringrequiredFor an annual 29 February date in a common year: run on 28 Feb, on 1 Mar, or skip.
one of
feb28,mar1,skip· default"feb28"type"date"required
exitConditionsobject[]requiredEvents that end a contact's enrollment early.
One of 2 shapes
- Event exit
5 child attributes
type"event"requirednamestringrequiredThe event that ends a contact's enrollment when they do it.
1–128 characters
whereobject[]optionalConditions on the event's properties; all must hold.
at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
matchTriggerPropertystringoptionalA property the event must share with the event that started the run, so paying invoice A does not end the run for invoice B. A run whose starting event lacks it is not ended by this exit.
1–128 characters
includeEarlierEventsbooleanoptionalAlso count a matching event from before the run started, checked as the run would start and before each send: a payment that arrived before its failure then starts nothing and sends nothing. Needs
matchTriggerProperty.
- Conversion goal exit
1 child attribute
type"conversion_goal"required
stepsobject[]requiredThe steps, in the order of the default path. People partway through keep the steps they entered with; an edit applies to new entries.
Any of 10 shapes
- Wait step
8 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"wait"requireddurationDurationoptionalHow long to wait; at most 365 days. Or set
untilorbusinessDays.2 child attributes
valueintegerrequiredmin > 0
unitstringrequiredone of
seconds,minutes,hours,days
untilobjectoptionalWait until a date the contact or the triggering event holds, instead.
3 child attributes
fromstringrequiredcontact: an attribute or date;event: the trigger event.one of
contact,eventkeystringrequiredThe attribute or date key (
trial_ends_at), or the event property; a dotted path reads a nested one.1–128 characters
offsetSignedDurationoptionalHow far before (negative) or after the date; 3 days before is
{ "value": -3, "unit": "days" }. At most 365 days either way.2 child attributes
valueintegerrequiredunitstringrequiredone of
seconds,minutes,hours,days
businessDaysintegeroptionalWait this many working days instead, counted in the contact's local time and ending at the same time of day: the days of
window.dayswhen set, else Monday to Friday.min 1 · max 260
windowobjectoptionalHours the wait may end in, in the contact's local time.
3 child attributes
startHourintegerrequiredHour of day (0-23) the window opens, inclusive.
min 0 · max 23
endHourintegerrequiredHour of day (1-24) the window closes; it must be after
startHour.min 1 · max 24
daysinteger[]optionalDays of the week the window is open, 0 = Sunday to 6 = Saturday; every day when left out.
at least 1 item · at most 7 items
nextStepstring | nulloptionalThe id of the step to run next. Omitted, the next step in
stepsruns (after the last one the journey ends);nullends the journey here. The last step of a branch should setnull, or the enrollment continues into the steps that follow it.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Wait-until step
7 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"wait_until"requiredeventobjectrequiredThe event to wait for, and the conditions it must meet.
2 child attributes
namestringrequiredThe event to wait for.
1–128 characters
whereobject[]optionalConditions on the event's properties; all must hold.
at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
timeoutDurationrequiredHow long to wait for the event: 1 minute to 90 days.
2 child attributes
valueintegerrequiredmin > 0
unitstringrequiredone of
seconds,minutes,hours,days
onMatchStepstringrequiredThe id of the step to take when the event happens.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$onTimeoutStepstring | nullrequiredThe id of the step to take on timeout;
nullends the journey.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Digest step
5 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"digest"requiredgatherForDurationrequiredHow long to gather events: 1 minute to 7 days.
2 child attributes
valueintegerrequiredmin > 0
unitstringrequiredone of
seconds,minutes,hours,days
nextStepstring | nulloptionalThe id of the step to run next. Omitted, the next step in
stepsruns (after the last one the journey ends);nullends the journey here. The last step of a branch should setnull, or the enrollment continues into the steps that follow it.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Email send step
10 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"send"requiredchannel"email"requiredcontentobjectrequiredThe email, as saved.
8 child attributes
subjectstringoptionalThe subject line. Merge tags are allowed.
1–998 characters
previewTextstringoptionalShown by inboxes after the subject. Merge tags are allowed; keep it near 100 characters.
1–255 characters
htmlstringoptionalThe HTML body. Rendered from the design when one is set.
1–512,000 characters
textstringoptionalThe plain-text alternative.
1–512,000 characters
fromstringoptionalThe sender address, on a verified sending domain.
1–320 characters
replyTostringoptionalWhere replies go; the part before the @ must be ASCII.
email
templateSnapshotobjectoptionalThe email: a design, or HTML. Copied from a template, or written here; later template edits do not change it.
One of 2 shapes
- DesignSnapshot
- HtmlSnapshot
translationsmap<string, object>optionalThe email in other languages, keyed by language tag (
fr,pt-BR). Each contact gets the version for theirlocale: the exact tag first, then each shorter one (fr-CAtakesfr), else the main email. A field a version leaves out is the main email's; the sender, reply-to, topic and tracking are always the main email's, and every A/B version shares the translations. Up to 30.at most 30 keys
5 child attributes
subjectstringoptionalThe subject line. Merge tags are allowed.
1–998 characters
previewTextstringoptionalShown by inboxes after the subject. Merge tags are allowed; keep it near 100 characters.
1–255 characters
htmlstringoptionalThe HTML body. Rendered from the design when one is set.
1–512,000 characters
textstringoptionalThe plain-text alternative.
1–512,000 characters
templateSnapshotobjectoptionalThe email: a design, or HTML. Copied from a template, or written here; later template edits do not change it.
nextStepstring | nulloptionalThe id of the step to run next. Omitted, the next step in
stepsruns (after the last one the journey ends);nullends the journey here. The last step of a branch should setnull, or the enrollment continues into the steps that follow it.pattern
^[a-z0-9][a-z0-9_-]{0,63}$onUnreachableStepstringoptionalThe id of the step to go to when the contact cannot receive this channel; unset skips the send.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$onFailureStepstringoptionalThe id of the step to go to when the message cannot be queued because the plan's sending allowance is used up or its marketing contacts are past the plan's limit (recorded
skipped, reasonplan_limit_reached); later delivery failures do not branch. Unset continues tonextStep.pattern
^[a-z0-9][a-z0-9_-]{0,63}$topicIdstringoptionalSends only to contacts the topic reaches; unset sends to everyone with consent.
uuid
transactionalbooleanoptionalA service message the contact needs whatever their marketing choices (an order receipt, a password reset): sent without email consent or a topic, not held by quiet hours or message limits, with no unsubscribe link, as a transactional send is. Only an address that bounced, or marked transactional email as spam, is skipped. Not for promotions.
- Push send step
10 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"send"requiredchannel"push"requiredcontentobjectrequiredThe notification. Any part may be missing on a draft.
2 child attributes
pushProjectIdstringoptionalThe push app to send through.
uuid
pushobjectoptionalThe notification content.
14 child attributes
titlestringoptionalThe notification title (up to 100 characters).
1–100 characters
bodystringoptionalThe notification text (up to 500 characters).
1–500 characters
actionUrlstringoptionalThe HTTPS page opened when the notification is tapped.
uri · up to 2,048 characters
imageUrlstringoptionalA large picture: web and Android show it; iOS needs the app's service extension.
uri · up to 2,048 characters
iconUrlstringoptionalWeb only; iOS and Android show the app's own notification icon.
uri · up to 2,048 characters
datamap<string, string>optionalUp to 10 string key-value pairs passed to the app untouched, for deep links and in-app routing.
at most 10 keys · keys: pattern
^[A-Za-z0-9_.-]{1,64}$· values: up to 1,024 charactersbuttonsobject[]optionalUp to 2 action buttons. iPhones show them through a notification service extension.
at least 1 item · at most 2 items
collapseKeystringoptionalA newer notification with the same key replaces the older one on the device.
pattern
^[A-Za-z0-9_-]{1,64}$soundstringoptionalThe name of a sound the app ships; the device's default if unset.
1–64 characters
badgeintegeroptionalThe number shown on the iOS app icon.
min 0 · max 99999
ttlDurationOrZerooptionalHow long a provider keeps trying an offline device, up to 28 days; zero delivers now or never. Defaults to one day.
urgencystringoptionalhigh(the default) asks the push service to deliver promptly, even to a locked or sleeping device;normallets it wait for a good moment to save battery, so a locked phone may show it only once woken. Device settings and the app still decide whether and how it is shown.one of
high,normaltranslationsPushTranslationsoptionalThe title and body in other languages, keyed by language tag (
fr,pt-BR). Each device gets the one for its own language, as it last reported it: the exact tag first, then its language (fr-CAtakesfr); a device that reported none, the contact'slocale; otherwise the shared text. A translation replaces the title and body on every platform, overrides included, and in every A/B version. Merge tags work as in the shared text.at most 30 keys
overridesobjectoptionalFields that differ on one platform, each replacing the shared one there (a whole
datamap, not merged key by key). On iOS and AndroidactionUrlmay be an app link such asmyapp://orders; the shared one and the web one must be HTTPS.
nextStepstring | nulloptionalThe id of the step to run next. Omitted, the next step in
stepsruns (after the last one the journey ends);nullends the journey here. The last step of a branch should setnull, or the enrollment continues into the steps that follow it.pattern
^[a-z0-9][a-z0-9_-]{0,63}$onUnreachableStepstringoptionalThe id of the step to go to when the contact cannot receive this channel; unset skips the send.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$onFailureStepstringoptionalThe id of the step to go to when the message cannot be queued because the plan's sending allowance is used up or its marketing contacts are past the plan's limit (recorded
skipped, reasonplan_limit_reached); later delivery failures do not branch. Unset continues tonextStep.pattern
^[a-z0-9][a-z0-9_-]{0,63}$topicIdstringoptionalSends only to contacts the topic reaches; unset sends to everyone with consent.
uuid
transactionalbooleanoptionalA service notification the contact needs whatever their marketing choices (an order shipped, a security alert): sent to every device that allows notifications without push consent or a topic, not held by quiet hours or message limits, as a transactional push is. Not for promotions.
- Branch step
6 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"branch"requiredwhereobject[]requiredConditions on the trigger event's properties; all must hold.
at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
onMatchStepstringrequiredThe id of the step to take when the conditions hold.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$otherwiseStepstring | nullrequiredThe id of the step to take when they do not;
nullends the journey.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Filter step
7 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"filter"requiredmodestringrequiredoncechecks the rules here only;continuousre-checks them before every later step.one of
once,continuousrulesobjectrequiredThe contact must match these rules.
Any of 2 shapes
- Match all
1 child attribute
allobject[]requiredEvery rule or nested group must match.
at least 1 item · at most 20 items
- Match any
1 child attribute
anyobject[]requiredAt least one rule or nested group must match.
at least 1 item · at most 20 items
onMatchStepstringrequiredThe id of the step to take when the contact matches.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$otherwiseStepstring | nullrequiredThe id of the step to take when they do not;
nullends the journey.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Split step
5 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"split"requiredpathsobject[]requiredPaths checked in order; the first whose rules match is taken.
at least 1 item · at most 5 items
2 child attributes
rulesobjectrequiredThe contact takes this path when they match.
Any of 2 shapes
- Match all
- Match any
nextStepstringrequiredThe id of the step this path leads to.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$
otherwiseStepstring | nullrequiredThe id of the step to take when no path matches;
nullends the journey.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Random split step
4 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"random_split"requiredpathsobject[]requiredTwo to five paths whose shares add up to 100. A contact takes the same path each time it enters, until the shares change.
at least 2 items · at most 5 items
2 child attributes
percentintegerrequiredShare of the contacts taking this path, in percent.
min 1 · max 99
nextStepstring | nullrequiredThe id of the step this path leads to;
nullis a holdout.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
- Action step
5 child attributes
idstringrequiredThe step's id, unique within the journey: transitions name it, and its metrics follow it across edits. Reusing a deleted step's id merges their metrics.
pattern
^[a-z0-9][a-z0-9_-]{0,63}$namestringoptionalA label for the step, shown in metrics.
1–255 characters
type"action"requiredactionobjectrequiredWhat this step does to the contact.
One of 5 shapes
- Set attribute
3 child attributes
kind"set_attribute"requiredkeystringrequiredThe contact attribute's key.
pattern
^[\p{L}\p{N}\p{M}_.-]{1,64}$valuestring | number | boolean | nullrequiredThe value to set;
nullclears it.
- Add to or remove from list attribute
3 child attributes
kindstringrequiredone of
add_to_attribute,remove_from_attributekeystringrequiredThe contact attribute's key.
pattern
^[\p{L}\p{N}\p{M}_.-]{1,64}$valuestring | number | booleanrequiredThe one item to add to, or remove from, the list; other items are kept.
- Add to list
2 child attributes
kind"add_to_list"requiredlistIdstringrequiredThe list to add the contact to.
uuid
- Remove from list
2 child attributes
kind"remove_from_list"requiredlistIdstringrequiredThe list to remove the contact from.
uuid
- Send webhook
3 child attributes
kind"webhook"requiredwebhookIdstringrequiredThe webhook endpoint to notify.
uuid
datamap<string, any>requiredExtra data sent in the
journey.action_reachedpayload.default
{}
nextStepstring | nulloptionalThe id of the step to run next. Omitted, the next step in
stepsruns (after the last one the journey ends);nullends the journey here. The last step of a branch should setnull, or the enrollment continues into the steps that follow it.pattern
^[a-z0-9][a-z0-9_-]{0,63}$
messageLimitsMessageLimitUserequired2 child attributes
applybooleanrequiredWhether its messages count toward the workspace's message limits and are held by them.
retryForDurationoptionalHow long a message over a limit keeps being retried before it is skipped with reason
message_limit: whole hours, at most 48. Unset, it is skipped at once. Absent whenapplyis false.2 child attributes
valueintegerrequiredmin > 0
unitstringrequiredone of
seconds,minutes,hours,days
utmobject | nullrequiredLink tags for the journey's email;
nullfollows the workspace.6 child attributes
enabledbooleanrequiredsourcestringoptionalpattern
^[\p{L}\p{N}\p{M} ._\-+/]+$· 1–100 charactersmediumstringoptionalpattern
^[\p{L}\p{N}\p{M} ._\-+/]+$· 1–100 characterscampaignstringoptionalpattern
^[\p{L}\p{N}\p{M} ._\-+/]+$· 1–100 characterscontentstringoptionalpattern
^[\p{L}\p{N}\p{M} ._\-+/]+$· 1–100 characterstermstringoptionalpattern
^[\p{L}\p{N}\p{M} ._\-+/]+$· 1–100 characters
maxEntriesinteger | nullrequiredThe most enrollments the journey starts over its life;
nullhas no cap. It is full onceenrolledCountreaches it: it staysactivebut nobody new enters.min > 0
minHoursBetweenSendsinteger | nullrequiredThe least time, in hours, between two of this journey's messages to one contact, across all their runs;
null: no gap.min 1 · max 168
enrolledCountintegerrequiredEnrollments ever started.
min 0
activeCountintegerrequiredEnrollments in progress now.
min 0
statusstringrequiredended: nobody enters and enrollments in progress were exited; it cannot restart.one of
draft,active,paused,endedpendingAgentReviewbooleanrequiredAn agent key authored or edited it and it is a draft or paused, so it waits in the agent review queue: activating needs a person's approval.
tagsstring[]requiredTag names, sorted without case.
revisionintegerrequiredRaised by every edit. Send it back as
expectedRevisionon the update so a change made since you read it is refused instead of overwritten.min > 0 · max 2147483647
createdAtstringrequireddate-time
updatedAtstringrequireddate-time
Headers on 201 Created
Idempotency-Replaystringoptionaltruewhen this is the stored response to an earlier request with the same key.one of
true