> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coval.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Human Review via API

> Create review projects, submit human answers, and update saved annotations through the API.

Use the Reviews API to create projects, assign review work, and submit human answers from your own application or script. This guide covers the request sequence. See the [API reference](https://docs.coval.ai/api-reference/review-projects/list-review-projects.md) for request fields and response schemas.

> [!NOTE]
>
> All requests require an `X-API-Key` header. See the [API Keys guide](https://docs.coval.ai/guides/api-keys.md) for setup.

## Projects, annotations, and completion

* **Review Projects** group conversations, metrics, and reviewers. Creating a project sets up assignments; it does not create a saved answer for every assignment.
* **Review Annotations** are saved metric answers. Create an annotation to record a reviewer's answer, then use the returned annotation ID to update it. Listing annotations returns saved answers, not unanswered assignments.

> [!NOTE]
>
> An annotation's `completion_status` describes one metric answer. It is separate from submitting a whole conversation with **Submit review** in the dashboard. A completed annotation does not mean that all of a conversation's review requirements have been met.

## Creating and completing review tasks

**1. Create a project**

[`POST /v1/review-projects`](https://docs.coval.ai/api-reference/review-projects/create-review-project) with your conversations, metrics, and reviewers. Use `project_type` `PROJECT_COLLABORATIVE` for shared work and conversation completion, or `PROJECT_INDIVIDUAL` for per-reviewer assignments and completion.

```bash theme={null}
curl -X POST https://api.coval.dev/v1/review-projects \
  -H "X-API-Key: <your_api_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "display_name": "Q1 Voice Agent Review",
    "assignees": ["alice@company.com"],
    "linked_simulation_ids": ["sim-output-001"],
    "linked_metric_ids": ["metric-accuracy"],
    "project_type": "PROJECT_COLLABORATIVE"
  }'
```

Save `review_project.id` from the response for the following requests.

> [!NOTE]
>
> **Finding IDs:** metric IDs come from [`GET /v1/metrics`](https://docs.coval.ai/api-reference/metrics/list-metrics) and simulation IDs from [`GET /v1/conversations/simulated`](https://docs.coval.ai/api-reference/simulated-conversations/list-simulations).

**2. Submit a metric answer**

Create a saved answer with [`POST /v1/review-annotations`](https://docs.coval.ai/api-reference/review-annotations/create-review-annotation). Include the conversation, metric, reviewer, and ground-truth value. Pass the project's ID as the `project_id` query parameter so its completion rules, including required disagreement notes, are applied.

```bash theme={null}
curl -X POST 'https://api.coval.dev/v1/review-annotations?project_id=<project_id>' \
  -H "X-API-Key: <your_api_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "simulation_output_id": "sim-output-001",
    "metric_id": "metric-accuracy",
    "assignee": "alice@company.com",
    "ground_truth_float_value": 0.95,
    "reviewer_notes": "Verified the response against the conversation."
  }'
```

Save `review_annotation.id` from the response. Use `ground_truth_float_value` for numeric answers or `ground_truth_string_value` for string/categorical answers. See the reference for structured and timestamp-based values.

**3. Update a saved answer**

To correct that answer, [`PATCH /v1/review-annotations/{id}`](https://docs.coval.ai/api-reference/review-annotations/update-review-annotation) using the returned annotation ID. Include `project_id` again when applying project completion rules.

```bash theme={null}
curl -X PATCH 'https://api.coval.dev/v1/review-annotations/<annotation_id>?project_id=<project_id>' \
  -H "X-API-Key: <your_api_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "ground_truth_float_value": 0.85,
    "reviewer_notes": "Corrected after checking the final exchange."
  }'
```

To find an existing saved answer, use [`GET /v1/review-annotations`](https://docs.coval.ai/api-reference/review-annotations/list-review-annotations) with filters such as `project_id`, `simulation_output_id`, `metric_id`, and `assignee`. An unanswered assignment will not appear in this list.

**4. Complete the conversation and track progress**

Saving metric answers does not submit the whole conversation. Complete the review [in the dashboard](https://docs.coval.ai/concepts/metrics/human-review/how-to-review.md#completing-and-revisiting-reviews), or use the [conversation completion endpoint](https://docs.coval.ai/api-reference/review-projects/complete-a-review-project-conversation.md) after satisfying the project's requirements.

Check [`GET /v1/review-projects/{id}/progress`](https://docs.coval.ai/api-reference/review-projects/get-review-project-progress) for project completion. Do not use a count of completed annotations as a count of completed conversations.

**5. Improve your metrics**

Compare the submitted answers with metric outputs and [investigate disagreements](https://docs.coval.ai/guides/improving-metrics-with-human-review.md) before revising a metric.

> [!NOTE]
>
> Annotation updates cannot reassign an answer to another reviewer or set `status` or `completion_status` to archive or reopen it. Create a separate annotation to record another reviewer's answer.

## Endpoint reference

| Operation | Endpoint |
| - | - |
| List projects | [`GET /v1/review-projects`](https://docs.coval.ai/api-reference/review-projects/list-review-projects) |
| Create project | [`POST /v1/review-projects`](https://docs.coval.ai/api-reference/review-projects/create-review-project) |
| Get project | [`GET /v1/review-projects/{id}`](https://docs.coval.ai/api-reference/review-projects/get-review-project) |
| Update project | [`PATCH /v1/review-projects/{id}`](https://docs.coval.ai/api-reference/review-projects/update-review-project) |
| Delete project | [`DELETE /v1/review-projects/{id}`](https://docs.coval.ai/api-reference/review-projects/delete-review-project) |
| List annotations | [`GET /v1/review-annotations`](https://docs.coval.ai/api-reference/review-annotations/list-review-annotations) |
| Create annotation | [`POST /v1/review-annotations`](https://docs.coval.ai/api-reference/review-annotations/create-review-annotation) |
| Get annotation | [`GET /v1/review-annotations/{id}`](https://docs.coval.ai/api-reference/review-annotations/get-review-annotation) |
| Update annotation | [`PATCH /v1/review-annotations/{id}`](https://docs.coval.ai/api-reference/review-annotations/update-review-annotation) |
| Delete annotation | [`DELETE /v1/review-annotations/{id}`](https://docs.coval.ai/api-reference/review-annotations/delete-review-annotation) |

> [!NOTE]
>
> For reviews without a project, create a standalone annotation with [`POST /v1/review-annotations`](https://docs.coval.ai/api-reference/review-annotations/create-review-annotation), omitting the `project_id` query parameter.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.