调用条件、权限、请求字段、响应字段与错误处理。
请求与权限
GEThttps://openapi.qwenwork.ai/v1/scheduler/tasks
鉴权:Authorization: Bearer <access_token>;使用用户 OAuth 授权获得的访问令牌。
所需业务 Scope:scheduler.task.read
契约声明的授权方式:组织授权(organization)、个人授权(personal)
Scope 需由平台为应用开通;用户须有相应业务权限,目标资源须在其可访问范围内。个人/组织方式是否为该应用开放,以控制台实际配置为准。
功能与限制
使用用户 OAuth token,需要 scheduler.task.read。只支持用户 OAuth Token;应用 token、登录态均不支持。查询当前授权用户的标准行业时间任务,包含配置与提示词。沿用现有用户维度语义,不按调用应用或授权组织过滤。排除已删除任务;page/size 分页,不转换成 cursor。查询参数
| 参数 | 类型 | 必填 | 说明及约束 |
|---|---|---|---|
page | integer | 否 | 默认值:1 最小值(含):1 最大值(含):100000 |
size | integer | 否 | 默认值:20 最小值(含):1 最大值(含):100 |
status | string | 否 | 可选值:["active", "paused"] |
keyword | string | 否 | 关键词,UTF-8 字节数最多 1024。 最长长度:1024 |
sort | string | 否 | 默认值:"created_desc" 可选值:["created_desc", "created_asc"] |
请求体
公开契约未声明请求体。不要自行添加身份字段或未经声明的业务字段。成功响应
保持各业务接口原始响应结构,不统一添加code/msg/data 包装。
HTTP 200
成功 响应类型:application/json
Copy
{
"items": [
{
"action": {
"execution_target": {
"kind": "cloud"
}
},
"created_at": "2026-11-16T01:00:00Z",
"delete_after_run": false,
"description": "每天上午汇总工作",
"id": "73abb1ac-8c5a-4538-95ba-97c06297ebce",
"name": "每日工作摘要",
"status": "active",
"target": {
"kind": "cloud_session",
"payload": {
"delivery_mode": "isolated",
"prompt": "汇总今天的待办事项"
}
},
"trigger": {
"kind": "cron",
"spec": {
"expr": "0 9 * * *",
"tz": "Asia/Shanghai"
}
},
"type": "time",
"updated_at": "2026-11-16T01:00:00Z"
}
],
"paging": {
"has_more": false,
"page": 1,
"size": 20,
"total": 1
}
}
| 字段 | 类型 | 必含 | 说明及约束 |
|---|---|---|---|
items | array | 是 | — |
items[] | object | 否 | 额外字段:false |
items[].action | object | 是 | 额外字段:false |
items[].action.execution_target | object | 是 | 额外字段:false |
items[].action.execution_target.device_id | string | 否 | desktop 必填,cloud 不可携带。 |
items[].action.execution_target.device_name | string | 否 | — |
items[].action.execution_target.kind | string | 是 | 可选值:["cloud", "desktop"] |
items[].created_at | string | 是 | 格式:"date-time" |
items[].delete_after_run | boolean | 是 | 仅 at 触发器可为 true。 默认值:false |
items[].description | string | 是 | — |
items[].id | string | 是 | 格式:"uuid" |
items[].name | string | 是 | 最短长度:1 最长长度:100 |
items[].status | string | 是 | 默认值:"active" 可选值:["active", "paused"] |
items[].target | object | 是 | 额外字段:false |
items[].target.kind | string | 是 | — |
items[].target.payload | object | 是 | 额外字段:"受 Schema 约束,见完整契约" |
items[].trigger | object | 是 | — |
items[].trigger | object | 是 | 恰好满足一种:分支 1 额外字段:false |
items[].trigger.kind | string | 是 | 恰好满足一种:分支 1 固定值:"at" |
items[].trigger.spec | object | 是 | 恰好满足一种:分支 1 额外字段:true |
items[].trigger.spec.fire | string | 是 | 恰好满足一种:分支 1 格式:"date-time" |
items[].trigger.spec.rest_day | object | 否 | 恰好满足一种:分支 1 额外字段:true |
items[].trigger.spec.rest_day.enabled | boolean | 否 | 恰好满足一种:分支 1 — |
items[].trigger.spec.rest_day.region | string | 否 | 恰好满足一种:分支 1 — |
items[].trigger.spec.rest_day.skip_on | string | 否 | 恰好满足一种:分支 1 可选值:["WORKDAY", "HOLIDAY"] |
items[].trigger | object | 是 | 恰好满足一种:分支 2 额外字段:false |
items[].trigger.kind | string | 是 | 恰好满足一种:分支 2 固定值:"every" |
items[].trigger.spec | object | 是 | 恰好满足一种:分支 2 额外字段:true |
items[].trigger.spec.interval_ns | integer | 是 | 恰好满足一种:分支 2 最小值(含):60000000000 最大值(含):31536000000000000 |
items[].trigger.spec.rest_day | object | 否 | 恰好满足一种:分支 2 额外字段:true |
items[].trigger.spec.rest_day.enabled | boolean | 否 | 恰好满足一种:分支 2 — |
items[].trigger.spec.rest_day.region | string | 否 | 恰好满足一种:分支 2 — |
items[].trigger.spec.rest_day.skip_on | string | 否 | 恰好满足一种:分支 2 可选值:["WORKDAY", "HOLIDAY"] |
items[].trigger.spec.start_from | string | 是 | 恰好满足一种:分支 2 格式:"date-time" |
items[].trigger | object | 是 | 恰好满足一种:分支 3 额外字段:false |
items[].trigger.kind | string | 是 | 恰好满足一种:分支 3 固定值:"cron" |
items[].trigger.spec | object | 是 | 恰好满足一种:分支 3 额外字段:true |
items[].trigger.spec.expr | string | 是 | 恰好满足一种:分支 3 五段 Cron 表达式 |
items[].trigger.spec.rest_day | object | 否 | 恰好满足一种:分支 3 额外字段:true |
items[].trigger.spec.rest_day.enabled | boolean | 否 | 恰好满足一种:分支 3 — |
items[].trigger.spec.rest_day.region | string | 否 | 恰好满足一种:分支 3 — |
items[].trigger.spec.rest_day.skip_on | string | 否 | 恰好满足一种:分支 3 可选值:["WORKDAY", "HOLIDAY"] |
items[].trigger.spec.tz | string | 是 | 恰好满足一种:分支 3 IANA 时区,如 Asia/Shanghai |
items[].type | string | 是 | 固定值:"time" |
items[].updated_at | string | 是 | 格式:"date-time" |
paging | object | 是 | 额外字段:false |
paging.has_more | boolean | 是 | — |
paging.page | integer | 是 | — |
paging.size | integer | 是 | — |
paging.total | integer | 是 | — |
错误响应
| HTTP | 说明及处理 |
|---|---|
400 | 请求或分页无效;修正参数后再调用。 |
401 | 用户凭证无效、过期或凭证类型不支持;重新获取用户 OAuth token。 |
403 | 缺少操作 Scope 或业务资源权限;检查应用开通和用户授权。 |
404 | 请求的业务资源不存在。 |
409 | 任务状态不允许当前操作;核实任务状态。 |
413 | 请求正文超过 512 KiB;缩小请求。 |
415 | 请求必须为 application/json。 |
422 | 当前执行模式不可用;选择用户可用的模式。 |
429 | 触发平台限流或业务额度限制;按平台响应退避。 |
500 | 业务处理失败;通过 X-Request-Id 排查。创建结果不确定时不要盲目重试。 |
502 | 网关上游响应失败或超过 4 MiB;查询可缩小 size。创建结果不确定时先核实。 |
503 | 网关或业务接入未配置、依赖不可用;联系平台管理员。 |
504 | 请求超时;创建可能已经成功,先查询核实。 |
完整字段契约
下方 JSON 包含本接口完整请求、响应、错误 Schema、嵌套约束和公开扩展定义,可复制用于核对。未声明的成功示例不作推测。展开完整接口 OpenAPI JSON
展开完整接口 OpenAPI JSON
Copy
{
"components": {
"schemas": {
"Action": {
"additionalProperties": false,
"properties": {
"execution_target": {
"additionalProperties": false,
"properties": {
"device_id": {
"description": "desktop 必填,cloud 不可携带。",
"type": "string"
},
"device_name": {
"type": "string"
},
"kind": {
"enum": [
"cloud",
"desktop"
],
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
}
},
"required": [
"execution_target"
],
"type": "object"
},
"Error": {
"additionalProperties": false,
"properties": {
"error": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
},
"GatewayError": {
"additionalProperties": false,
"properties": {
"code": {
"type": "integer"
},
"data": {
"type": "null"
},
"msg": {
"type": "string"
}
},
"required": [
"code",
"msg",
"data"
],
"type": "object"
},
"Task": {
"additionalProperties": false,
"properties": {
"action": {
"$ref": "#/components/schemas/Action"
},
"created_at": {
"format": "date-time",
"type": "string"
},
"delete_after_run": {
"default": false,
"description": "仅 at 触发器可为 true。",
"type": "boolean"
},
"description": {
"type": "string"
},
"id": {
"format": "uuid",
"type": "string"
},
"name": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"status": {
"default": "active",
"enum": [
"active",
"paused"
],
"type": "string"
},
"target": {
"additionalProperties": false,
"properties": {
"kind": {
"type": "string"
},
"payload": {
"additionalProperties": {},
"type": "object"
}
},
"required": [
"kind",
"payload"
],
"type": "object"
},
"trigger": {
"$ref": "#/components/schemas/Trigger"
},
"type": {
"const": "time",
"type": "string"
},
"updated_at": {
"format": "date-time",
"type": "string"
}
},
"required": [
"name",
"description",
"trigger",
"target",
"action",
"status",
"delete_after_run",
"id",
"type",
"created_at",
"updated_at"
],
"type": "object"
},
"TaskPage": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/Task"
},
"type": "array"
},
"paging": {
"additionalProperties": false,
"properties": {
"has_more": {
"type": "boolean"
},
"page": {
"type": "integer"
},
"size": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"required": [
"page",
"size",
"total",
"has_more"
],
"type": "object"
}
},
"required": [
"items",
"paging"
],
"type": "object"
},
"Trigger": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "at",
"type": "string"
},
"spec": {
"additionalProperties": true,
"properties": {
"fire": {
"format": "date-time",
"type": "string"
},
"rest_day": {
"additionalProperties": true,
"properties": {
"enabled": {
"type": "boolean"
},
"region": {
"type": "string"
},
"skip_on": {
"enum": [
"WORKDAY",
"HOLIDAY"
],
"type": "string"
}
},
"type": "object"
}
},
"required": [
"fire"
],
"type": "object"
}
},
"required": [
"kind",
"spec"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "every",
"type": "string"
},
"spec": {
"additionalProperties": true,
"properties": {
"interval_ns": {
"maximum": 31536000000000000,
"minimum": 60000000000,
"type": "integer"
},
"rest_day": {
"additionalProperties": true,
"properties": {
"enabled": {
"type": "boolean"
},
"region": {
"type": "string"
},
"skip_on": {
"enum": [
"WORKDAY",
"HOLIDAY"
],
"type": "string"
}
},
"type": "object"
},
"start_from": {
"format": "date-time",
"type": "string"
}
},
"required": [
"interval_ns",
"start_from"
],
"type": "object"
}
},
"required": [
"kind",
"spec"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "cron",
"type": "string"
},
"spec": {
"additionalProperties": true,
"properties": {
"expr": {
"description": "五段 Cron 表达式",
"type": "string"
},
"rest_day": {
"additionalProperties": true,
"properties": {
"enabled": {
"type": "boolean"
},
"region": {
"type": "string"
},
"skip_on": {
"enum": [
"WORKDAY",
"HOLIDAY"
],
"type": "string"
}
},
"type": "object"
},
"tz": {
"description": "IANA 时区,如 Asia/Shanghai",
"type": "string"
}
},
"required": [
"expr",
"tz"
],
"type": "object"
}
},
"required": [
"kind",
"spec"
],
"type": "object"
}
]
}
},
"securitySchemes": {
"OpenPlatformBearer": {
"scheme": "bearer",
"type": "http"
}
}
},
"openapi": "3.1.0",
"paths": {
"/v1/scheduler/tasks": {
"get": {
"description": "使用用户 OAuth token,需要 scheduler.task.read。只支持用户 OAuth Token;应用 token、登录态均不支持。查询当前授权用户的标准行业时间任务,包含配置与提示词。沿用现有用户维度语义,不按调用应用或授权组织过滤。排除已删除任务;page/size 分页,不转换成 cursor。",
"operationId": "listSchedulerTasks",
"parameters": [
{
"in": "query",
"name": "page",
"required": false,
"schema": {
"default": 1,
"maximum": 100000,
"minimum": 1,
"type": "integer"
}
},
{
"in": "query",
"name": "size",
"required": false,
"schema": {
"default": 20,
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
{
"in": "query",
"name": "status",
"required": false,
"schema": {
"enum": [
"active",
"paused"
],
"type": "string"
}
},
{
"in": "query",
"name": "keyword",
"required": false,
"schema": {
"description": "关键词,UTF-8 字节数最多 1024。",
"maxLength": 1024,
"type": "string"
}
},
{
"in": "query",
"name": "sort",
"required": false,
"schema": {
"default": "created_desc",
"enum": [
"created_desc",
"created_asc"
],
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"example": {
"items": [
{
"action": {
"execution_target": {
"kind": "cloud"
}
},
"created_at": "2026-11-16T01:00:00Z",
"delete_after_run": false,
"description": "每天上午汇总工作",
"id": "73abb1ac-8c5a-4538-95ba-97c06297ebce",
"name": "每日工作摘要",
"status": "active",
"target": {
"kind": "cloud_session",
"payload": {
"delivery_mode": "isolated",
"prompt": "汇总今天的待办事项"
}
},
"trigger": {
"kind": "cron",
"spec": {
"expr": "0 9 * * *",
"tz": "Asia/Shanghai"
}
},
"type": "time",
"updated_at": "2026-11-16T01:00:00Z"
}
],
"paging": {
"has_more": false,
"page": 1,
"size": 20,
"total": 1
}
},
"schema": {
"$ref": "#/components/schemas/TaskPage"
}
}
},
"description": "成功",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"400": {
"content": {
"application/json": {
"example": {
"error": {
"code": "bad_request",
"message": "请求或分页无效;修正参数后再调用。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "请求或分页无效;修正参数后再调用。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"401": {
"content": {
"application/json": {
"example": {
"error": {
"code": "unauthorized",
"message": "用户凭证无效、过期或凭证类型不支持;重新获取用户 OAuth token。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "用户凭证无效、过期或凭证类型不支持;重新获取用户 OAuth token。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"403": {
"content": {
"application/json": {
"example": {
"error": {
"code": "insufficient_scope",
"message": "缺少操作 Scope 或业务资源权限;检查应用开通和用户授权。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "缺少操作 Scope 或业务资源权限;检查应用开通和用户授权。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"404": {
"content": {
"application/json": {
"example": {
"error": {
"code": "not_found",
"message": "请求的业务资源不存在。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "请求的业务资源不存在。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"409": {
"content": {
"application/json": {
"example": {
"error": {
"code": "conflict",
"message": "任务状态不允许当前操作;核实任务状态。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "任务状态不允许当前操作;核实任务状态。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"413": {
"content": {
"application/json": {
"example": {
"error": {
"code": "payload_too_large",
"message": "请求正文超过 512 KiB;缩小请求。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "请求正文超过 512 KiB;缩小请求。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"415": {
"content": {
"application/json": {
"example": {
"error": {
"code": "unsupported_media_type",
"message": "请求必须为 application/json。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "请求必须为 application/json。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"422": {
"content": {
"application/json": {
"example": {
"error": {
"code": "MODE_UNAVAILABLE",
"message": "当前执行模式不可用;选择用户可用的模式。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "当前执行模式不可用;选择用户可用的模式。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"429": {
"content": {
"application/json": {
"example": {
"error": {
"code": "rate_limited",
"message": "触发平台限流或业务额度限制;按平台响应退避。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "触发平台限流或业务额度限制;按平台响应退避。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"500": {
"content": {
"application/json": {
"example": {
"error": {
"code": "internal_error",
"message": "业务处理失败;通过 X-Request-Id 排查。创建结果不确定时不要盲目重试。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "业务处理失败;通过 X-Request-Id 排查。创建结果不确定时不要盲目重试。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"502": {
"content": {
"application/json": {
"example": {
"error": {
"code": "bad_gateway",
"message": "网关上游响应失败或超过 4 MiB;查询可缩小 size。创建结果不确定时先核实。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "网关上游响应失败或超过 4 MiB;查询可缩小 size。创建结果不确定时先核实。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"503": {
"content": {
"application/json": {
"example": {
"error": {
"code": "unavailable",
"message": "网关或业务接入未配置、依赖不可用;联系平台管理员。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "网关或业务接入未配置、依赖不可用;联系平台管理员。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"504": {
"content": {
"application/json": {
"example": {
"error": {
"code": "timeout",
"message": "请求超时;创建可能已经成功,先查询核实。"
}
},
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Error"
},
{
"$ref": "#/components/schemas/GatewayError"
}
]
}
}
},
"description": "请求超时;创建可能已经成功,先查询核实。",
"headers": {
"X-Request-ID": {
"description": "开放平台为每次 HTTP 请求生成的请求 ID,用于日志关联与故障排查;重试生成新的 ID,不是幂等键或分布式 Trace ID。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "开放平台当前请求的 OpenTelemetry TraceID,通过请求日志与 X-Request-ID 关联;采样未保留时可能没有完整链路记录。",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
}
},
"security": [
{
"OpenPlatformBearer": []
}
],
"summary": "查询定时任务",
"tags": [
"定时任务"
]
}
}
},
"info": {
"title": "查询定时任务",
"version": "2026-11-24"
},
"servers": [
{
"url": "https://openapi.qwenwork.ai"
}
]
}