Aprovan Registry
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/.

Import sample

import posthog from "@utdk/posthog"

Factory sample

import { createPosthogClient } from "@utdk/posthog"
Provider path
posthog
Source API title
PostHog API
Version
1.0.0
Generated
Jul 12, 2026, 9:26 PM
Homepage
Open site
API spec
View spec
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