provider taggers POST /api/environments/{environment_id}/taggers/test_hog/
@utdk/posthog /api/environments/{environment_id}/taggers/test_hog/
environments_taggers_test_hog_create
Test Hog tagger code against sample events without saving.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsTaggersTestHogCreate
POST/api/environments/{environment_id}/taggers/test_hog/
Test Hog tagger code against sample events without saving.

Parameters

required

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

Input

required

Hog source code to test. Return a tag name string, a list of tag name strings, or null.

Number of recent $ai_generation events to test against (1-10, default 5).

Optional tag whitelist. Returned tags outside this list are filtered out.

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.environmentsTaggersTestHogCreate({
  "sample_count": 5
})