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.
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.
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 |
|---|---|---|---|
|
string |
Yes |
workspace ID. |
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
No |
Return the quantity. |
|
integer |
No |
Returns the starting position of the list. |
|
array of string |
No |
Filter by one or more agent IDs. |
|
string |
No |
Current workspace or system. When omitted, the agent source is not limited. |
|
string |
No |
Filter by task status. |
|
string |
No |
Filter by trigger, such as cron, api, or callback. |
|
string |
No |
Search by task information. |
Successful response¶
{
"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 |
|---|---|---|
|
array of object |
Readable automation tasks. |
|
string |
Task, workspace and target agent identification. |
|
string |
Task, workspace and target agent identification. |
|
string |
agent source workspace. Current workspace or system, not limited when filtering is omitted. |
|
string |
Task name, trigger configuration, status and version. |
|
string |
Description. |
|
string |
Task, workspace and target agent identification. |
|
string |
model. |
|
integer |
Model backend ID. |
|
string |
Task instructions. |
|
object |
Task name, trigger configuration, status and version. |
|
string |
processing mode. Values: |
|
string |
Cron expressions. |
|
string |
How to handle results. |
|
string |
Service name. |
|
object or null |
Input field structure. |
|
object or null |
Configuration. |
|
object |
Authentication policy. |
|
object |
Output convention. |
|
string |
Task name, trigger configuration, status and version. Values: |
|
integer |
Task name, trigger configuration, status and version. |
|
string |
Next trigger time. RFC 3339 time. |
|
object |
Summary of API calls. |
|
object |
Automated call configuration. |
|
string |
HTTP method. |
|
string |
path. |
|
object |
Request body example. |
|
string |
Service name. |
|
object or null |
content. |
|
object |
Summary of recent runs. |
|
string |
Run ID. |
|
string |
status. Values: |
|
string |
Trigger type. Values: |
|
integer |
Automated task version. |
|
string |
Output verification status. |
|
string |
Creation time. |
|
string |
Update time. |
|
string |
Completion time. |
|
string |
error code. |
|
string |
error message. |
|
object |
Tag mapping. |
|
object |
Annotation mapping. |
|
object |
Execute configuration. |
|
string |
type. Value: |
|
string |
System process ID. |
|
object or null |
Parameter definition. |
|
array of object |
Planning steps. |
|
string |
logo. |
|
string |
Worker ID. |
|
string |
Work item ID. |
|
string |
operation. |
|
string |
Number of repetitions. |
|
object or null |
Parameter definition. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
|
integer |
The total number of matching records. |
|
integer |
The maximum number of records requested for this page. |
|
integer |
The zero-based offset of the first record on this page. |
Error response¶
{
"code": 2,
"message": "<错误信息>"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
|
|
|
Valid identity credentials are missing. Recommendation: Check the API Key. |
|
|
The current identity does not have permission to read the associated agent. Suggestion: Check workspace and agent authorization. |
|
|
The automated task service, permission filtering service, or agent summary reading service is not available. Suggestion: Try again later. |