Skip to main content
POST
Start one evaluation session per target

Authorizations

Authorization
string
header
required

A Recursion API key, created in the console under API keys.

Headers

x-tenant-id
string

Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.

Minimum string length: 1
x-organization-id
string

Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.

Minimum string length: 1

Body

application/json
evaluatorAgentId
string<uuid>
required

Agent whose prompt, model and limits judge each target.

targets
object
required

Explicit target session ids, or newest sessions selected by statuses, limit and optional agent_ids. A batch starts at most 20 targets.

Example:
criteria

The criteria every evaluation in this batch checks, in order: structured criteria, or (deprecated) a keyed markdown rubric. Omit to use the evaluator agent's default criteria.

Required array length: 1 - 200 elements
evaluatorAgentVersionId
string<uuid>

Optional immutable evaluator version. Omit to use its latest version.

projectId
string

Project billed for evaluator model calls. Omit to use each target session's project.

Response

OK

evaluationBatchId
string<uuid>
required
items
object[]
required