GetAutomationScheduledTask - Queries the details of a scheduled task
|
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: required only for the Central edition. Go to the Organization Management console and obtain the organization ID on the Basic Information page.
|
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}
Region edition
GET https://{domain}/oapi/v1/platform/automation/scheduled-tasks/{name}
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 |
|
The organization ID. |
|
|
name |
string |
path |
Yes |
The task name. |
Request examples
Central edition
curl -X 'GET' \
'https://{domain}/oapi/v1/platform/organizations/{organizationId}/automation/scheduled-tasks/{name}' \
-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}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example value |
| - |
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 can be fully managed through the task form. 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 (run 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 returned when recipients are consistent across all channels. Omitted when recipients differ between channels or when 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 expression can be represented by the form. |
|
| dayOfWeek |
integer |
The day of the week (0 to 6, where 0 is Sunday). |
|
| frequency |
string |
The structured frequency. Omitted when the cron expression cannot be represented 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 |
A human-readable description of the schedule. |
Every day at 09:30 |
| time |
string |
The trigger time in HH:mm format. |
|
| timezone |
string |
The time zone. |
Asia/Shanghai |
| title |
string |
The task title. |
Daily R&D report |
| unmanageableReason |
string |
The reason code when manageable is false, such as custom_condition, unsupported_dag_shape, or divergent_recipients. |
|
| updatedAt |
string |
The update time. |
|
| version |
integer |
The rule version number, incremented 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.