provider endpoints POST /api/environments/{environment_id}/endpoints/{name}/materialization_preview/
@utdk/posthog /api/environments/{environment_id}/endpoints/{name}/materialization_preview/
environments_endpoints_materialization_preview_create
Preview the materialization transform for an endpoint. Shows what the query will look like after materialization, including range pair detection and bucket functions.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
name path required
string

Try it

Authentication
Configure credentials for PostHog API
environmentsEndpointsMaterializationPreviewCreate
POST/api/environments/{environment_id}/endpoints/{name}/materialization_preview/
Preview the materialization transform for an endpoint. Shows what the query will look like after materialization, including range pair detection and bucket functions.

Parameters

required

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

required

Input

Per-column bucket function overrides, e.g. {"timestamp": "hour"}

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.environmentsEndpointsMaterializationPreviewCreate()