> 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}/feedback`

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 |

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no |  |

## Example request

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

## Responses

### 200

读者的「这页有帮助吗？」、代码块问题与 AI 工具提交的反馈

Content type: `application/json`

| Field | Type | Required | Description |
|---|---|---|---|
| `[].id` | integer | no |  |
| `[].ts` | integer | no |  |
| `[].path` | string | no |  |
| `[].helpful` | boolean | no |  |
| `[].comment` | string | no |  |
| `[].source` | enum | no | `agent`：AI 工具经 MCP 或 Markdown 里的地址提交，内容由 AI 生成 Allowed: `reader`, `agent`. |
| `[].code` | object | no | 针对的代码块（只有代码块问题有） |
| `[].code.index` | integer | no | 页面上的第几个代码块，从 0 开始 |
| `[].code.lang` | string | no |  |
| `[].code.line` | string | no | 第一行 |

### Example response (200)

```json
[
  {
    "id": 1,
    "ts": 1,
    "path": "/guides/get-started/quickstart",
    "helpful": true,
    "comment": "希望补充 Windows 下的安装说明",
    "source": "reader",
    "code": {
      "index": 1,
      "lang": "bash",
      "line": "npm install -g bitidocs"
    }
  }
]
```
