Query the results of automated task execution¶
Read the results of an automated task running record.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-automation-runs/{run_id}/result
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 to run the record ID, personal access token that can access the target workspace, and the target workspace ID.
Request parameters¶
Replace $WORKSPACE_ID, $RUN_ID, $CLOUDSIGMA_API_KEY in the example with actual values.
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-automation-runs/$RUN_ID/result" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
workspace ID. |
|
string |
Yes |
Run record ID. |
Successful response¶
{
"code": 0,
"data": {
"run_id": "run_01",
"automation_task_id": "task_01",
"status": "succeeded",
"final_text": "今日输入内容共 12 条,要点如下……",
"structured_output": {},
"output_validation_status": "passed",
"artifact_refs": [],
"completed_at": "2026-08-21T07:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
Run and automate task identification. |
|
string |
Run and automate task identification. |
|
string |
This field is not generated when results are currently read. |
|
string |
Current or final operating status. Values: |
|
string |
The final text, structured output, and artifact citations produced. |
|
object or null |
The final text, structured output, and artifact citations produced. |
|
string |
Outputs the verification status and verification errors. It does not return when verification has not occurred. Values: |
|
string |
Outputs the verification status and verification errors. It does not return when verification has not occurred. |
|
array of object |
The final text, structured output, and artifact citations produced. |
|
string |
type. |
|
string |
logo. |
|
string |
File URI. |
|
string |
Name. |
|
string |
Media type. |
|
object or null |
Extended metadata. |
|
object or null |
Run failure details. It can be returned when the operation fails. |
|
string |
Run completion time, using RFC 3339 format. Do not return if not yet completed. RFC 3339 time. |
Error response¶
{
"code": 3,
"message": "<错误信息>"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
The path parameter is invalid. Recommendation: Check the workspace and run ID. |
|
|
Valid identity credentials are missing. Recommendation: Check the API Key. |
|
|
The running record does not exist. Suggestion: Query the running list first. |
|
|
The automated task service is unavailable. Suggestion: Try again later. |