> 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`

最近 100 次[文档考卷](https://docs.butterix.com/guides/features/evals.md)的成绩，从新到旧。

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 |

## Example request

```bash
curl https://api.butterix.com/v1/sites/acme-payments/evals \
     -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 |  |

### 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"
  }
]
```
