This is a catch-all provider — any valid URL under
https://us.posthog.com is supported. Any PostHog API endpoint. Construct URL as https://us.posthog.com/api/{path}. For direct external source SQL, use POST /api/projects/{project_id}/query/ and follow the nested direct query example. See https://posthog.com/docs/api for full reference. The endpoints below are curated examples.Endpoints
Run an analytics query (HogQL, trends, funnels)
POSThttps://us.posthog.com/api/environments/{env_id}/query/ — Free
- SDK
- cURL
Run native SQL against a direct external data source. Keep connectionId and sendRawQuery nested inside query.
POSThttps://us.posthog.com/api/projects/{project_id}/query/ — Free
- SDK
- cURL
List feature flags
GEThttps://us.posthog.com/api/projects/{project_id}/feature_flags/ — Free
- SDK
- cURL
Query events
GEThttps://us.posthog.com/api/projects/{project_id}/events/ — Free
- SDK
- cURL
List persons (users)
GEThttps://us.posthog.com/api/projects/{project_id}/persons/ — Free
- SDK
- cURL
List saved insights
GEThttps://us.posthog.com/api/projects/{project_id}/insights/ — Free
- SDK
- cURL
List dashboards
GEThttps://us.posthog.com/api/projects/{project_id}/dashboards/ — Free
- SDK
- cURL
Replace a feature flag
PUThttps://us.posthog.com/api/projects/{project_id}/feature_flags/{flag_id}/ — Free
- SDK
- cURL
Update a feature flag
PATCHhttps://us.posthog.com/api/projects/{project_id}/feature_flags/{flag_id}/ — Free
- SDK
- cURL
Delete an annotation
DELETEhttps://us.posthog.com/api/projects/{project_id}/annotations/{annotation_id}/ — Free
- SDK
- cURL
Next Steps
All Providers
Browse all supported AI providers
Forward Proxy
Learn how to construct proxy URLs and authenticate requests