provider saved POST /api/environments/{environment_id}/saved/
@utdk/posthog /api/environments/{environment_id}/saved/
environments_saved_create
Create a saved heatmap for a page URL. For type 'screenshot' (the default) this enqueues a headless render of the page at each target width; poll the saved heatmap or its content endpoint until status is 'completed'. Provide 'widths' to control which viewport widths are rendered.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsSavedCreate
POST/api/environments/{environment_id}/saved/
Create a saved heatmap for a page URL. For type 'screenshot' (the default) this enqueues a headless render of the page at each target width; poll the saved heatmap or its content endpoint until status is 'completed'. Provide 'widths' to control which viewport widths are rendered.

Parameters

required

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

Input

Human-readable label for the saved heatmap.

required

Exact page URL to render and overlay heatmap data on. Wildcards are not allowed.

URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted.

Viewport widths (px, 100-3000) to render the heatmap screenshot at — one render per width. Defaults to [320, 375, 425, 768, 1024, 1440, 1920] when omitted. At most 16 widths.

Render mode: 'screenshot' (renders the page headlessly, default), 'iframe', or 'recording'. Only 'screenshot' generates image bytes. * `screenshot` - Screenshot * `iframe` - Iframe * `recording` - Recording

Set true to soft-delete the saved heatmap.

When true, ask the headless browser to dismiss cookie/consent banners before capturing the screenshot. Off by default: the blocker can stall the render on some sites and time out. Only applies to 'screenshot' heatmaps.

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.environmentsSavedCreate({
  "type": "screenshot"
})