---
title: "POST /simulate/api/harness-environments/{id}/runs/{execution_id}/evaluations/"
method: POST
path: "/simulate/api/harness-environments/{id}/runs/{execution_id}/evaluations/"
tags: ["simulate"]
---

# POST /simulate/api/harness-environments/{id}/runs/{execution_id}/evaluations/

`POST /simulate/api/harness-environments/{id}/runs/{execution_id}/evaluations/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/simulate/api/harness-environments/{id}/runs/{execution_id}/evaluations/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Add an eval to the environment and grade this run's already-finished calls with it.

## Request body

- HarnessEnvironmentAddEvaluation
  - `name` string, required

## Response `202`

Accepted

- HarnessEnvironmentRunEvaluationQueued
  - `queued` integer, required: Stamped and scheduled for dispatch -- not yet dispatched. A call whose stamp committed but whose grading job then failed to queue is still counted here, not subtracted.
  - `skipped_existing` integer, required
  - `skipped_in_flight` integer, required
  - `skipped_pending` integer, required
  - `completed_calls` integer, required

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
