palbaseDocs

Palbase Journeys · API

POST/journeys/{key}/stop

Stop a journey

Stops a live journey for good: from now no one enters it and no run of it takes another step; the runs in it end stopped within moments (a page at a time), and its report stays.

Called by your server, with the project's secret key.

Path

keystring · requiredThe journey's key
curl
curl -X POST "https://<your-ref>.palbase.studio/journeys/<key>/stop" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The stopped journey

401No valid credentials

403Not the project's secret key (secret_key_required)

404The project has no journey of this key (journey_not_found)

409A journey of this key exists (journey_exists), a published journey does not change (journey_published), only a live journey stops (journey_not_live), a stopped journey is tried no more (journey_stopped), a project runs 50 journeys at once (too_many_live_journeys) and keeps 500 (too_many_journeys)

429Too many requests

503The service is unavailable for a moment; retry

defaultAn error

Operation StopJourney of journeys's contract.