provider hog_functionshog_functions POST /api/environments/{environment_id}/hog_functions/{id}/invocations/
@utdk/posthog /api/environments/{environment_id}/hog_functions/{id}/invocations/
environments_hog_functions_invocations_create
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
id path required
A UUID string identifying this hog function.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsHogFunctionsInvocationsCreate
POST/api/environments/{environment_id}/hog_functions/{id}/invocations/

Parameters

required

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

required

A UUID string identifying this hog function.

Input

required

Full function configuration to test.

Mock global variables available during test invocation.

Mock ClickHouse event data to test the function with.

When true (default), async functions like fetch() are simulated.

required

Invocation result status.

required

Execution logs from the test invocation.

Optional invocation ID for correlation.

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.environmentsHogFunctionsInvocationsCreate({
  "mock_async_functions": true
})