← Tools Reference

PostHog

Product analytics platform

API key5 toolshttps://app.posthog.com/api
POST
posthog_capture_event
Capture an analytics event

/capture

3 parameters
ParamTypeRequiredDescription
eventstringrequiredEvent name
distinct_idstringrequiredUser identifier
propertiesobjectoptionalEvent properties
GET
posthog_get_persons
List all persons

/projects/{project_id}/persons

2 parameters
ParamTypeRequiredDescription
project_idstringrequiredProject ID
limitintegeroptionalNumber of results
GET
posthog_get_events
List events

/projects/{project_id}/events

3 parameters
ParamTypeRequiredDescription
project_idstringrequiredProject ID
eventstringoptionalFilter by event name
limitintegeroptionalNumber of results
GET
posthog_get_insights
List saved insights

/projects/{project_id}/insights

2 parameters
ParamTypeRequiredDescription
project_idstringrequiredProject ID
limitintegeroptionalNumber of results
POST
posthog_create_insight
Create a new insight/query

/projects/{project_id}/insights

3 parameters
ParamTypeRequiredDescription
project_idstringrequiredProject ID
namestringrequiredInsight name
filtersobjectrequiredQuery filters