provider evaluation_runs POST /api/environments/{environment_id}/evaluation_runs/
@utdk/posthog /api/environments/{environment_id}/evaluation_runs/
environments_evaluation_runs_create
Create a new evaluation run. This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsEvaluationRunsCreate
POST/api/environments/{environment_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

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

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