Get Web App feedback statistics

Read total feedback and rating distribution for the target Web App.

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

Before you call this API

Set BASE_URL to the product API prefix https://api.moi.matrixorigin.cn/v5; use the corresponding product API URL for a dedicated deployment.

Prepare publication management identity and objects.

Request

curl --request GET \
  "$BASE_URL/workspaces/$WORKSPACE_ID/agents/$AGENT_ID/webapp/feedback/stats" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID"

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.

Statistics cover this Web App’s feedback collection. This entry point has no rating or date filter contract. Do not treat these statistics as the total for a preceding filtered page.

Successful response

{
  "code": 0,
  "data": {
    "total": 1,
    "by_rating": {
      "up": 1,
      "down": 0,
      "neutral": 0
    }
  }
}

Field

Type

Description

code

integer

Success code.

data

object

Corresponding object.

Error responses

Errors and rereads distinguishes parameters, permissions, and write outcomes for this entry point.

Last updated on