List journeysMenu

List journeys

GET/v1/journeys

Requires an API key with the journeys:read scope. About keys and scopes

Works with integration, agent and partner keys.

Returns journeys in this workspace. Pass status to list only journeys in that state. Results are cursor-paginated: pass meta.pagination.nextCursor back as cursor until it comes back null. The cursor is opaque — do not construct or parse one. Failed and skipped messages are in GET /v1/journeys/{id}/metrics, over a window you choose.

Query parameters

limitintegeroptional

How many items a page holds: 1 to 100, 20 by default.

min > 0 · max 100 · default 20

cursorstringoptional

Where the page starts: the previous page's meta.pagination.nextCursor. Omit it for the first page, and send the same filters with it.

1–2,048 characters

querystringoptional

Part of the journey's name, ignoring case.

1–200 characters

statusstringoptional

Only journeys in this status.

one of draft, active, paused, ended

tagstringoptional

Only items carrying this tag, its name matched without case.

1–64 characters

pendingAgentReviewstringoptional

true: only journeys waiting in the agent review queue; false: only those not.

one of true, false

Header parameters

Kirora-Workspacestringoptional

Partner 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}$

Returns

Returns 200 OK with a list of JourneyListItem objects in data, and the next page's cursor in meta (see pagination). Otherwise returns an error; Errors lists every code and which to retry.

idstringrequired

uuid

namestringrequired
triggerobjectrequired

What starts an enrollment.

One of 6 shapes
Event trigger
4 child attributes
type"event"required
namestringrequired

The event that starts an enrollment.

1–128 characters

whereobject[]optional

Conditions on the event's properties; all must hold.

at least 1 item · at most 5 items

3 child attributes
propertystringrequired

The event property key.

1–64 characters

operatorstringrequired

notEquals also matches an event without the property. equals and notEquals compare the property as text, ignoring case and accents.

one of equals, notEquals, gt, gte, lt, lte

valuestringrequired

What to compare with, as text ("pro", "true"); a number ("50") for gt, gte, lt and lte.

up to 255 characters

reentryobjectrequired

Whether a contact may enter again: once (the default); repeatable once waitAfterEntry has passed since their last entry started; or once_per_value, one run per value of property on 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"required
waitAfterEntryDurationOrZerorequired

How 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"required
propertystringrequired

The property of the starting event whose value keys a run, such as invoice_id.

1–128 characters

List trigger
3 child attributes
type"list"required
listIdstringoptional

The list whose new members enter; unset, joining any list starts it.

uuid

reentryobjectrequired

Whether a contact may enter again: once (the default); repeatable once waitAfterEntry has passed since their last entry started; or once_per_value, one run per value of property on 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"required
waitAfterEntryDurationOrZerorequired

How 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"required
propertystringrequired

The property of the starting event whose value keys a run, such as invoice_id.

1–128 characters

Segment trigger
4 child attributes
type"segment"required
segmentIdstringoptional

The segment whose matches enter; a draft may leave it unset.

uuid

onstringrequired

enter: when a contact begins matching it; exit: when they stop. Found by the background sweep within 15 minutes.

one of enter, exit · default "enter"

reentryobjectrequired

Whether a contact may enter again: once (the default); repeatable once waitAfterEntry has passed since their last entry started; or once_per_value, one run per value of property on 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"required
waitAfterEntryDurationOrZerorequired

How 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"required
propertystringrequired

The property of the starting event whose value keys a run, such as invoice_id.

1–128 characters

Form trigger
4 child attributes
type"form"required
formIdstringoptional

The form whose submissions enter; unset, any form starts it.

uuid

whereobject[]optional

Conditions on the submission, such as outcome equals created for new contacts only; all must hold.

at least 1 item · at most 5 items

3 child attributes
propertystringrequired

The event property key.

1–64 characters

operatorstringrequired

notEquals also matches an event without the property. equals and notEquals compare the property as text, ignoring case and accents.

one of equals, notEquals, gt, gte, lt, lte

valuestringrequired

What to compare with, as text ("pro", "true"); a number ("50") for gt, gte, lt and lte.

up to 255 characters

reentryobjectrequired

Whether a contact may enter again: once (the default); repeatable once waitAfterEntry has passed since their last entry started; or once_per_value, one run per value of property on 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"required
waitAfterEntryDurationOrZerorequired

How 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"required
propertystringrequired

The property of the starting event whose value keys a run, such as invoice_id.

1–128 characters

Attribute trigger
4 child attributes
type"attribute"required
keystringrequired

The contact attribute whose change starts an enrollment.

pattern ^[\p{L}\p{N}\p{M}_.-]{1,64}$

whereobject[]optional

Conditions on the change: value is the new value, previous_value the old one. For a list attribute, value equals an item when it was added.

at least 1 item · at most 5 items

3 child attributes
propertystringrequired

The event property key.

1–64 characters

operatorstringrequired

notEquals also matches an event without the property. equals and notEquals compare the property as text, ignoring case and accents.

one of equals, notEquals, gt, gte, lt, lte

valuestringrequired

What to compare with, as text ("pro", "true"); a number ("50") for gt, gte, lt and lte.

up to 255 characters

reentryobjectrequired

Whether a contact may enter again: once (the default); repeatable once waitAfterEntry has passed since their last entry started; or once_per_value, one run per value of property on 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"required
waitAfterEntryDurationOrZerorequired

How 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"required
propertystringrequired

The property of the starting event whose value keys a run, such as invoice_id.

1–128 characters

Date trigger
6 child attributes
fieldstringrequired

The contact date field the journey runs from.

pattern ^[A-Za-z][A-Za-z0-9_]{0,63}$

recurrencestringrequired

once runs on the date a single time; annual repeats every year.

one of once, annual

offsetSignedDurationrequired

How 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
valueintegerrequired
unitstringrequired

one of seconds, minutes, hours, days

timestringrequired

Time of day to start, as HH:MM in the contact's timezone, else the workspace's.

pattern ^(?:[01]\d|2[0-3]):[0-5]\d$

leapDaystringrequired

For 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
maxEntriesinteger | nullrequired

The most enrollments the journey starts over its life; null has no cap. It is full once enrolledCount reaches it: it stays active but nobody new enters.

min > 0

enrolledCountintegerrequired

Enrollments ever started.

min 0

activeCountintegerrequired

Enrollments in progress now.

min 0

statusstringrequired

ended: nobody enters and enrollments in progress were exited; it cannot restart.

one of draft, active, paused, ended

pendingAgentReviewbooleanrequired

An 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[]required

Tag names, sorted without case.

createdAtstringrequired

date-time

updatedAtstringrequired

date-time