Journeys

Get a journey run (Preview)

Preview · Available to selected organizations. 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
/v1/journeys/{id}/runs/{runId}

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.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^jrny_[0-9a-hjkmnp-tv-z]{16,24}$
runId*string
Match^jrun_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

JourneyRunDetail

application/json
  1. response
id*JourneyRunId
Match^jrun_[0-9a-hjkmnp-tv-z]{16,24}$
journeyId*JourneyId
Match^jrny_[0-9a-hjkmnp-tv-z]{16,24}$
version*integer
Range-9007199254740991 <= value <= 9007199254740991
contactId*ContactId
Match^contact_[0-9a-hjkmnp-tv-z]{16,24}$
status*JourneyRunStatus
Value in"active""paused""exited""failed"
exitReason*|null
failureReason*string|null
currentNodeId*|null
holdReason*string|null
holdUntil*string|null
trigger*
enteredAt*string
endedAt*string|null
steps*array<>
Example Request
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",  "journeyId": "string",  "version": -9007199254740991,  "contactId": "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"    }  ]}

Related documentation