This skill guides developers through consuming PostHog data endpoints from external codebases such as mobile apps, Node.js backends, and customer dashboards without modifying PostHog source code. It assists with retrieving OpenAPI 3.0 specs, generating typed client code for TypeScript, Python, or Go using tools like @hey-api/openapi-ts or openapi-generator, configuring scoped personal API key authentication, structuring HogQL and insight variable payloads, and handling materialised endpoint requirements and rate limits.
主要功能
01Enforces authentication best practices and scoped personal API key usage
02Generates typed client SDKs in TypeScript, Python, and Go from OpenAPI specs
03Provides troubleshooting guidance for HTTP 400, 401, 403, and 429 status codes
0463 GitHub stars
05Validates and shapes request payloads for HogQL and insight query endpoints
06Handles materialised endpoint variable requirements and error resolution
使用场景
01Integrating custom PostHog analytics and HogQL endpoints into a backend service
02Generating typed TypeScript or Python SDK clients using OpenAPI code generators
03Debugging authentication, rate limits, or missing variable errors on endpoint requests