Retrieve a journey's metrics step by stepMenu

Retrieve a journey's metrics step by step

GET/v1/journeys/{id}/step-metrics

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

Works with integration, agent and partner keys.

Where people are and what each step did, by step id across every version of the journey, so a step keeps its counts when others are added or moved. It counts the enrollments that entered the journey in the window (all time by default), wherever they are now; GET /v1/journeys/{id}/metrics counts by when each thing happened instead. Send steps carry their messages (email or push) and conversions; a random split, each path and how it converted. Deleting a contact deletes their runs of the journey and those messages, so a past window can later show less than it did.

Path parameters

idstringrequired

The journey's id.

uuid

Query parameters

fromstringoptional

Count only the enrollments that entered from then, inclusive: a date-time, or a date meaning the start of that day in the workspace timezone. Give with to; omit both for all time.

tostringoptional

Count only the enrollments that entered before then, exclusive, in the same forms. To include a whole last day, pass the day after it. No later than the end of today; a window touches at most 366 days. Give with from.

includeRemovedStepsstringoptional

true: also the steps no longer in the journey that enrollments passed through, with removed: true.

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 JourneyStepMetrics in data. Otherwise returns an error; Errors lists every code and which to retry.

generatedAtstringrequired

When the counters were read.

date-time

fromstring | nullrequired

Start of the window whose entering enrollments count; null for all time.

date-time

tostring | nullrequired

End of that window, exclusive.

date-time

stepsobject[]required

The journey's steps in order, by id across every version of the journey, then any removed ones asked for.

15 child attributes
stepIdstringrequired

The step's id.

namestring | nullrequired

The step's name, if it has one.

typestringrequired

The step type.

one of wait, wait_until, digest, send, branch, filter, split, random_split, action

removedbooleanrequired

Whether the step is no longer in the journey (with includeRemovedSteps).

enteredintegerrequired

Enrollments that reached this step, counted once each.

min 0

passedintegerrequired

Enrollments that reached this step and went on from it.

min 0

currentlyHereintegerrequired

Enrollments on this step now.

min 0

waitingHereintegerrequired

Of currentlyHere, those waiting out a timer or a due send.

min 0

completedHereintegerrequired

Enrollments that finished the journey at this step.

min 0

exitedHereintegerrequired

Enrollments that were ended early while on this step.

min 0

nextStepsobject[]required

Where enrollments went on to from this step: a decision step's paths, each by the step it leads to.

2 child attributes
nextStepIdstringrequired

The id of the step they went on to.

countintegerrequired

Enrollments that went there, counted once each.

min 0

emailJourneyEmailCountsoptional

On an email send step: the messages it created.

15 child attributes
createdintegerrequired

Messages created.

min 0

queuedintegerrequired

Waiting to be sent.

min 0

sendingintegerrequired

Being handed to the provider.

min 0

failedintegerrequired

Could not be sent.

min 0

skippedintegerrequired

Not sent, such as for a missing consent or a limit.

min 0

sentintegerrequired

Handed to the provider, whatever happened after.

min 0

deliveredintegerrequired

Confirmed delivered, whatever happened after; test sends to [email protected] included (see simulated).

min 0

bouncedintegerrequired

Rejected by the recipient server; a test send to [email protected] is not counted.

min 0

complainedintegerrequired

Marked as spam by the recipient; a test send to [email protected] is not counted.

min 0

openedintegerrequired

Opened at least once.

min 0

openedByMachineintegerrequired

Of opened, those only a machine opened: a mail app fetched its images with no reader (Apple Mail Privacy Protection, Gmail's prefetch on delivery) or a mail security scanner checked it.

min 0

clickedintegerrequired

With a link clicked at least once, by a person.

min 0

clickedByMachineintegerrequired

Whose links a machine followed, such as a mail security scanner; counted in neither clicked nor opened.

min 0

unsubscribedintegerrequired

Whose recipient opted out through the email's link.

min 0

simulatedintegerrequired

Of sent, test sends whose outcome was acted out: those to delivered@, bounce@ or [email protected] (the transactional guide's "Test addresses"). The bounce and complaint rates leave them out.

min 0

pushJourneyPushCountsoptional

On a push send step: the messages it created.

8 child attributes
createdintegerrequired

Messages created.

min 0

queuedintegerrequired

Waiting to be sent.

min 0

sendingintegerrequired

Being handed to the provider.

min 0

failedintegerrequired

Could not be sent.

min 0

skippedintegerrequired

Not sent, such as for a missing consent or a limit.

min 0

sentintegerrequired

Handed to the provider, whatever happened after.

min 0

openedintegerrequired

Opened at least once.

min 0

clickedintegerrequired

With a link clicked at least once, by a person.

min 0

conversionsJourneyConversions[]optional

On a send step: conversions credited to its messages, per conversion goal.

4 child attributes
conversionGoalobjectrequired

The conversion goal.

2 child attributes
idstringrequired

uuid

eventNamestringrequired

The event the conversion goal counts.

countintegerrequired

Conversions credited to the journey's messages.

min 0

revenueobject | nullrequired

The total of the goal's value; null when it reads no value, or when withheld.

2 child attributes
currencystring | nullrequired

The goal's currency; null when it names none.

valuenumberrequired

Gross, before refunds.

min 0

revenueWithheldbooleanrequired

True when the goal's value property is a masked attribute this viewer may not see, so revenue is null.

randomSplitobjectoptional

On a random split step: each path and how it converted.

1 child attribute
pathsobject[]required
4 child attributes
percentintegerrequired

The path's share of enrollments, as set.

min 0

nextStepIdstring | nullrequired

The id of the step it leads to; null is the holdout.

countintegerrequired

Enrollments that took it.

min 0

conversionGoalsobject[]required

One entry per journey conversion goal; reached by an event it counts, sent or not.

3 child attributes
conversionGoalIdstringrequired

uuid

contactsintegerrequired

Of those enrollments' contacts, how many did an event the conversion goal counts within its window after the split.

min 0

ratenumber | nullrequired

contacts / count; null with no enrollments. Against the holdout, the lift.