Skip to Content

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
/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}$
namespaceId?|null|null
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}$
contact*|null
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",
  "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"
    }
  ]
}

Related documentation