Journeys
Retrieve journey statistics
GET/v1/journeys/{id}/stats
Requires an API key with the journeys:read scope. About keys and scopes
Entry, completion and exit counters for one journey.
Path parameters
idstringrequireduuid
Query parameters
startDatestringoptionalFirst day, inclusive, in the workspace timezone. Give with
endDate.date
endDatestringoptionalLast day, inclusive, no later than today. Give with
startDate; a window is at most 366 days. Omit both for the last 30 days.date
Returns
Returns 200 OK with a JourneyStats in data. Otherwise returns an error; Errors lists every code and which to retry.
enrolledintegerrequiredRuns started.
min 0 · max 9007199254740991
activeintegerrequiredRuns in progress now.
min 0 · max 9007199254740991
completedintegerrequiredRuns that reached the end.
min 0 · max 9007199254740991
exitedintegerrequiredRuns ended early, by exit event or by hand.
min 0 · max 9007199254740991
historyobjectrequiredCounts per day over the report window.
7 child attributes
startDatestringrequiredFirst day of the window, inclusive.
date
endDatestringrequiredLast day of the window, inclusive.
date
timezonestringrequiredThe workspace timezone the days are in.
basis"event_time"requiredDays are counted by when each event happened.
startstringrequiredThe window start as an instant.
date-time
endstringrequiredThe window end as an instant.
date-time
seriesobject[]requiredOne entry per day in the window.
4 child attributes
datestringrequiredThe day, in
timezone.date
enrolledintegerrequiredRuns started that day.
min 0 · max 9007199254740991
completedintegerrequiredRuns that reached the end that day.
min 0 · max 9007199254740991
exitedintegerrequiredRuns ended early that day.
min 0 · max 9007199254740991