# soundsguyza/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".


- Author: Aluna Africa (https://app.skillsync.com/soundsguyza)
- Price: Free
- Version: 1

## Files

- SKILL.md (13239 bytes)

## How to use it

1. Connect the Skillsync MCP server: https://app.skillsync.com/mcp (OAuth sign-in).
2. Add it to your library: https://app.skillsync.com/soundsguyza/consuming-endpoints-from-client-code
3. Load it with the get_skill tool: `get_skill("soundsguyza/consuming-endpoints-from-client-code")`, then follow its instructions.
