provider 2506 operations 141 docs pages
@utdk/posthog
PostHog API
Generated UTDK provider client for PostHog API. Generated UTDK provider types and OpenAPI-backed client for https://us.posthog.com/api/schema/.
Heatmap Screenshots
Optional generated docs page for
@utdk/posthog.
Heatmap Screenshots
Operations
posthog.environmentsHeatmapScreenshotsContentRetrieve
- HTTP:
GET /api/environments/{environment_id}/heatmap_screenshots/{id}/content/ - What it does: Fetch the rendered screenshot image (JPEG bytes) for a saved heatmap at a given viewport width. Returns 202 with the saved-heatmap metadata while the screenshot is still being generated.
- OpenAPI operationId:
environments_heatmap_screenshots_content_retrieve - Path params:
id - Query params:
width - Response codes:
200,202 - Transport options: None
- TypeScript: Client interface
Inputs
- Client input type:
{ [key: string]: unknown } - Client transport options: None
Outputs
- Client return type:
string - OpenAPI response codes:
200,202
import posthog from "@utdk/posthog";
type EnvironmentsHeatmapScreenshotsContentRetrieveInput = Parameters<typeof posthog.environmentsHeatmapScreenshotsContentRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
type EnvironmentsHeatmapScreenshotsContentRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsHeatmapScreenshotsContentRetrieve>>;
const result: EnvironmentsHeatmapScreenshotsContentRetrieveOutput = await posthog.environmentsHeatmapScreenshotsContentRetrieve();
// Result shape (from schema): string
posthog.heatmapScreenshotsContentRetrieve
- HTTP:
GET /api/projects/{project_id}/heatmap_screenshots/{id}/content/ - What it does: Fetch the rendered screenshot image (JPEG bytes) for a saved heatmap at a given viewport width. Returns 202 with the saved-heatmap metadata while the screenshot is still being generated.
- OpenAPI operationId:
heatmap_screenshots_content_retrieve - Path params:
id - Query params:
width - Response codes:
200,202 - Transport options: None
- TypeScript: Client interface
Inputs
- Client input type:
{ [key: string]: unknown } - Client transport options: None
Outputs
- Client return type:
string - OpenAPI response codes:
200,202
import posthog from "@utdk/posthog";
type HeatmapScreenshotsContentRetrieveInput = Parameters<typeof posthog.heatmapScreenshotsContentRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
type HeatmapScreenshotsContentRetrieveOutput = Awaited<ReturnType<typeof posthog.heatmapScreenshotsContentRetrieve>>;
const result: HeatmapScreenshotsContentRetrieveOutput = await posthog.heatmapScreenshotsContentRetrieve();
// Result shape (from schema): string