palbaseDocs

Palbase Analytics · API

POST/analytics/funnel

Run a funnel

How many people took each step — event names, in order — each within the conversion window of their first; in strict order, any other event between breaks the chain. A step's conversion rate is its share of the first step's.

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

Request body

conversion_window_secondsinteger · optionalHow long after the first step the last may be (an hour unless said).
stepsstring[] · required2 to 10 event names, in order.
strict_orderboolean · optionalAny other funnel event between steps breaks the chain.
window_secondsinteger · optionalHow far back (an hour unless said).
curl
curl -X POST "https://<your-ref>.palbase.studio/analytics/funnel" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"steps":["string"]}'

Responses

200The steps

400The request is malformed, or what it sends breaks a limit (the error names which: the SDKs' codes)

401No key, or not a key of this project, or a token that is not valid (the edge's answer)

403Not the project's secret key

429The project is sending analytics faster than its per-second limit (rate_limited), or its quota for the period is used up (quota_exceeded); Retry-After says when to try again

503The platform could not take or answer this now; nothing was kept, and retrying is safe (Retry-After)

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation RunFunnel of analytics's contract.