Skip to main content
TroopyDocs
Open Troopy
Troopy

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/funnel

Authorization

HeaderAuthorization: Bearer <API key>
Or the headerX-API-Key: <API key>
API keyMake one in Troopy under Settings > API keys. It acts as you, in its workspace.
Scopesapps:read

Other ways to call it

CLItroopy posthog funnel
MCP tooltroopy_posthog_funnel
Rate limit30 calls in 60 seconds, for each key

Query parameters

steps*string

The events in order, separated by commas, like signed_up,created_project,paid

At most 1000 characters

daysinteger

Days back from today, at most 180

Default 30 · At least 1 · At most 180

windowDaysinteger

Days a person has to go from the first step to the last

Default 14 · At least 1 · At most 90

Response

200 · application/json
data*object
2 properties
windowDays*integer
steps*array<object>
5 properties
event*string
count*number
fromPrevious*number | null

Share of the previous step that reached this one, 0 to 1

fromStart*number | null

Share of the first step that reached this one, 0 to 1

medianSeconds*number | null

Median 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.