provider endpoints GET /api/environments/{environment_id}/endpoints/materialization_conditions/
@utdk/posthog /api/environments/{environment_id}/endpoints/materialization_conditions/
environments_endpoints_materialization_conditions_retrieve
Get the source code of the live materialization checks, plus the rewrite contract. Lets an agent rewrite a rejected endpoint query itself: fetch these conditions, produce a semantically equivalent query that passes every check, update the endpoint with it, then confirm via materialization_status. The source is read from the running system, so it always matches the checks this instance enforces.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsEndpointsMaterializationConditionsRetrieve
GET/api/environments/{environment_id}/endpoints/materialization_conditions/
Get the source code of the live materialization checks, plus the rewrite contract. Lets an agent rewrite a rejected endpoint query itself: fetch these conditions, produce a semantically equivalent query that passes every check, update the endpoint with it, then confirm via materialization_status. The source is read from the running system, so it always matches the checks this instance enforces.

Parameters

required

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

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