Journeys

List journey runs (Preview)

Preview · Available to selected organizations. Returns a journey's runs, newest first, optionally filtered by status or contact. Pass nextCursor back as cursor for the next page.

GET
/v1/journeys/{id}/runs

Returns a journey's runs, newest first, optionally filtered by status or contact. Pass nextCursor back as cursor for the next page.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

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

Query Parameters

status?string
Value in"active""paused""exited""failed"
contactId?string
Match^contact_[0-9a-hjkmnp-tv-z]{16,24}$
limit?|null
cursor?string

Response Body

JourneyRunPage

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
import { 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",      "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"    }  ],  "nextCursor": "string"}

Related documentation