provider endpoints POST /api/projects/{project_id}/endpoints/{name}/materialization_preview/
@utdk/posthog /api/projects/{project_id}/endpoints/{name}/materialization_preview/
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.
name path required
string
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
endpointsMaterializationPreviewCreate
POST/api/projects/{project_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
required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

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