PostHog · GraphQL Specification
PostHog GraphQL Schema
PostHog does not expose a public GraphQL endpoint. Its primary API surface is a REST API documented at https://posthog.com/docs/api, with an additional HogQL query layer (SQL-like) accessible via `POST /api/projects/:project_id/query`.
Documentation
Endpoint
View on GitHub
A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession RecordingGraphQL
Overview
PostHog GraphQL Schema is a GraphQL API specification published by PostHog on the APIs.io network.
PostHog does not expose a public GraphQL endpoint. Its primary API surface is a REST API documented at https://posthog.com/docs/api, with an additional HogQL query layer (SQL-like) accessible via POST /api/projects/:project_id/query.
The specification includes 3 reference links.
Tagged areas include A/B Testing, Analytics, Feature Flags, Open Source, and Product Analytics.
Endpoint
References
- API Docs https://posthog.com/docs/api
- Query API https://posthog.com/docs/api/query
- GitHub https://github.com/PostHog/posthog