Evals API
HTTP API for Evals: analytics, Evaluations, datasets, runs, monitors, criteria, traces, feedback, judges and scorecards. Every endpoint needs a task API key with the evals:read capability; the endpoints that change something (POST, PUT, PATCH) need evals:write too, which the key's owner grants when creating the key. The organization comes from the key, and a request that names orgId is refused. A key reads and changes exactly what its owner can in the app, no more. A member without Evals access reads only traces of agents they own. A key limited to specific agents reads only those agents' traces and is refused (403) on every other endpoint except /feedback/enabled and /feedback/schemas. Send an Idempotency-Key header on creates and run starts you might retry.
/benchmarks handle benchmarks. A benchmark tests one axis (model, skill or agent), compares one or more values on it, holds the rest fixed, and can set a pass threshold from 0 to 100. It has no criteria of its own: the criteria of its linked datasets grade each run./items/{taskId}). A dataset task holds a prompt, an optional expected answer, optional input files the agent reads and optional expected files that only the criteria open, never the agent being tested. Changes to tasks and criteria land in the dataset's working copy, and a run grades the latest saved version, so save a version before you start a run that should include them. Archived datasets and tasks are not returned.PENDING, RUNNING or EVALUATING while it works, then COMPLETED, FAILED or STOPPED; a stored status this API does not recognize reads UNKNOWN./feedback/enabled and /feedback/schemas are open to any member of the organization.FLOAT for a 1 to 5 score, BOOLEAN for pass or fail, TEXT for a free-form answer). Scorecards and monitors use judges. SYSTEM judges are built in, shared by every organization and can't be changed; USER judges belong to one organization.kind auto) read-only; skill rubrics are never served, and a skill rubric's ID answers 404.llm_judge), an agent judge (agent_judge, an agent that can open the task's files), a Python check (code_verifier, your code returns a pass or fail or a score from 0 to 1) or an exact match (exact_match). A dataset's own criteria grade every dataset task in it; shared criteria live in the organization's library, where a monitor binds them by ID. A Python check on a dataset needs an administrator to turn Python checks on, and a monitor can't use exact match.revision it read, so a change made after someone else's is refused with 409. Monitors need Monitoring turned on for the organization; until then these endpoints answer 403.targetId. Listing Evals workflows needs Workflows turned on for the organization and a key with evals:write whose owner is an organization owner or admin.evals:read capability. Create one in the app under Settings > API > Task keys.X-API-Key header instead.