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
Readonjourney_enginefeature is required.- Additional runtime restriction: requester must be global admin.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | String | Yes (or auth_token) | API key authentication |
auth_token | String | Yes (or api_key) | Auth token authentication |
app_id | String | Yes | Application identifier |
journeyInstanceId | String | No | Filter by journey instance ID |
journeyDefinitionId | String | No | Filter by journey definition ID |
status | String | No | Filter by status |
startTime | String | No | Lower bound for log time filter |
endTime | String | No | Upper 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
| Field | Type | Description |
|---|---|---|
[] | Array | Journey log entries |
[].journeyInstanceId | String | Journey instance ID |
[].journeyDefinitionId | String | Journey definition ID |
[].status | String | Log status |
[].time | String | Log timestamp |
Error Responses
| HTTP Status | Response |
|---|---|
| 401 | { "result": "User is not authorized to access this resource" } |
Behavior
- Validates read access.
- Enforces global admin access.
- Builds filters from optional query params.
- Returns logs sorted by newest first.
Related Endpoints
- Journey Engine - List Journey Instances
- Journey Engine - List Journey Block Logs
- Journey Engine - Debug Journey
Implementation details
Database Collections
| Collection | Used for | Data touched by this endpoint |
|---|---|---|
countly.journey_logs | Endpoint data source | ** - Source of journey log entries |