Consuming Endpoints From Client Code

Wire a PostHog endpoint into a client app or SDK. Covers fetching the OpenAPI spec, generating a typed client with openapi-generator or @hey-api/openapi-ts, sending the right auth header, shaping the variables payload (HogQL code_name vs insight breakdown property), handling rate-limit and materialised-endpoint error responses. Use when the user says "how do I call my endpoint", "generate a client for this", or "what auth header do I use".

gabrielmoreira Updated 17 repo stars

File contents

gabrielmoreira/agent-skills-mirror/tree/main/mirrors/repos/PostHog@posthog/products/endpoints/skills/consuming-endpoints-from-client-code commit e7b61e7055

Frequently asked questions

npx skillmds@latest add gabrielmoreira/consuming-endpoints-from-client-code