---
title: "列出反馈"
method: GET
path: "/v1/analytics/{projectId}/feedback"
tags: ["Analytics"]
language: "zh-Hans"
---

# 列出反馈

`GET /v1/analytics/{projectId}/feedback`

## Request

- Base URL: `https://api.mintlify.com`
- URL: `https://api.mintlify.com/v1/analytics/{projectId}/feedback`
- Auth: HTTP bearer

列出用户反馈，支持可选筛选和分页。

使用管理员 API 密钥进行身份验证。

## Path parameters

- `projectId` string, required: 你的项目 ID，可在控制台的 [API keys](https://dashboard.mintlify.com/settings/organization/api-keys) 页面中复制。

## Query parameters

- `dateFrom` string: ISO 8601 或 YYYY-MM-DD 格式的日期
- `dateTo` string: ISO 8601 或 YYYY-MM-DD 格式的日期。`dateTo` 为不包含在内的上界。结果包括指定日期之前的所有日期，但不包括指定日期当天。
- `source` 'code_snippet' | 'contextual' | 'agent' | 'thumbs_only': 按反馈来源进行筛选
- `status` string: 用于筛选的以逗号分隔的状态列表
- `limit` number: 每页返回的最大结果数
- `cursor` string: 分页游标

## Response `200`

包含分页信息的反馈数据

- FeedbackResponse
  - `feedback` union[], required: 反馈条目的列表。
    - union
      - object: 当来源为 `contextual` 时返回。包含用户是否认为页面有帮助以及可选的联系邮箱。
        - `id` string, required: 反馈的唯一标识符。
        - `path` string, required: 源文档的路径或 URL。
        - `comment` string, nullable, required: 用户提交的反馈内容。
        - `createdAt` string, nullable, required: 提交该反馈时的时间戳。
        - `source` 'code_snippet' | 'contextual' | 'agent' | 'thumbs_only', required: 反馈的来源类型。`code_snippet` 表示针对代码块的反馈，`contextual` 表示页面级别的反馈，`agent` 表示由第三方 AI Agent 提交的反馈，`thumbs_only` 表示点赞/点踩投票。
        - `status` 'pending' | 'in_progress' | 'resolved' | 'dismissed', required: 该反馈当前的审核状态。
        - `helpful` boolean, required: 用户是否认为该内容有帮助。
        - `contact` string, nullable, required: 用户提供的用于后续联系的电子邮件地址。
      - object: 当来源为 `code_snippet` 时返回。包含反馈所涉及代码片段的代码、文件名和编程语言。
        - `id` string, required: 该反馈的唯一标识符。
        - `path` string, required: 源文档的路径或 URL。
        - `comment` string, nullable, required: 用户提交的反馈内容。
        - `createdAt` string, nullable, required: 提交该反馈时的时间戳。
        - `source` 'code_snippet' | 'contextual' | 'agent' | 'thumbs_only', required: 反馈的来源类型。`code_snippet` 表示针对代码块的反馈，`contextual` 表示页面级别的反馈，`agent` 表示由第三方 AI Agent 提交的反馈，`thumbs_only` 表示点赞/点踩投票。
        - `status` 'pending' | 'in_progress' | 'resolved' | 'dismissed', required: 反馈当前的审核状态。
        - `code` string, required: 与该反馈相关的代码片段。
        - `filename` string, nullable, required: 与代码片段关联的文件名。
        - `lang` string, nullable, required: 代码片段所使用的编程语言。
      - object: 当来源为 `thumbs_only` 时返回。表示对页面的点赞或点踩投票，不含书面评论。包含用户是否认为页面有帮助。
        - `id` string, required: 反馈的唯一标识符。
        - `path` string, required: 源文档的路径或 URL。
        - `comment` string, nullable, required: 用户反馈评论的正文内容。
        - `createdAt` string, nullable, required: 提交该反馈时的时间戳。
        - `source` 'code_snippet' | 'contextual' | 'agent' | 'thumbs_only', required: 反馈的来源类型。`code_snippet` 表示针对代码块的反馈，`contextual` 表示页面级别的反馈，`agent` 表示由第三方 AI Agent 提交的反馈，`thumbs_only` 表示点赞/点踩投票。
        - `status` 'pending' | 'in_progress' | 'resolved' | 'dismissed', required: 反馈当前的审核状态。
        - `helpful` boolean, required: 用户是否认为该内容有帮助。
      - object: 当来源为 `agent` 时返回。仅包含基本反馈字段。
        - `id` string, required: 反馈的唯一标识符。
        - `path` string, required: 源文档的路径或 URL。
        - `comment` string, nullable, required: 用户反馈评论的正文内容。
        - `createdAt` string, nullable, required: 提交该反馈时的时间戳。
        - `source` 'code_snippet' | 'contextual' | 'agent' | 'thumbs_only', required: 反馈的来源类型。`code_snippet` 表示针对代码块的反馈，`contextual` 表示页面级别的反馈，`agent` 表示由第三方 AI Agent 提交的反馈，`thumbs_only` 表示点赞/点踩投票。
        - `status` 'pending' | 'in_progress' | 'resolved' | 'dismissed', required: 反馈当前的审核状态。
  - `nextCursor` string, nullable, required: 用于获取下一页结果的游标。如果没有更多结果，则为 null。
  - `hasMore` boolean, required: 当前页之后是否还有更多结果。

## Other responses

- `400`: 某个查询参数无效，例如日期格式错误或 `limit` 超出允许范围，或者项目 ID 格式错误。响应正文会说明具体错误。
- `401`: API 密钥缺失或无效，或者你的方案不包含 API 访问权限。
- `403`: 你的请求来自不在该 API 密钥允许列表中的 IP 地址。
- `404`: 该项目不存在或不属于你的组织。
- `429`: 你已超出分析端点的速率限制。
- `500`: 发生意外的服务器错误。请重试该请求。如果错误仍然存在，请联系支持团队。

## Changes

- **2026-10-30** `5cdecd920d06`: 4 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - added the non-success response with the status `429`
- **2026-10-29** `36a86e14dee0`: 2 info
  - added `subschema #3, subschema #4` to the `feedback/items/` response property `anyOf` list for the response status `200`
  - removed `subschema #3` from the `feedback/items/` response property `anyOf` list for the response status `200`
- **2026-04-17** `615536f4d5df`: 3 info
  - added the new enum value `agent` to the `query` request parameter `source`
  - added `subschema #1, subschema #2, subschema #3` to the `feedback/items/` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2, subschema #3` from the `feedback/items/` response property `anyOf` list for the response status `200`
- **2026-03-27** `2a36b7726b79`: 3 info
  - added the new enum value `thumbs_only` to the `query` request parameter `source`
  - added `subschema #1, subschema #2, subschema #3` to the `feedback/items/` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2, subschema #3` from the `feedback/items/` response property `anyOf` list for the response status `200`
- **2026-02-24** `88fa18bdcebb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-analytics-export-api/zh/changes/v1/analytics/:projectId/feedback/get.md)

---

[API](https://skmtc.dev/mintlify/apis/mintlify-analytics-export-api/zh.md) - [All operations](https://skmtc.dev/mintlify/apis/mintlify-analytics-export-api/zh/llms.txt) - [OpenAPI document](https://skmtc.dev/mintlify/apis/mintlify-analytics-export-api/zh/revisions/f0aae58f3af8?raw)
