Skip to main content
POST
Error

Autorizações

Authorization
string
header
obrigatório

A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; not_a_member (403) is about the organization named in X-Organization-Id and leaves the token good for the others.

Cabeçalhos

X-Organization-Id
string

The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.

Corpo

application/json
name
string
obrigatório
Maximum string length: 120
steps
object[]
obrigatório

Ordered — position is the step number.

Each event name appears once: a repeat is a 400. Reaching a step means "at or after the moment the previous one was reached", inclusively, so the single event that satisfied the first copy satisfies the second too — a funnel asking "did this twice" would draw 100% for a question this shape cannot ask.

Required array length: 2 - 10 elements
window_days
integer
padrão:7

Days from entering the funnel (step one) to complete it.

Intervalo obrigatório: 1 <= x <= 90

Resposta

The funnel.

funnel
object

An ordered list of event names and a completion window. Results are computed from the raw events at read time — nothing derived is stored.