Skip to content

Customer Journey API

Get Journey stats

Anchor link to

GET https://journey.pushwoosh.com/api/journey/{id}/statistics/external

Returns statistics for a Customer Journey by its ID. Replace {id} in the URL with the Journey ID from the journey canvas page URL:

Journey ID in the Journey canvas URL

Send a GET request with no body.

Request headers

Anchor link to
NameRequiredValueDescription
AuthorizationYesApi <server_api_token>Server API token.

Request example

Anchor link to
Terminal window
curl --location --request GET 'https://journey.pushwoosh.com/api/journey/<journey_id>/statistics/external' \
--header 'Authorization: Api <YOUR API TOKEN>'

Response example

Anchor link to
{
"payload": {
"title": "Journey Title",
"points": [{
"pointTitle": "First Point Title",
"campaignCode": "AAAAA-00000",
"presetCode": "12345-67890",
"pointStat": {
"sent": 22648,
"opened": 60,
"conversion": 0.26492405510420347
}
}]
}
}

In-app pointStat fields

Anchor link to

The fields inside pointStat depend on the journey element’s channel. In-app elements return the metrics below instead of the sent, opened, and conversion fields shown in the response example above.

FieldTypeDescription
showsnumberNumber of times in-app messages were displayed to users. Labeled Impressions in Journey statistics.
interactionsnumberNumber of user interactions with the in-app message (for example, button clicks). Labeled Interactions in Journey statistics.
skippednumberNumber of times users skipped or dismissed the in-app message without interacting. Labeled In-App Skips in Journey statistics.

In-app response example

Anchor link to
{
"payload": {
"title": "Journey Title",
"points": [{
"pointTitle": "In-App element title",
"campaignCode": "AAAAA-00000",
"presetCode": "12345-67890",
"pointStat": {
"shows": 3148,
"interactions": 2759,
"skipped": 36
}
}]
}
}

Remove users from journeys

Anchor link to

POST https://journey.pushwoosh.com/api/journey/drop-users/external

Removes a list of users from all or specific active journeys.

Request headers

Anchor link to
NameRequiredValueDescription
Content-TypeYesapplication/json
AuthorizationYesApi <server_api_token>Server API token.

Request body

Anchor link to
FieldRequiredTypeDescription
user_idsYesstring[]List of User IDs to remove from journeys.
journey_uuidsRequired if all_journeys is not provided or falsestring[]List of Journey IDs to remove users from.
all_journeysRequired if journey_uuids is not providedbooleanIf true, users are removed from all journeys. If false, journey_uuids must be provided.

Request example

Anchor link to
Remove users from all journeys
{
"user_ids": ["user1", "user2", "user3"],
"all_journeys": true
}
Remove users from specific journeys
{
"user_ids": ["user1", "user2"],
"journey_uuids": ["journey-uuid-1", "journey-uuid-2"]
}

Response example

Anchor link to
{
"success": true
}