API reference / Apps
Get a PostHog funnel
How many people went through a series of events in order, within a window, in the workspace's PostHog: each step's count, its share of the step before and of the first, and the median time it took. Read only. Needs PostHog connected.
get
/api/v1/apps/posthog/funnelOther ways to call it
CLI
troopy posthog funnelMCP tool
troopy_posthog_funnelRate limit30 calls in 60 seconds, for each key
Query parameters
steps*stringThe events in order, separated by commas, like signed_up,created_project,paid
At most 1000 characters
daysintegerDays back from today, at most 180
Default 30 · At least 1 · At most 180
windowDaysintegerDays a person has to go from the first step to the last
Default 14 · At least 1 · At most 90
Response
200 · application/jsondata*object2 properties
windowDays*integersteps*array<object>5 properties
event*stringcount*numberfromPrevious*number | nullShare of the previous step that reached this one, 0 to 1
fromStart*number | nullShare of the first step that reached this one, 0 to 1
medianSeconds*number | nullMedian time from the previous step
Errors
400 invalid_inputFix the field named in detail. Each operation's schema is in /api/v1/openapi.json.
401 unauthorizedSend an API key as `Authorization: Bearer tr_live_...`. Create one in Troopy under Settings.
403 forbiddenThe key lacks a scope this operation needs, or its owner lacks the role. detail says which; create a key with the scope, or ask an organization owner or admin.
429 rate_limitedWait the number of seconds in Retry-After, then retry.