aiendpoint.dev
ServicesPostHog

PostHog

community

Open-source product analytics with event tracking, session replays, feature flags, and A/B testing.

Visit site ↗

This is a community-generated spec

This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.

https://posthog.comapikeydeveloperdataconfidence: 90/1000 discoveries2 contributors
POSThttps://app.posthog.com/capture/

Capture an event

Parameters

eventevent name (stringrequired
api_keyproject API key (stringrequired
propertiesevent properties (objectoptional
distinct_iduser ID (stringrequired

Returns

status: 1 for success
POSThttps://app.posthog.com/api/projects/{project_id}/insights/trend/

Query analytics insights

Parameters

eventsarray of {idrequiredname, math} (array
date_toend date (stringoptional
intervalhour|day|week|month (stringoptional
date_fromstart date (stringoptional

Returns

result[] with data[], labels[], days[], count, aggregated_value
POSThttps://app.posthog.com/decide/

Get feature flags for a user

Parameters

api_keyproject key (stringrequired
distinct_iduser ID (stringrequired

Returns

featureFlags with flag_name: true/false or variant string, featureFlagPayloads