palbaseDocs

Palbase Journeys · API

POST/journeys/validate

Check a definition

Checks a definition without saving it: every problem, each at its path with what to do about it. A valid one is the same journey POST /journeys makes.

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

Request body

definitionobject · requiredThe definition to check
curl
curl -X POST "https://<your-ref>.palbase.studio/journeys/validate" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"definition":{}}'

Responses

200What the check found

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)

413The request body is too large (request_too_large)

429Too many requests

503The service is unavailable for a moment; retry

defaultAn error

Operation ValidateJourney of journeys's contract.