provider hog_functionshog_functions POST /api/projects/{project_id}/hog_functions/{id}/invocations/
@utdk/posthog /api/projects/{project_id}/hog_functions/{id}/invocations/
hog_functions_invocations_create
id path required
A UUID string identifying this hog function.
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
hogFunctionsInvocationsCreate
POST/api/projects/{project_id}/hog_functions/{id}/invocations/

Parameters

required

A UUID string identifying this hog function.

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

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