Skip to content
Context docs
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.

Tags
Analytics
An analytics record is one piece of agent work in the organization: a root task, a sub-agent task or a dispatch run, with its cost, outcome and feedback. These are the reads behind the app's Tasks list, with its filters, overview charts and export. An organization admin, or a person with analytics access, reads every record; a workspace admin reads the records in the workspaces they administer, and another member with Evals access reads the ones they created or their own agents ran.
Evaluations
An evaluation measures how well agents answer, and has two kinds: a benchmark runs a fixed set of dataset tasks when you ask, and a monitor grades a sample of real requests as they finish (see Monitors). The endpoints under /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.
Datasets
A dataset is a set of dataset tasks that a benchmark runs; the HTTP API calls a dataset task an item (/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.
Runs
A run is one execution of a benchmark over each linked dataset's latest saved version. It freezes the benchmark's axes when it starts and runs every dataset task once per cell, where a cell is one value of the tested axis at one repeat (1 to 5 repeats). Its status is PENDING, RUNNING or EVALUATING while it works, then COMPLETED, FAILED or STOPPED; a stored status this API does not recognize reads UNKNOWN.
Feedback
Feedback is what people say about an agent's answer (a score, a yes or no, a comment, or a mix of them), given on a whole task, one message or a selected part of a message. People give it against scorecards, and these endpoints read it; none of them writes feedback. Reading entries needs Evals access, while /feedback/enabled and /feedback/schemas are open to any member of the organization.
Judges
A judge is an LLM judge in the organization's library: instructions, a model and an output type (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.
Scorecards
A scorecard groups judges, in order, into the form people fill in when they give feedback; some of its judges can be required. It applies where one of its scopes matches (an organization, workspace or user, where an empty field matches any), applies everywhere when it has no scopes, and reaches the feedback panel only while it is active. This API serves automatic scorecards (kind auto) read-only; skill rubrics are never served, and a skill rubric's ID answers 404.
Criteria
A criterion grades an answer. A dataset criterion is an LLM judge (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.
Monitors
A monitor is the evaluation that grades a sample of real requests as they finish. It watches 1 to 50 targets (each an agent, skill, applet or Evals workflow at a sample percentage from 1 to 100, or every trace in the organization), grades with 1 to 50 criteria, and passes a request whose weighted score reaches its pass mark, from 0 to 1. A monitor is on or paused, and each change names the 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.
Targets
A target is what an evaluation is shown on or a monitor watches: an agent, a skill, an applet or an Evals workflow. These endpoints list the live ones a page at a time, with the IDs to pass as 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.
Traces
A trace session is one conversation with an agent, with every model call, its tokens, cost and errors; traces cover all agent work, not only evaluation runs. The session, call and histogram reads cut a range longer than 90 days (the deployment's default limit) to its most recent 90 days. An organization admin reads every trace, a workspace admin the traces in the workspaces they administer, and anyone else the traces of agents they own and their own chats. The cost dashboard needs organization-wide trace access.
Security Schemes
TaskApiKey
A task API key with the evals:read capability. Create one in the app under Settings > API > Task keys.
http
TaskApiKeyHeader
The same task API key, sent in the X-API-Key header instead.
apiKey