Query automation task details

Read the current configuration and execution summary of an automated task.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-automation-tasks/{automation_task_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. First query the automation task list to obtain the task ID. Prepare a personal access token and target workspace ID that can access the target workspace.

Request parameters

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

Shell
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-automation-tasks/$TASK_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Type

Required

Description

workspace_id

string

Yes

workspace ID.

automation_task_id

string

Yes

Automation task ID.

Successful response

JSON
{
  "code": 0,
  "data": {
    "id": "task_01",
    "workspace_id": "ws_01",
    "agent_workspace_id": "ws_01",
    "name": "每日摘要",
    "agent_id": "agent_01",
    "instruction_text": "汇总当天的输入内容。",
    "trigger": {
      "mode": "cron",
      "cron_expression": "0 9 * * *"
    },
    "status": "active",
    "version": 1,
    "execution": {
      "type": "agent",
      "system_flow_id": ""
    },
    "created_at": "2026-08-21T07:00:00Z",
    "updated_at": "2026-08-21T07:00:00Z"
  }
}

Field

Type

Description

data.id

string

Task, workspace and target agent identification.

data.workspace_id

string

Task, workspace and target agent identification.

data.agent_workspace_id

string

agent source workspace. Current workspace or system, not limited when filtering is omitted.

data.name

string

Task name, description and fixed instructions.

data.description

string

Task name, description and fixed instructions.

data.agent_id

string

Task, workspace and target agent identification.

data.model

string

model.

data.llm_backend_id

integer

Model backend ID.

data.instruction_text

string

Task name, description and fixed instructions.

data.trigger

object

Trigger configuration. Contains mode and the fields required by that mode.

data.trigger.mode

string

processing mode. Values: cron, api, callback.

data.trigger.cron_expression

string

Cron expressions.

data.trigger.result_mode

string

How to handle results.

data.trigger.service_name

string

Service name.

data.trigger.input_schema

object or null

Input field structure.

data.trigger.config

object or null

Configuration.

data.auth_policy

object

Authentication strategies and structured output constraints. Does not return if not set.

data.output_contract

object

Authentication strategies and structured output constraints. Does not return if not set.

data.status

string

Task status and current version. Values: draft, creating, active, failed, disabled, archived.

data.version

integer

Task status and current version.

data.next_trigger_at

string

The next scheduled trigger time. Returned when computable, using RFC 3339 format. RFC 3339 time.

data.api_summary

object

Summary of API calls.

data.api_summary.agent_automation_invoke

object

Automated call configuration.

data.api_summary.agent_automation_invoke.method

string

HTTP method.

data.api_summary.agent_automation_invoke.path

string

path.

data.api_summary.agent_automation_invoke.body_example

object

Request body example.

data.api_summary.agent_automation_invoke.body_example.service_name

string

Service name.

data.api_summary.agent_automation_invoke.body_example.payload

object or null

content.

data.last_run_summary

object

Summary of the most recent run. It can be returned when there are running records.

data.last_run_summary.run_id

string

Run ID.

data.last_run_summary.status

string

status. Values: queued, running, input_required, pending_approval, succeeded, failed, canceled, expired.

data.last_run_summary.trigger_type

string

Trigger type. Values: cron, api, manual, callback.

data.last_run_summary.automation_task_version

integer

Automated task version.

data.last_run_summary.output_validation_status

string

Output verification status.

data.last_run_summary.created_at

string

Creation time.

data.last_run_summary.updated_at

string

Update time.

data.last_run_summary.completed_at

string

Completion time.

data.last_run_summary.error_code

string

error code.

data.last_run_summary.error_message

string

error message.

data.labels

object

Tag mapping.

data.annotations

object

Annotation mapping.

data.execution

object

Task execution plan.

data.execution.type

string

type. Value: agent, deterministic_system_flow.

data.execution.system_flow_id

string

System process ID.

data.execution.parameters

object or null

Parameter definition.

data.execution.steps

array of object

Planning steps.

data.execution.steps[].id

string

logo.

data.execution.steps[].worker_id

string

Worker ID.

data.execution.steps[].workitem_id

string

Work item ID.

data.execution.steps[].operation

string

operation.

data.execution.steps[].repetition

string

Number of repetitions.

data.execution.steps[].parameters

object or null

Parameter definition.

data.created_at

string

Creation and last update times, using RFC 3339 format. RFC 3339 time.

data.updated_at

string

Creation and last update times, using RFC 3339 format. 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 task ID.

401

6(UNAUTHENTICATED)

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

403

5(PERMISSION_DENIED)

The current identity cannot read the agent associated with the task. Suggestion: Check workspace and agent authorization.

404

3(NOT_FOUND)

The automated task does not exist. Suggestion: Check the task list first.

503

15(UNAVAILABLE)

The automated task service or agent summary reading service is unavailable. Suggestion: Try again later.

Last updated on