Skip to main content
2 of 2
added 35 characters in body

Determining the last entry date on a journey via API

I'm trying to analyze our running journeys automatically and would like to retrieve the information when was the last time someone entered a given journey. No identifiable information is necessary - just when was the last time the event fired someone into a journey.

Does anyone know if we can find information like this anywhere within MC?


The endpoint GET interaction/v1/interactions/key:{key} would be the obvious choice, but from it we can only learn what were the creation, modification and publish dates.

I tried to find the last entry date within three other endpoints retrieved from the Interaction REST Discovery Document:

1. GET interaction/v1/getTriggerStatistics/{eventDefinitionID}

"getTriggerStatistics": {
    "path": "triggerstats/{eventDefinitionID}",
    "httpMethod": "get",
    "description": "Retrieve trigger statistics",
    "parameters": {
        "eventDefinitionID": "Event definition Id"
    }
}

This can be useful for volumes entering a journey, but does not contain any information about dates.


2. GET interactions/v1/history

"getHistory": {
    "path": "history",
    "httpMethod": "get",
    "description": "Retrieve a collection of history.",
    "parameters": {}
}

This is an OK, call, but it actually does not return anything of value:

{
"count": 0,
"page": 1,
"pageSize": 50,
    "links": {
        "self": {
            "href": "/v1/history"
        }
    },
    "items": []
}

3. GET interactions/v1/interactions/journeyhistory/download

"downloadJourneyHistoryGet": {
    "path": "interactions/journeyhistory/download",
    "httpMethod": "get",
    "description": "Download Journey history",
    "parameters": {}
}

This one straight up returns a 500 Internal Server Error, but returns an interesting message with the error 400 if I remove the last /download route:

{
    "message": "Must provide a valid ID or Key parameter",
    "errorcode": 10005,
    "documentation": ""
}

Any attempts to include the id or key failed (Status 404):

- interaction/v1/interactions/journeyhistory/{id}
- interaction/v1/interactions/{id}/journeyhistory
- interaction/v1/interactions/{id}/journeyhistory/download
- interaction/v1/interactions/journeyhistory/key:{key}
- interaction/v1/interactions/key:{key}/journeyhistory
- interaction/v1/interactions/key:{key}/journeyhistory/download

Does anyone know if there's some endpoint that could have this information?