Menu

List journey definition versions

GET/v1/journeys/{id}/definitions

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

Journeys are versioned: activating a changed journey creates a new definition while contacts already in flight continue on the one they entered. This lists those versions. 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.

Path parameters

idstringrequired

uuid

Query parameters

limitintegeroptional

min > 0 · max 50 · default 20

cursorstringoptional

1–2048 characters

Returns

Returns 200 OK with a list of JourneyDefinition 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

A hash of the steps; pass it as definitionId to read that version's stats.

stepTypesstring[]required

The type of each step in this version, in order.

at most 50 items

enrollmentCountintegerrequired

Runs that followed this version.

min 0 · max 9007199254740991

firstEnrolledAtstringrequired

When the first run following this version entered.

date-time

lastEnrolledAtstringrequired

When the latest run following this version entered.

date-time

matchesCurrentStepsbooleanrequired

Whether this version is the journey's current steps.