provider taggers POST /api/projects/{project_id}/taggers/test_hog/
@utdk/posthog /api/projects/{project_id}/taggers/test_hog/
taggers_test_hog_create
Test Hog tagger code against sample events without saving.
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
taggersTestHogCreate
POST/api/projects/{project_id}/taggers/test_hog/
Test Hog tagger code against sample events without saving.

Parameters

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

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