ListAutomationEventTaskRuns - List event task run records

Updated at:

Applicable editions

Central edition, Region edition

Service endpoint and authorization information

Product

Resource

Required permission

Organization Management

Automation event tasks

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/platform/organizations/{organizationId}/automation/event-tasks/{name}/runs

Region edition

GET https://{domain}/oapi/v1/platform/automation/event-tasks/{name}/runs

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

Personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example

organizationId

string

path

  • Required for the Central edition

  • Not required for the Region edition

Organization ID.

name

string

path

Yes

Event task name generated by the server, such as event-1a2b3c4d.

eventId

string

query

No

Filters by trigger event ID.

limit

integer

query

No

Maximum number of runs returned. Default: 20. Maximum: 50.

Request example

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/platform/organizations/{organizationId}/automation/event-tasks/{name}/runs?eventId={eventId}&limit={limit}' \
  -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/event-tasks/{name}/runs?eventId={eventId}&limit={limit}' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

object

runs

array

Run records aggregated by triggering event, ordered newest to oldest.

-

object

eventId

string

Triggering event ID. A manual trigger has the form manual:{ruleId}:{yyyyMMddHHmm}.

finishedAt

string

Run end time. Omitted if the run has not ended or historical data is unavailable.

ruleVersion

integer

Rule version for this run.

startedAt

string

Run start time.

status

string

Aggregate status of the entire run. A condition miss does not create a run, so skipped is not present. Possible values: [running success partial failed].

running

steps

array

Step execution details, ordered by rule node.

-

object

actionId

string

Rule node ID.

run_ai

detail

string

Execution details (redacted).

durationMs

integer

Execution duration in milliseconds.

finishedAt

string

Node end time. Omitted if the node has not ended.

kind

string

Node type. Possible values: [ai mail dingtalk unknown].

ai

startedAt

string

Node start time.

status

string

Node execution status. Possible values: [running success failed skipped].

running

trigger

string

Trigger source: manual trigger, scheduled trigger, or business event trigger. Possible values: [manual schedule event].

manual

truncated

boolean

Earlier run records exist but were not returned (outside the aggregation window or 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-related error codes, see the Error Code Center.