Query the results of automated task execution

Read the results of an automated task running record.

HTTP
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.

Shell
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

workspace_id

string

Yes

workspace ID.

run_id

string

Yes

Run record ID.

Successful response

JSON
{
  "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

data.run_id

string

Run and automate task identification.

data.automation_task_id

string

Run and automate task identification.

data.result_url

string

This field is not generated when results are currently read.

data.status

string

Current or final operating status. Values: queued, running, input_required, pending_approval, succeeded, failed, canceled, expired.

data.final_text

string

The final text, structured output, and artifact citations produced.

data.structured_output

object or null

The final text, structured output, and artifact citations produced.

data.output_validation_status

string

Outputs the verification status and verification errors. It does not return when verification has not occurred. Values: passed, failed, skipped.

data.output_validation_error

string

Outputs the verification status and verification errors. It does not return when verification has not occurred.

data.artifact_refs

array of object

The final text, structured output, and artifact citations produced.

data.artifact_refs[].type

string

type.

data.artifact_refs[].id

string

logo.

data.artifact_refs[].uri

string

File URI.

data.artifact_refs[].name

string

Name.

data.artifact_refs[].mime

string

Media type.

data.artifact_refs[].meta

object or null

Extended metadata.

data.error

object or null

Run failure details. It can be returned when the operation fails.

data.completed_at

string

Run completion time, using RFC 3339 format. Do not return if not yet completed. RFC 3339 time.

Error response

JSON
{
  "code": 3,
  "message": "<错误信息>"
}

Common HTTP errors

HTTP status code

error code

Description

400

2(INVALID_ARGUMENT)

The path parameter is invalid. Recommendation: Check the workspace and run ID.

401

6(UNAUTHENTICATED)

Valid identity credentials are missing. Recommendation: Check the API Key.

404

3(NOT_FOUND)

The running record does not exist. Suggestion: Query the running list first.

503

15(UNAVAILABLE)

The automated task service is unavailable. Suggestion: Try again later.

Last updated on