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.
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.
apiKeyx-api-key<token>id*string^jrny_[0-9a-hjkmnp-tv-z]{16,24}$Journey
application/json- response
id*JourneyId^jrny_[0-9a-hjkmnp-tv-z]{16,24}$name*stringstatus*JourneyStatus"draft""active""paused""archived"revision*stringdraft*publishedVersion*|nullpublishedAt*string|nullcreatedAt*stringupdatedAt*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.journeys.pause({ "id": "example"});{ "id": "string", "name": "string", "status": "draft", "revision": "string", "draft": { "trigger": { "type": "event", "eventName": "string" }, "rootNodeId": "string", "nodes": { "property1": { "type": "send_email", "config": { "template": "string", "senderId": "string", "templateData": { "property1": "string", "property2": "string" } }, "next": [ { "nodeId": "string" } ] }, "property2": { "type": "send_email", "config": { "template": "string", "senderId": "string", "templateData": { "property1": "string", "property2": "string" } }, "next": [ { "nodeId": "string" } ] } }, "goal": { "eventName": "string" }, "reentry": true }, "publishedVersion": -9007199254740991, "publishedAt": "string", "createdAt": "string", "updatedAt": "string"}Related documentation
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.
Publish a journey (Preview)
Preview · Available to selected organizations. Publishes the draft as the next immutable version; new runs start on it and existing runs stay on the version they entered.