<span id="查询web应用反馈"></span>

# List Web application feedback

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

Read visitor feedback for the target Web application by rating.


```http
GET https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/agents/{agent_id}/webapp/feedback
```

<span id="调用前准备"></span>

## Before you call this API

`BASE_URL` uses the product API prefix `https://api.moi.matrixorigin.cn/v5`. For a dedicated deployment, use its corresponding product API address.

[Prepare publication management identity and objects](objects.md#prepare).

<span id="请求"></span>

## Request

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Request example

```bash
curl --request GET \
  "$BASE_URL/workspaces/$WORKSPACE_ID/agents/$AGENT_ID/webapp/feedback?rating=up&limit=50&offset=0" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID"
```

Next-page example:

```bash
curl --request GET \
  "$BASE_URL/workspaces/$WORKSPACE_ID/agents/$AGENT_ID/webapp/feedback?rating=up&limit=50&offset=50" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID"
```

:::::
:::::{tab-item} Parameters

| Parameter | Location | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | Path | string | Yes | Publication Workspace ID in the same environment. |
| `agent_id` | Path | string | Yes | Target agent ID. |
| `rating` | Query | string | No | up, down, or neutral. Omit to skip rating filtering. |
| `limit` | Query | integer | No | Defaults to 50; maximum 200. Invalid/nonpositive values become 50. |
| `offset` | Query | integer | No | Defaults to 0; negative values become 0. |

Feedback is scoped to the target Agent's webapp. This endpoint reads only and does not create, update, or delete feedback. For ordinary pagination, stop when offset + items.length reaches total or items is empty. Concurrent changes may alter the paginated set.

:::::
::::::
:::::::

<span id="成功响应"></span>

## Successful response

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

```json
{
  "code": 0,
  "data": {
    "items": [
      {
        "feedback_id": "feedback-example",
        "conversation_id": "conversation-example",
        "message_id": "message-example",
        "rating": "up",
        "comment": "回答有帮助",
        "end_user_id": "visitor-example",
        "created_at": "2026-11-12T01:00:00Z"
      }
    ],
    "total": 1,
    "limit": 50,
    "offset": 0
  }
}
```

:::::
:::::{tab-item} Fields

| Field | Type | Description |
| --- | --- | --- |
| `code` | integer | Success code. |
| `data` | object | [Corresponding object](objects.md#responses). |

:::::
::::::
:::::::

<span id="错误响应"></span>

## Error response

[Errors and read-back](lifecycle.md#errors) distinguishes parameters, permissions, and write results for this entry point.
