List a contact's journey enrollmentsMenu

List a contact's journey enrollments

GET/v1/contacts/{id}/journeys

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

Works with integration, agent and partner keys.

Lists every journey enrollment of this contact, newest first: active while it is still moving through the steps, completed at the end, exited when it left early, with exitReason saying why. Pass status=active for the journeys they are in now.

Path parameters

idstringrequired

Kirora's id for the contact, your own with idType=externalId, or its email address with idType=email, URL-encoded (@ as %40).

1–255 characters

Query parameters

limitintegeroptional

How many items a page holds: 1 to 100, 20 by default.

min > 0 · max 100 · default 20

cursorstringoptional

Where the page starts: the previous page's meta.pagination.nextCursor. Omit it for the first page, and send the same filters with it.

1–2,048 characters

statusstringoptional

Only enrollments in this status: active for the journeys they are in now.

one of active, completed, exited

idTypestringoptional

What {id} is: Kirora's id for the contact (id, the default), your own (externalId, as set with identify) or its email address (email, matched trimmed and without case).

one of id, externalId, email · default "id"

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 list of JourneyEnrollment 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

uuid

journeyobjectrequired

The journey enrolled in.

3 child attributes
idstringrequired

uuid

namestringrequired

The journey's current name.

statusstringrequired

one of draft, active, paused, ended

statusstringrequired

one of active, completed, exited

currentStepobject | nullrequired

The step the enrollment is on; null once it has ended. After a wait it is already the step that follows, due at nextAt.

3 child attributes
idstringrequired

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

nextAtstring | nullrequired

When the current step runs: the end of the wait before it, or a wait_until step's timeout (its event can end it sooner). null once ended, while the step is running, and while the journey is paused.

date-time

enteredAtstringrequired

date-time

endedAtstring | nullrequired

date-time

exitReasonstring | nullrequired

Set only on exited: conversion_goal_reached (a conversion goal was met), exit_event (an exit event happened), no_longer_matches (a continuous filter stopped matching), removed_by_person or journey_ended.

one of conversion_goal_reached, exit_event, no_longer_matches, removed_by_person, journey_ended