provider endpoints GET /api/environments/{environment_id}/endpoints/{name}/openapi.json/
@utdk/posthog /api/environments/{environment_id}/endpoints/{name}/openapi.json/
environments_endpoints_openapi_spec_retrieve
Get OpenAPI 3.0 specification for this endpoint. Use this to generate typed SDK clients.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
name path required
string
version query
Specific endpoint version to generate the spec for. Defaults to latest.
integer

Try it

Authentication
Configure credentials for PostHog API
environmentsEndpointsOpenapiSpecRetrieve
GET/api/environments/{environment_id}/endpoints/{name}/openapi.json/
Get OpenAPI 3.0 specification for this endpoint. Use this to generate typed SDK clients.

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

required

Specific endpoint version to generate the spec for. Defaults to latest.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsEndpointsOpenapiSpecRetrieve()