# Evals > '' ## Attach Execution To Eval Endpoint `POST /executions/{execution_id}/eval` Attach an execution to an eval, in any status. Never copies the eval's baseline. **Parameters:** - `execution_id` (path) (required): string **Request Body:** `AttachEvalRequest` **Response (200):** `ExecutionEvalResponse` ## Detach Execution From Eval Endpoint `DELETE /executions/{execution_id}/eval` Detach an execution from its eval. The launch record (`launched_eval_id`) is kept. **Parameters:** - `execution_id` (path) (required): string - `eval_id` (query) (required): string **Response (200):** `ExecutionEvalResponse` ## Set Workflow Default Eval Endpoint `PUT /workflows/{workflow_id}/default-eval` Set or clear the eval a workflow's runs join when the launch names none. **Parameters:** - `workflow_id` (path) (required): string **Request Body:** `SetDefaultEvalRequest` **Response (200):** `WorkflowDefaultEvalResponse` ## List Evals Endpoint `GET /evals` List evals, newest first, each with its run count and status tally. **Parameters:** - `status` (query): string - `q` (query): string - `tag` (query): string - `page` (query): integer - `page_size` (query): integer **Response (200):** `EvalListResponse` ## Create Eval Endpoint `POST /evals` Create an eval, pinning each baseline ref to a commit SHA. The id is minted here, or derived from `stable_key`. A derived id is one stream however many creators race for it: the store admits the first and the rest answer with that eval (#1920). **Request Body:** `CreateEvalRequest` **Response (201):** `EvalCreatedResponse` ## Get Eval Endpoint `GET /evals/{eval_id}` One eval with its Baseline and run tally. Its runs are `GET /evals/{eval_id}/runs`. With ``k``, ``cohorts`` carries the eval's trial figures in every cohort it has trials in (#2108); without it, ``cohorts`` is null. **Parameters:** - `eval_id` (path) (required): string - `k` (query): string **Response (200):** `EvalDetailResponse` ## List Eval Runs Endpoint `GET /evals/{eval_id}/runs` The executions currently in an eval, newest first, each with what it ran and its score. The eval id may be a unique prefix, as on `GET /evals/{eval_id}`; an id matching no eval is a 404. An eval with no runs is an empty page. **Parameters:** - `eval_id` (path) (required): string - `statuses` (query): string - `page` (query): integer - `page_size` (query): integer **Response (200):** `EvalRunListResponse` ## Get Eval Trend Endpoint `GET /evals/{eval_id}/trend` The eval's current runs as trend points, newest first, with its definition changes. One row per run: date, verifier and judge model, score (0 to 100), verdict, cost, duration and tokens. The same runs as `GET /evals/{eval_id}/runs`. **Parameters:** - `eval_id` (path) (required): string - `page` (query): integer - `page_size` (query): integer **Response (200):** `EvalTrendResponse` ## Score Eval Run Endpoint `POST /evals/{eval_id}/runs/{execution_id}/score` Record a verdict on one run. Re-scoring replaces the run's current score. Allowed on frozen and archived evals: judging a run is not editing the eval. **Parameters:** - `eval_id` (path) (required): string - `execution_id` (path) (required): string **Request Body:** `EvalRunScoreRequest` **Response (200):** `EvalRunScoreResponse` ## Archive Eval Endpoint `POST /evals/{eval_id}/archive` Archive an eval: it stays readable with its runs, and admits no new ones. Idempotent. **Parameters:** - `eval_id` (path) (required): string **Response (200):** `EvalArchivedResponse` ## Get Eval Set Metrics Endpoint `GET /eval-sets/metrics` pass@k, pass^k and flakiness of every cohort over one eval-set roster (#2108). One block per cohort (suite version, workflow and version, declared models, scoring protocol), each with per-case rows, coverage, roster-wide bounds with infra errors and missing trials counted both ways, and the images its trials ran. When exactly two cohorts launched into the roster, a paired comparison is added. An unknown suite is an empty roster. **Parameters:** - `suite` (query) (required): string - `version` (query) (required): string - `k` (query) (required): integer - `split` (query): string **Response (200):** `EvalSetMetricsResponse`