Menu

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

idstringrequired

uuid

Query parameters

startDatestringoptional

First day, inclusive, in the workspace timezone. Give with endDate.

date

endDatestringoptional

Last 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.

enrolledintegerrequired

Runs started.

min 0 · max 9007199254740991

activeintegerrequired

Runs in progress now.

min 0 · max 9007199254740991

completedintegerrequired

Runs that reached the end.

min 0 · max 9007199254740991

exitedintegerrequired

Runs ended early, by exit event or by hand.

min 0 · max 9007199254740991

historyobjectrequired

Counts per day over the report window.

7 child attributes
startDatestringrequired

First day of the window, inclusive.

date

endDatestringrequired

Last day of the window, inclusive.

date

timezonestringrequired

The workspace timezone the days are in.

basis"event_time"required

Days are counted by when each event happened.

startstringrequired

The window start as an instant.

date-time

endstringrequired

The window end as an instant.

date-time

seriesobject[]required

One entry per day in the window.

4 child attributes
datestringrequired

The day, in timezone.

date

enrolledintegerrequired

Runs started that day.

min 0 · max 9007199254740991

completedintegerrequired

Runs that reached the end that day.

min 0 · max 9007199254740991

exitedintegerrequired

Runs ended early that day.

min 0 · max 9007199254740991