> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://docs.butterix.com/llms.txt
> - v0: https://docs.butterix.com/v0/llms.txt

> For the MDX source of any page, append .mdx to the page URL.
> For a complete documentation index, see https://docs.butterix.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.butterix.com/_mcp/server.
> If something on this page is wrong or missing, POST JSON {"page": "<page URL>", "message": "<what is wrong>"} to https://docs.butterix.com/_biti/feedback/agent.

# 文档考卷详情

`GET /sites/{site}/evals/{id}`

一次成绩与每道题的结果。

Base URL: https://api.butterix.com/v1

Authentication: bearer token in Authorization header or API key in cookie `biti_session`

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `site` | string | yes | 站点 slug 或 id |
| `id` | string | yes |  |

## Example request

```bash
curl https://api.butterix.com/v1/sites/acme-payments/evals/eval_k2m9 \
     -H "Authorization: Bearer <token>"
```

## Responses

### 200

成绩与每道题的结果

Content type: `application/json`

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | no |  |
| `createdAt` | integer | no |  |
| `score` | integer | no | 答对的百分比 |
| `passed` | integer | no |  |
| `total` | integer | no |  |
| `min` | integer | no | 及格线 |
| `ok` | boolean | no |  |
| `model` | string | no |  |
| `judge` | string | no |  |
| `commit` | string | no |  |
| `results` | list of objects | no |  |
| `results[].id` | string | no |  |
| `results[].question` | string | yes |  |
| `results[].pass` | boolean | no |  |
| `results[].met` | list of booleans | no | 每个要点是否说到 |
| `results[].missing` | list of strings | no | 缺少的要点 |
| `results[].said` | list of strings | no | 不该说却说了的内容 |
| `results[].unseen` | list of strings | no | 没检索到的页面 |
| `results[].sources` | list of strings | no |  |
| `results[].answer` | string | no |  |
| `results[].note` | string | no | 评分的说明 |
| `results[].error` | string | no | 无法作答或评分的原因 |

### Example response (200)

```json
{
  "id": "eval_k2m9",
  "createdAt": 1764115200000,
  "score": 85,
  "passed": 17,
  "total": 20,
  "min": 80,
  "ok": true,
  "model": "deepseek-flash",
  "judge": "deepseek-flash",
  "commit": "0123abcd",
  "results": [
    {
      "id": "refund-time",
      "question": "退款多久到账？",
      "pass": true,
      "met": [
        true
      ],
      "missing": [
        "string"
      ],
      "said": [
        "string"
      ],
      "unseen": [
        "string"
      ],
      "sources": [
        "/guides/refund"
      ],
      "answer": "三个工作日内到账，原路退回。",
      "note": "string",
      "error": "string"
    }
  ]
}
```
