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.
Returns a journey's runs, newest first, optionally filtered by status or contact. Pass nextCursor back as cursor for the next page.
apiKeyx-api-key<token>id*string^jrny_[0-9a-hjkmnp-tv-z]{16,24}$status?string"active""paused""exited""failed"contactId?string^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"});{ "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
List journeys (Preview)
Preview · Available to selected organizations. Returns the organization's journeys, newest first, optionally filtered by status. Pass nextCursor back as cursor for the next page.
Pause a journey (Preview)
Preview · Available to selected organizations. Stops new enrollment and holds every live run before its next node, including a run whose wait ends while the journey is paused. Held runs report status paused.