Query automation task running events¶
Query the life cycle events of an automated task running record.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-automation-runs/{run_id}/events
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. First Query the automation task running record to confirm that the target running record can be read, and then query or poll the event. When the details return 404, check the run ID before calling.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-automation-runs/$RUN_ID/events?limit=50&offset=0" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
workspace ID. |
|
string |
Yes |
Run record ID. |
Query parameters
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
No |
Return the quantity. |
|
integer |
No |
Returns the starting position of the list. |
Successful response¶
{
"code": 0,
"data": {
"items": [
{
"id": "event_01",
"workspace_id": "ws_01",
"run_id": "run_01",
"automation_task_id": "task_01",
"type": "status_changed",
"status": "running",
"message": "运行已开始。",
"created_at": "2026-08-18T04:00:00Z"
}
],
"total": 1,
"limit": 50,
"offset": 0
}
}
Returns 200 on success. data.items is the event list, and data.total is the total number of matches. An empty array only means that there is no return event this time, and it cannot be used to confirm that the running record exists or has ended. When the running record does not exist, this interface may also return 200 and an empty list. The record should be confirmed through the operation details, and the status and final output should be judged through Run result.
Field |
Type |
Description |
|---|---|---|
|
integer |
0 on success. |
|
array |
Run lifecycle events. |
|
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. |
|
string |
Event, workspace, run and task identifiers. |
|
string |
Event, workspace, run and task identifiers. |
|
string |
Event, workspace, run and task identifiers. |
|
string |
Event, workspace, run and task identifiers. |
|
string |
Event type, optional status, and description. |
|
string |
Event type, optional status, and description. |
|
string |
Event type, optional status, and description. |
|
string |
Event creation time, using RFC 3339 format. |
Error response¶
The following is the HTTP 503 response when the service is unavailable. The event list return 404 cannot be relied upon to confirm whether the running record exists.
{
"code": 15,
"message": "agent automation run service is not available"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
The path parameter is invalid. Recommendation: Check the workspace and run ID. |
|
|
Valid identity credentials are missing. Recommendation: Check the API Key. |
|
|
The automated task service is unavailable. Suggestion: Try again later. |