List journey runs
Returns a journey's runs, newest first, optionally filtered by status or contact. Pass nextCursor back as cursor for the next page.
GET
Returns a journey's runs, newest first, optionally filtered by status or contact. Pass nextCursor back as cursor for the next page.
apiKeyheader
x-api-key<token>id*stringMatch
^jrny_[0-9a-hjkmnp-tv-z]{16,24}$status?stringValue in
"active""paused""exited""failed"contactId?stringMatch
^contact_[0-9a-hjkmnp-tv-z]{16,24}$limit?|nullcursor?stringJourneyRunPage
application/json- response
items*array<>nextCursor*string|nullimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.journeys.listRuns({
"id": "example"
});Example Response
{
"items": [
{
"id": "string",
"namespaceId": "string",
"journeyId": "string",
"version": -9007199254740991,
"contactId": "string",
"contact": {
"id": "string",
"name": "string",
"displayName": "string"
},
"status": "active",
"exitReason": "completed",
"failureReason": "string",
"currentNodeId": "string",
"holdReason": "string",
"holdUntil": "string",
"trigger": {
"eventId": "string",
"eventName": "string",
"properties": {
"property1": "string",
"property2": "string"
}
},
"enteredAt": "string",
"endedAt": "string"
}
],
"nextCursor": "string"
}