ListAutomationScheduledTaskRuns - List scheduled task runs
Queries scheduled task run records through OpenAPI. Runs are aggregated by trigger event, and each run includes per-node details. Use eventId to track an individual manual run. Triggers that do not match the condition (recorded by the engine as SKIPPED) do not create runs and are not included in the list.
Applicable editions | Central edition, Region edition |
Endpoints and authorization information
- Get the service endpoint: Replace {domain} in the API request syntax.
- Get a personal access token。
- Obtain organizationId: Required only for the Central edition. In the Organization Management console, go to the Basic Information page to obtain the organization ID.
Product | Resource | Required permission |
Organization Management | Automation scheduled tasks | Read-only |
Request syntax
Central edition
GET https://{domain}/oapi/v1/platform/organizations/{organizationId}/automation/scheduled-tasks/{name}/runs
Region edition
GET https://{domain}/oapi/v1/platform/automation/scheduled-tasks/{name}/runs
Request headers
Parameter | Type | Required | Description | Example value |
x-yunxiao-token | string | Yes | Personal access token. | pt-0fh3****0fbG_35af****0484 |
Request parameters
Parameter | Type | Location | Required | Description | Example value |
organizationId | string | path |
| Organization ID. | |
name | string | path | Yes | Task name. | |
limit | integer | query | No | Maximum number of runs to return. Default value: 20. Maximum value: 50. | |
eventId | string | query | No | Returns only runs for the specified trigger event (the eventId returned by the manual trigger operation). |
Request examples
Central edition
curl -X 'GET' \
'https://{domain}/oapi/v1/platform/organizations/{organizationId}/automation/scheduled-tasks/{name}/runs?limit={limit}&eventId={eventId}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'GET' \
'https://{domain}/oapi/v1/platform/automation/scheduled-tasks/{name}/runs?limit={limit}&eventId={eventId}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
Parameter | Type | Description | Example value |
| - | object | ||
| runs | array | Run records grouped by trigger event, ordered from newest to oldest. | |
| - | object | ||
| eventId | string | Trigger event ID. For manual triggers, format: manual:{ruleId}:{yyyyMMddHHmm}. | |
| finishedAt | string | Run completion time. Omitted if the run has not finished or historical data is unavailable. | |
| ruleVersion | integer | Rule version for this run. | |
| startedAt | string | Run start time. | |
| status | string | Aggregated status of the entire run. Triggers that do not match the condition do not create a run, so skipped is not included. Valid values: running, success, partial, failed. | running |
| steps | array | Per-step execution details ordered by rule node. | |
| - | object | ||
| actionId | string | Rule node ID. | run_ai |
| detail | string | Execution details (masked). | |
| durationMs | integer | Execution duration, in milliseconds. | |
| finishedAt | string | Node completion time. Omitted if the node has not finished. | |
| kind | string | Node type. Valid values: ai, mail, dingtalk, unknown. | ai |
| startedAt | string | Node start time. | |
| status | string | Node execution status. Valid values: running, success, failed, skipped. | running |
| trigger | string | Trigger source: manual, scheduled, or business-event. Valid values: manual, schedule, event. | manual |
| truncated | boolean | Earlier run records exist but were not returned because they fall outside the aggregation window or exceed limit. |
Response example
{
"runs": [
{
"eventId": "",
"finishedAt": "",
"ruleVersion": 0,
"startedAt": "",
"status": "running",
"steps": [
{
"actionId": "run_ai",
"detail": "",
"durationMs": 0,
"finishedAt": "",
"kind": "ai",
"startedAt": "",
"status": "running"
}
],
"trigger": "manual"
}
],
"truncated": false
}
Error codes
For API error codes, see the Error Code Center.