Query automation task details¶
Read the current configuration and execution summary of an automated task.
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.
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 |
|---|---|---|---|
|
string |
Yes |
workspace ID. |
|
string |
Yes |
Automation task ID. |
Successful response¶
{
"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 |
|---|---|---|
|
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, description and fixed instructions. |
|
string |
Task name, description and fixed instructions. |
|
string |
Task, workspace and target agent identification. |
|
string |
model. |
|
integer |
Model backend ID. |
|
string |
Task name, description and fixed instructions. |
|
object |
Trigger configuration. Contains mode and the fields required by that mode. |
|
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 strategies and structured output constraints. Does not return if not set. |
|
object |
Authentication strategies and structured output constraints. Does not return if not set. |
|
string |
Task status and current version. Values: |
|
integer |
Task status and current version. |
|
string |
The next scheduled trigger time. Returned when computable, using RFC 3339 format. 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 the most recent run. It can be returned when there are running records. |
|
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 |
Task execution plan. |
|
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 and last update times, using RFC 3339 format. RFC 3339 time. |
|
string |
Creation and last update times, using RFC 3339 format. RFC 3339 time. |
Error response¶
{
"code": 3,
"message": "<错误信息>"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
The path parameter is invalid. Recommendation: Check the workspace and task ID. |
|
|
Valid identity credentials are missing. Recommendation: Check the API Key. |
|
|
The current identity cannot read the agent associated with the task. Suggestion: Check workspace and agent authorization. |
|
|
The automated task does not exist. Suggestion: Check the task list first. |
|
|
The automated task service or agent summary reading service is unavailable. Suggestion: Try again later. |