Query automation task running events

Query the life cycle events of an automated task running record.

HTTP
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

Shell
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

workspace_id

string

Yes

workspace ID.

run_id

string

Yes

Run record ID.

Query parameters

Field

Type

Required

Description

limit

integer

No

Return the quantity.

offset

integer

No

Returns the starting position of the list.

Successful response

JSON
{
  "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

code

integer

0 on success.

data.items

array

Run lifecycle events.

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.

data.items[].id

string

Event, workspace, run and task identifiers.

data.items[].workspace_id

string

Event, workspace, run and task identifiers.

data.items[].run_id

string

Event, workspace, run and task identifiers.

data.items[].automation_task_id

string

Event, workspace, run and task identifiers.

data.items[].type

string

Event type, optional status, and description.

data.items[].status

string

Event type, optional status, and description.

data.items[].message

string

Event type, optional status, and description.

data.items[].created_at

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.

JSON
{
  "code": 15,
  "message": "agent automation run service is not available"
}

Common HTTP errors

HTTP status code

error code

Description

400

2(INVALID_ARGUMENT)

The path parameter is invalid. Recommendation: Check the workspace and run ID.

401

6(UNAUTHENTICATED)

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

503

15(UNAVAILABLE)

The automated task service is unavailable. Suggestion: Try again later.

Last updated on