Skill / SKILL.md

Consuming Endpoints From Client Code

PostHog/skills

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".
1 views 80 repository starsUpdated Nov 28, 2026
Overview

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".

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/PostHog/skills' skill-source

Use the complete skill-source/skills/omnibus/consuming-endpoints-from-client-code directory with your client’s skill installer.

  • skills/omnibus/consuming-endpoints-from-client-code

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/omnibus/consuming-endpoints-from-client-code

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
721e77be18256780ffbb9cf0b4843e91b711d7f4d913ae3365c1718552e8f505
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills