palbaseDocs

Palbase Journeys · API

POST/journeys/stores/{store_id}/blueprints

Activate a seller blueprint for a store

Compiles and activates a sandboxed seller blueprint scoped strictly to store_id.

Called by a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.

Path

store_idstring (uuid) · requiredThe store UUID

Request body

blueprint_idstring · required
bodystring · optional
channel"push" | "email" | "sms" | "whatsapp" · required
delaystring · optional
keystring · optional
localestring · optional
namestring · optional
promo_rulestring · optional
publishboolean · optional
templatestring · optional
titlestring · optional
curl
curl -X POST "https://<your-ref>.palbase.studio/journeys/stores/<store_id>/blueprints" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"blueprint_id":"string","channel":"push"}'

Responses

201The activated store blueprint journey

400The request is malformed: a key, a limit, a cursor or a simulated person is wrong (the error says which)

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)

422The request is malformed: a key, a limit, a cursor or a simulated person is wrong (the error says which)

429Too many requests

503The service is unavailable for a moment; retry

defaultAn error

Operation ActivateStoreBlueprint of journeys's contract.