Query the automation task list

Query the automated tasks that can be read in the current workspace. Results support filtering by agent, status, triggering method and keywords.

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

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.

Request parameters

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

Shell
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-automation-tasks?status=active&limit=20&offset=0" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Type

Required

Description

workspace_id

string

Yes

workspace ID.

Query parameters

Parameter

Type

Required

Description

limit

integer

No

Return the quantity.

offset

integer

No

Returns the starting position of the list.

agent_id

array of string

No

Filter by one or more agent IDs.

agent_workspace_id

string

No

Current workspace or system. When omitted, the agent source is not limited.

status

string

No

Filter by task status.

trigger_mode

string

No

Filter by trigger, such as cron, api, or callback.

query

string

No

Search by task information.

Successful response

JSON
{
  "code": 0,
  "data": {
    "items": [
      {
        "id": "task_01",
        "workspace_id": "ws_01",
        "agent_workspace_id": "",
        "name": "每日摘要",
        "agent_id": "agent_01",
        "instruction_text": "",
        "trigger": {
          "mode": "cron"
        },
        "status": "active",
        "version": 1,
        "execution": {
          "type": "agent",
          "system_flow_id": ""
        },
        "created_at": "2026-08-21T07:00:00Z",
        "updated_at": "2026-08-21T07:00:00Z"
      }
    ],
    "total": 1,
    "limit": 50,
    "offset": 0
  }
}

Field

Type

Description

data.items

array of object

Readable automation tasks.

data.items[].id

string

Task, workspace and target agent identification.

data.items[].workspace_id

string

Task, workspace and target agent identification.

data.items[].agent_workspace_id

string

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

data.items[].name

string

Task name, trigger configuration, status and version.

data.items[].description

string

Description.

data.items[].agent_id

string

Task, workspace and target agent identification.

data.items[].model

string

model.

data.items[].llm_backend_id

integer

Model backend ID.

data.items[].instruction_text

string

Task instructions.

data.items[].trigger

object

Task name, trigger configuration, status and version.

data.items[].trigger.mode

string

processing mode. Values: cron, api, callback.

data.items[].trigger.cron_expression

string

Cron expressions.

data.items[].trigger.result_mode

string

How to handle results.

data.items[].trigger.service_name

string

Service name.

data.items[].trigger.input_schema

object or null

Input field structure.

data.items[].trigger.config

object or null

Configuration.

data.items[].auth_policy

object

Authentication policy.

data.items[].output_contract

object

Output convention.

data.items[].status

string

Task name, trigger configuration, status and version. Values: draft, creating, active, failed, disabled, archived.

data.items[].version

integer

Task name, trigger configuration, status and version.

data.items[].next_trigger_at

string

Next trigger time. RFC 3339 time.

data.items[].api_summary

object

Summary of API calls.

data.items[].api_summary.agent_automation_invoke

object

Automated call configuration.

data.items[].api_summary.agent_automation_invoke.method

string

HTTP method.

data.items[].api_summary.agent_automation_invoke.path

string

path.

data.items[].api_summary.agent_automation_invoke.body_example

object

Request body example.

data.items[].api_summary.agent_automation_invoke.body_example.service_name

string

Service name.

data.items[].api_summary.agent_automation_invoke.body_example.payload

object or null

content.

data.items[].last_run_summary

object

Summary of recent runs.

data.items[].last_run_summary.run_id

string

Run ID.

data.items[].last_run_summary.status

string

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

data.items[].last_run_summary.trigger_type

string

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

data.items[].last_run_summary.automation_task_version

integer

Automated task version.

data.items[].last_run_summary.output_validation_status

string

Output verification status.

data.items[].last_run_summary.created_at

string

Creation time.

data.items[].last_run_summary.updated_at

string

Update time.

data.items[].last_run_summary.completed_at

string

Completion time.

data.items[].last_run_summary.error_code

string

error code.

data.items[].last_run_summary.error_message

string

error message.

data.items[].labels

object

Tag mapping.

data.items[].annotations

object

Annotation mapping.

data.items[].execution

object

Execute configuration.

data.items[].execution.type

string

type. Value: agent, deterministic_system_flow.

data.items[].execution.system_flow_id

string

System process ID.

data.items[].execution.parameters

object or null

Parameter definition.

data.items[].execution.steps

array of object

Planning steps.

data.items[].execution.steps[].id

string

logo.

data.items[].execution.steps[].worker_id

string

Worker ID.

data.items[].execution.steps[].workitem_id

string

Work item ID.

data.items[].execution.steps[].operation

string

operation.

data.items[].execution.steps[].repetition

string

Number of repetitions.

data.items[].execution.steps[].parameters

object or null

Parameter definition.

data.items[].created_at

string

Creation time. RFC 3339 time.

data.items[].updated_at

string

Update time. RFC 3339 time.

data.total

integer

The total number of matching records.

data.limit

integer

The maximum number of records requested for this page.

data.offset

integer

The zero-based offset of the first record on this page.

Error response

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

Common HTTP errors

HTTP status code

error code

Description

400

2(INVALID_ARGUMENT)

agent_id, agent_workspace_id or other filter parameters are invalid. Recommendation: Check the query parameters.

401

6(UNAUTHENTICATED)

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

403

5(PERMISSION_DENIED)

The current identity does not have permission to read the associated agent. Suggestion: Check workspace and agent authorization.

503

15(UNAVAILABLE)

The automated task service, permission filtering service, or agent summary reading service is not available. Suggestion: Try again later.

Last updated on