ListAutomationScheduledTasks - Query the scheduled task list

Updated at:

Applicable editions

Central edition, Region edition

Endpoints and authorization information

  • Get the endpoint to replace {domain} in the request syntax.
  • Get a personal access token.
  • Get the organization ID. This parameter is required only for the Central edition. Go to the Basic Information page in the Organization Management console 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

Region edition

GET https://{domain}/oapi/v1/platform/automation/scheduled-tasks

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

  • Yes: Central edition

  • No: Region edition

The organization ID.

enabled

boolean

query

No

Filters by enabled status. If not specified, all tasks are returned.

Request examples

Central edition

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

Response parameters

Parameter

Type

Description

Example value

-

array

-

object

channels

array[string]

The selected report delivery channels.

createdAt

string

The creation time.

enabled

boolean

Whether the task is enabled.

true

mailSubject

string

The independently configured email subject. Omitted when it follows the task title.

manageable

boolean

Whether the task form can fully manage the task. When false, the task is read-only (it can be enabled, disabled, or deleted, but cannot be updated through the form).

true

mode

string

The AI execution mode: report (generate a report) or command (execute a command). Valid values: [report command].

report

model

object

The AI model used by the task. Returns Auto (provider=auto, modelId=auto) when no model is configured.

modelId

string

The model ID (without the date suffix). Set to auto when Auto is used.

qwen3.8-max

provider

string

The model provider. Set to auto when Auto is used.

qwen

name

string

The task name (a stable identifier generated by the server), unique within the organization.

sched-1a2b3c4d

prompt

string

The AI prompt.

recipients

array[string]

The recipient list echoed when all channels are consistent. Omitted when recipients differ across channels or no channel is selected.

schedule

object

cron

string

The cron expression that actually takes effect.

30 9 * * *

dayOfMonth

integer

The day of the month. A structured echo field, provided when the cron can be expressed by the form.

dayOfWeek

integer

The day of the week (0-6, where 0 is Sunday).

frequency

string

The structured frequency. Omitted when the cron cannot be expressed by the form. Valid values: [daily weekly monthly weekdays hourly everyMinutes custom].

daily

intervalMinutes

integer

The interval in minutes.

minute

integer

The minute of the hour.

text

string

The description of the schedule.

Every day at 09:30

time

string

The trigger time in HH:mm.

timezone

string

The time zone.

Asia/Shanghai

title

string

The task title.

Daily R&D report

unmanageableReason

string

The reason code when manageable=false, such as custom_condition / unsupported_dag_shape / divergent_recipients.

updatedAt

string

The update time.

version

integer

The rule version number, which increments on each update.

Response example

[
    {
        "channels": [
            
        ],
        "createdAt": "",
        "enabled": true,
        "mailSubject": "",
        "manageable": true,
        "mode": "report",
        "model": {
            "modelId": "qwen3.8-max",
            "provider": "qwen"
        },
        "name": "sched-1a2b3c4d",
        "prompt": "",
        "recipients": [
            
        ],
        "schedule": {
            "cron": "30 9 * * *",
            "dayOfMonth": 0,
            "dayOfWeek": 0,
            "frequency": "daily",
            "intervalMinutes": 0,
            "minute": 0,
            "text": "Every day at 09:30",
            "time": "",
            "timezone": "Asia/Shanghai"
        },
        "title": "Daily R&D report",
        "unmanageableReason": "",
        "updatedAt": "",
        "version": 0
    }
]

Error codes

For more information about API error codes, see the Error Code Center.