Query automation task running details

Read the current status and generated output of an automated task running record.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-automation-runs/{run_id}

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" \
  -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": {
    "id": "run_01",
    "workspace_id": "ws_01",
    "automation_task_id": "task_01",
    "automation_task_version": 1,
    "trigger_type": "manual",
    "trigger_config_snapshot": {
      "mode": "cron"
    },
    "status": "running",
    "created_at": "2026-08-21T07:00:00Z",
    "updated_at": "2026-08-21T07:00:00Z"
  }
}

Field

Type

Description

data.id

string

Run, workspace and automation task identification.

data.workspace_id

string

Run, workspace and automation task identification.

data.automation_task_id

string

Run, workspace and automation task identification.

data.automation_task_version

integer

Create the version of the task used by this runtime.

data.trigger_type

string

This trigger type and trigger configuration snapshot. Values: cron, api, manual, callback.

data.trigger_config_snapshot

object

This trigger type and trigger configuration snapshot.

data.trigger_config_snapshot.mode

string

processing mode. Values: cron, api, callback.

data.trigger_config_snapshot.cron_expression

string

Cron expressions.

data.trigger_config_snapshot.result_mode

string

How to handle results.

data.trigger_config_snapshot.service_name

string

Service name.

data.trigger_config_snapshot.input_schema

object or null

Input field structure.

data.trigger_config_snapshot.config

object or null

Configuration.

data.status

string

Running 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. Does not return if not generated.

data.structured_output

object or null

The final text, structured output, and artifact citations produced. Does not return if not generated.

data.output_validation_status

string

Output verification status. Values: passed, failed, skipped.

data.output_validation_error

string

Output verification errors.

data.artifact_refs

array of object

The final text, structured output, and artifact citations produced. Does not return if not generated.

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

Failure details. It can be returned when the operation fails.

data.started_at

string

Runtime point, using RFC 3339 format. This field is not returned when the corresponding stage has not been reached.

data.completed_at

string

Runtime point, using RFC 3339 format. This field is not returned when the corresponding stage has not been reached.

data.created_at

string

Runtime point, using RFC 3339 format. This field is not returned when the corresponding stage has not been reached.

data.updated_at

string

Runtime point, using RFC 3339 format. This field is not returned when the corresponding stage has not been reached.

After the operation enters the final state, Query the automation task running result. When process information is needed Query the automation task running event.

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