provider evaluation_runs POST /api/projects/{project_id}/evaluation_runs/
@utdk/posthog /api/projects/{project_id}/evaluation_runs/
evaluation_runs_create
Create a new evaluation run. This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation.
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
evaluationRunsCreate
POST/api/projects/{project_id}/evaluation_runs/
Create a new evaluation run. This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation.

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

UUID of the evaluation to run.

required

UUID of the $ai_generation event to evaluate.

required

ISO 8601 timestamp of the target event (needed for efficient ClickHouse lookup).

Event name. Defaults to '$ai_generation'.

Distinct ID of the event (optional, improves lookup performance).

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.evaluationRunsCreate({
  "event": "$ai_generation"
})