Query feedback

Filter run feedback reviewable by the current user by agent, context, task, message, or rating.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/feedback

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare a personal access token and target workspace ID that can access the target workspace. If you need to filter by agent, first obtain the agent ID.

Request parameters

Replace $WORKSPACE_ID, $CLOUDSIGMA_API_KEY, $AGENT_ID in the example with actual values.

Shell
curl --get "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/feedback" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  --data-urlencode "agent_id=$AGENT_ID" \
  --data-urlencode "rating=up" \
  --data-urlencode "limit=20"

Parameter

Type

Required

Description

workspace_id

string

Yes

Current workspace ID.

Query parameters

Parameter

Type

Required

Description

agent_workspace_id

string

No

Current workspace or system. When omitted, the agent source is not limited.

agent_id

string

No

Filter by agent ID.

task_id

string

No

Filter by task ID.

message_id

string

No

Filter by message ID.

rating

string

No

Filter by rating, optional values are up, down or neutral.

context_id

string

No

Filter by A2A context ID.

limit

integer

No

Return the maximum quantity.

offset

integer

No

Returns the offset.

agent_workspace_id only allows the current workspace or system, and the source is not limited when omitted. When the old running list lacks the agent source workspace, it will be processed according to the current workspace.

Successful response

JSON
{
  "code": 0,
  "data": {
    "items": [
      {
        "id": "fb_01",
        "workspace_id": "ws_01",
        "agent_id": "agent_01",
        "context_id": "ctx_01",
        "task_id": "task_01",
        "message_id": "msg_01",
        "artifact_id": "asset-001:case-001",
        "tool_call_id": "",
        "rating": "up",
        "intent": "record_only",
        "labels": [],
        "created_by": "user_01",
        "created_at": "2026-08-21T07:00:00Z"
      }
    ],
    "total": 1,
    "limit": 20,
    "offset": 0
  }
}

Field

Type

Description

data.items

array of object

Result entry.

data.items[].id

string

Feedback ID.

data.items[].workspace_id

string

Belonging workspace and agent ID.

data.items[].agent_id

string

Belonging workspace and agent ID.

data.items[].context_id

string

Associated context, task, and message IDs.

data.items[].task_id

string

Associated context, task, and message IDs.

data.items[].message_id

string

Associated context, task, and message IDs.

data.items[].artifact_id

string

Associated product or tool call ID.

data.items[].tool_call_id

string

Associated product or tool call ID.

data.items[].part_index

integer

Message fragment index. Only returned if there is a value.

data.items[].rating

string

Rating and feedback intent. Values: up, down, neutral.

data.items[].intent

string

Feedback purpose, currently record_only. Value: record_only.

data.items[].comment

string

Feedback instructions. Only returned if there is a value.

data.items[].labels

array of string

Feedback tag. Only returned if there is a value.

data.items[].created_by

string

Creator and creation time.

data.items[].created_at

string

Creator and creation time. RFC 3339 time.

data.total

integer

The total number of matching records.

data.limit

integer

The maximum number of records requested for this page.

data.offset

integer

The zero-based offset of the first record on this page.

Error response

Internal error may return HTTP 500, code=1. Handle actual error codes, not just parameter errors and service unavailable errors.

JSON
{
  "code": 2,
  "message": "反馈筛选条件无效"
}

Common HTTP errors

HTTP status code

error code

Description

400

2(INVALID_ARGUMENT)

Invalid workspace, agent, task or message ID, rating or pagination parameters. Recommendation: Check the path and query parameters.

401

6(UNAUTHENTICATED)

Credentials are missing or invalid. Recommendation: Check the API Key.

403

5(PERMISSION_DENIED)

The current identity cannot read the workspace feedback. Recommendation: Use authorized credentials, or contact the administrator for authorization.

503

15(UNAVAILABLE)

Feedback review service is unavailable. Suggestion: Try again later.

Last updated on