Skip to main content

List Journey Logs

Enterprise

This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.

Endpoint

/o/journey-enginge/journey-logs/list

Overview

Returns journey execution log entries. Use the endpoint path exactly as shown.

Authentication

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions

  • Read on journey_engine feature is required.
  • Additional runtime restriction: requester must be global admin.

Request Parameters

ParameterTypeRequiredDescription
api_keyStringYes (or auth_token)API key authentication
auth_tokenStringYes (or api_key)Auth token authentication
app_idStringYesApplication identifier
journeyInstanceIdStringNoFilter by journey instance ID
journeyDefinitionIdStringNoFilter by journey definition ID
statusStringNoFilter by status
startTimeStringNoLower bound for log time filter
endTimeStringNoUpper bound for log time filter

Examples

https://your-server.com/o/journey-enginge/journey-logs/list?api_key=YOUR_API_KEY&app_id=64afe321d5f9b2f77cb2c8ed&journeyDefinitionId=67164f4a1f1bd90d6354430a&status=completed

Response

Success Response

[
{
"_id": "67164f4a1f1bd90d635443aa",
"journeyInstanceId": "67164f4a1f1bd90d635443aa",
"journeyDefinitionId": "67164f4a1f1bd90d6354430a",
"status": "completed",
"time": "2024-01-01T11:30:00.000Z"
}
]

Response Fields

FieldTypeDescription
[]ArrayJourney log entries
[].journeyInstanceIdStringJourney instance ID
[].journeyDefinitionIdStringJourney definition ID
[].statusStringLog status
[].timeStringLog timestamp

Error Responses

HTTP StatusResponse
401{ "result": "User is not authorized to access this resource" }

Behavior

  1. Validates read access.
  2. Enforces global admin access.
  3. Builds filters from optional query params.
  4. Returns logs sorted by newest first.
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly.journey_logsEndpoint data source** - Source of journey log entries