Palbase Journeys · API
/journeys/simulateWalk a person through a journey
Walks a made-up person through a journey — the project's by key, or a definition not saved yet — as the engine would: each step, when, what it came to and what it would have done, and how the run ends. Waits take their time on paper; nothing is sent, given or written.
Called by your server, with the project's secret key.
Request body
definitionobject · optionalA journey: who enters (entry), the steps each person who entered goes through from start, what the journey is for (goal) and what takes a person out (exit). Steps are keyed by id; each does one thing and names the step after it (next; none, or end, ends the person's run). A person is in a journey once at a time.keystring · optionalThe project's journey to walk; or definitionpersonobject · requiredWho walks: their properties and audiences when they enter, where they are, and what they do after.startstring (date-time) · optionalWhen the person enters; now unless it sayscurl -X POST "https://<your-ref>.palbase.studio/journeys/simulate" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"person":{"audiences":["string"],"events":[{"after":"string","name":"string"}],"properties":{},"timezone":"string","user_id":"string"}}'Responses
200The person's way through
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)
413The request body is too large (request_too_large)
422The definition breaks a rule (invalid_journey): every problem, each at its path with what to do about it
429Too many requests
503The service is unavailable for a moment; retry
defaultAn error
Operation SimulateJourney of journeys's contract.