Query feedback¶
Filter run feedback reviewable by the current user by agent, context, task, message, or rating.
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.
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 |
|---|---|---|---|
|
string |
Yes |
Current workspace ID. |
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Current workspace or system. When omitted, the agent source is not limited. |
|
string |
No |
Filter by agent ID. |
|
string |
No |
Filter by task ID. |
|
string |
No |
Filter by message ID. |
|
string |
No |
Filter by rating, optional values are |
|
string |
No |
Filter by A2A context ID. |
|
integer |
No |
Return the maximum quantity. |
|
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¶
{
"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 |
|---|---|---|
|
array of object |
Result entry. |
|
string |
Feedback ID. |
|
string |
Belonging workspace and agent ID. |
|
string |
Belonging workspace and agent ID. |
|
string |
Associated context, task, and message IDs. |
|
string |
Associated context, task, and message IDs. |
|
string |
Associated context, task, and message IDs. |
|
string |
Associated product or tool call ID. |
|
string |
Associated product or tool call ID. |
|
integer |
Message fragment index. Only returned if there is a value. |
|
string |
Rating and feedback intent. Values: |
|
string |
Feedback purpose, currently record_only. Value: |
|
string |
Feedback instructions. Only returned if there is a value. |
|
array of string |
Feedback tag. Only returned if there is a value. |
|
string |
Creator and creation time. |
|
string |
Creator and creation time. RFC 3339 time. |
|
integer |
The total number of matching records. |
|
integer |
The maximum number of records requested for this page. |
|
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.
{
"code": 2,
"message": "反馈筛选条件无效"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
Invalid workspace, agent, task or message ID, rating or pagination parameters. Recommendation: Check the path and query parameters. |
|
|
Credentials are missing or invalid. Recommendation: Check the API Key. |
|
|
The current identity cannot read the workspace feedback. Recommendation: Use authorized credentials, or contact the administrator for authorization. |
|
|
Feedback review service is unavailable. Suggestion: Try again later. |