Journeys
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
idstringrequireduuid
Query parameters
limitintegeroptionalmin > 0 · max 50 · default
20cursorstringoptional1–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.
idstringrequiredA hash of the steps; pass it as
definitionIdto read that version's stats.stepTypesstring[]requiredThe type of each step in this version, in order.
at most 50 items
enrollmentCountintegerrequiredRuns that followed this version.
min 0 · max 9007199254740991
firstEnrolledAtstringrequiredWhen the first run following this version entered.
date-time
lastEnrolledAtstringrequiredWhen the latest run following this version entered.
date-time
matchesCurrentStepsbooleanrequiredWhether this version is the journey's current steps.