Get a journey run
Returns one run with every node it entered, in order: when it entered and left, how it left, and the message a send node created.
GET
Returns one run with every node it entered, in order: when it entered and left, how it left, and the message a send node created.
apiKeyheader
x-api-key<token>id*stringMatch
^jrny_[0-9a-hjkmnp-tv-z]{16,24}$runId*stringMatch
^jrun_[0-9a-hjkmnp-tv-z]{16,24}$JourneyRunDetail
application/json- response
id*JourneyRunIdMatch
^jrun_[0-9a-hjkmnp-tv-z]{16,24}$namespaceId?|null|nulljourneyId*JourneyIdMatch
^jrny_[0-9a-hjkmnp-tv-z]{16,24}$version*integerRange
-9007199254740991 <= value <= 9007199254740991contactId*ContactIdMatch
^contact_[0-9a-hjkmnp-tv-z]{16,24}$contact*|nullstatus*JourneyRunStatusValue in
"active""paused""exited""failed"exitReason*|nullfailureReason*string|nullcurrentNodeId*|nullholdReason*string|nullholdUntil*string|nulltrigger*enteredAt*stringendedAt*string|nullsteps*array<>import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.journeys.getRun({
"id": "example",
"runId": "example"
});Example Response
{
"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",
"steps": [
{
"nodeId": "string",
"type": "string",
"enteredAt": "string",
"completedAt": "string",
"outcome": "completed",
"nextNodeId": "string",
"messageId": "string",
"error": "string"
}
]
}