PostHog
PostHog is a product-analytics platform: it captures the events your product emits, groups them into people and cohorts, and gates releases behind feature flags.
Authentication
- Personal API key
Actions
Generic API request. Call any PostHog API endpoint on this connection, for the case where no shipped action covers it yet. The connection supplies the base URL, the authentication and the egress route, so only the path, query and body are yours to fill.
- Create feature flagCreate a feature flag in the connected PostHog project (POST featureflags/).
- Get feature flagRetrieve a single feature flag by id from the connected PostHog project (GET featureflags/{flagId}/).
- Get personRetrieve a single person by id from the connected PostHog project (GET persons/{personId}/).
- List cohortsList the cohorts defined in the connected PostHog project, to resolve a cohort name to the numeric id that person and insight filters take.
- List eventsList captured events in the connected PostHog project (GET events/), with optional time-window, event-name and limit filters.
- List feature flagsList feature flags in the connected PostHog project (GET featureflags/), with an optional limit.
- List insightsList saved insights in the connected PostHog project (GET insights/), with an optional limit.
- List personsList persons (identified users) in the connected PostHog project (GET persons/), with optional search and limit.
- Run HogQL queryRun an ad-hoc HogQL query against the connected PostHog project (POST query/) and return the result set.
Triggers
- New cohortStarts when a new cohort is created in the PostHog project.
- New eventStarts when PostHog captures a new event matching the poll.
- New feature flagStarts when a new feature flag is created in the PostHog project.
- New or updated insightStarts when an insight (saved chart or analysis) is created or changed in the PostHog project.
- New personStarts when a new person is created in the PostHog project.
Product names, logos and brands are the property of their respective owners and are used here for identification only. Their use does not imply endorsement by, or affiliation with, those owners.