provider endpoints GET
/api/projects/{project_id}/endpoints/{name}/openapi.json/ @utdk/posthog
/api/projects/{project_id}/endpoints/{name}/openapi.json/ endpoints_openapi_spec_retrieve
Get OpenAPI 3.0 specification for this endpoint. Use this to generate typed SDK clients.
- name path required
- string
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
- version query
- Specific endpoint version to generate the spec for. Defaults to latest.
- integer
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.endpointsOpenapiSpecRetrieve()