Requirements, permissions, request and response fields, and error handling.
Request and permissions
GET https://openapi.qwenwork.ai/v1/scheduler/tasks
Authentication: Authorization: Bearer <access_token>. Use an access token obtained through user OAuth authorization.
Required business Scope: scheduler.task.read
Authorization types declared in the contract: Organization authorization (organization) and personal authorization (personal).
The platform must enable the Scope for your application. The user must have the relevant business permissions and access to the target resource. Availability of personal and organization authorization for your application depends on its console configuration.
Behavior and limitations
Use a user OAuth token with scheduler.task.read. Only user OAuth tokens are supported; application tokens and login sessions are not supported. Lists the currently authorized user's standard time-based tasks, including their configuration and prompts. Existing user-level semantics apply: results are not filtered by the calling application or authorized organization. Deleted tasks are excluded. Pagination uses page/size, not cursor.
Query parameters
| Parameter | Type | Required | Description and constraints |
|---|---|---|---|
page | integer | No | Default: 1 Minimum (inclusive): 1 Maximum (inclusive): 100000 |
size | integer | No | Default: 20 Minimum (inclusive): 1 Maximum (inclusive): 100 |
status | string | No | Allowed values: ["active", "paused"] |
keyword | string | No | Keyword, up to 1024 UTF-8 bytes. Maximum length: 1024 |
sort | string | No | Default: "created_desc" Allowed values: ["created_desc", "created_asc"] |
Request body
The public contract does not declare a request body. Do not add identity fields or undeclared business fields.
Success responses
Each business API retains its original response structure; no common code/msg/data wrapper is added.
HTTP 200
Success
Response type: application/json
| Field | Type | Required | Description and constraints |
|---|---|---|---|
items | array | Yes | — |
items[] | object | No | Additional properties: false |
items[].action | object | Yes | Additional properties: false |
items[].action.execution_target | object | Yes | Additional properties: false |
items[].action.execution_target.device_id | string | No | Required for desktop; must not be provided for cloud. |
items[].action.execution_target.device_name | string | No | — |
items[].action.execution_target.kind | string | Yes | Allowed values: ["cloud", "desktop"] |
items[].created_at | string | Yes | Format: "date-time" |
items[].delete_after_run | boolean | Yes | Can be true only for an at trigger. Default: false |
items[].description | string | Yes | — |
items[].id | string | Yes | Format: "uuid" |
items[].name | string | Yes | Minimum length: 1 Maximum length: 100 |
items[].status | string | Yes | Default: "active" Allowed values: ["active", "paused"] |
items[].target | object | Yes | Additional properties: false |
items[].target.kind | string | Yes | — |
items[].target.payload | object | Yes | Additional properties: "Subject to schema constraints; see the complete contract" |
items[].trigger | object | Yes | — |
items[].trigger | object | Yes | Exactly one branch must match: branch 1 Additional properties: false |
items[].trigger.kind | string | Yes | Exactly one branch must match: branch 1 Constant value: "at" |
items[].trigger.spec | object | Yes | Exactly one branch must match: branch 1 Additional properties: true |
items[].trigger.spec.fire | string | Yes | Exactly one branch must match: branch 1 Format: "date-time" |
items[].trigger.spec.rest_day | object | No | Exactly one branch must match: branch 1 Additional properties: true |
items[].trigger.spec.rest_day.enabled | boolean | No | Exactly one branch must match: branch 1 — |
items[].trigger.spec.rest_day.region | string | No | Exactly one branch must match: branch 1 — |
items[].trigger.spec.rest_day.skip_on | string | No | Exactly one branch must match: branch 1 Allowed values: ["WORKDAY", "HOLIDAY"] |
items[].trigger | object | Yes | Exactly one branch must match: branch 2 Additional properties: false |
items[].trigger.kind | string | Yes | Exactly one branch must match: branch 2 Constant value: "every" |
items[].trigger.spec | object | Yes | Exactly one branch must match: branch 2 Additional properties: true |
items[].trigger.spec.interval_ns | integer | Yes | Exactly one branch must match: branch 2 Minimum (inclusive): 60000000000 Maximum (inclusive): 31536000000000000 |
items[].trigger.spec.rest_day | object | No | Exactly one branch must match: branch 2 Additional properties: true |
items[].trigger.spec.rest_day.enabled | boolean | No | Exactly one branch must match: branch 2 — |
items[].trigger.spec.rest_day.region | string | No | Exactly one branch must match: branch 2 — |
items[].trigger.spec.rest_day.skip_on | string | No | Exactly one branch must match: branch 2 Allowed values: ["WORKDAY", "HOLIDAY"] |
items[].trigger.spec.start_from | string | Yes | Exactly one branch must match: branch 2 Format: "date-time" |
items[].trigger | object | Yes | Exactly one branch must match: branch 3 Additional properties: false |
items[].trigger.kind | string | Yes | Exactly one branch must match: branch 3 Constant value: "cron" |
items[].trigger.spec | object | Yes | Exactly one branch must match: branch 3 Additional properties: true |
items[].trigger.spec.expr | string | Yes | Exactly one branch must match: branch 3 Five-field Cron expression |
items[].trigger.spec.rest_day | object | No | Exactly one branch must match: branch 3 Additional properties: true |
items[].trigger.spec.rest_day.enabled | boolean | No | Exactly one branch must match: branch 3 — |
items[].trigger.spec.rest_day.region | string | No | Exactly one branch must match: branch 3 — |
items[].trigger.spec.rest_day.skip_on | string | No | Exactly one branch must match: branch 3 Allowed values: ["WORKDAY", "HOLIDAY"] |
items[].trigger.spec.tz | string | Yes | Exactly one branch must match: branch 3 IANA time zone, such as Asia/Shanghai |
items[].type | string | Yes | Constant value: "time" |
items[].updated_at | string | Yes | Format: "date-time" |
paging | object | Yes | Additional properties: false |
paging.has_more | boolean | Yes | — |
paging.page | integer | Yes | — |
paging.size | integer | Yes | — |
paging.total | integer | Yes | — |
Error responses
| HTTP | Description and handling |
|---|---|
400 | Invalid request or pagination. Correct the parameters before calling again. |
401 | User credentials are invalid, expired, or of an unsupported type. Obtain a new user OAuth token. |
403 | Missing the operation Scope or business resource permissions. Check application enablement and user authorization. |
404 | The requested business resource does not exist. |
409 | The task status does not allow this operation. Check the task status. |
413 | The request body exceeds 512 KiB. Reduce its size. |
415 | The request must use application/json. |
422 | The current execution mode is unavailable. Select a mode available to the user. |
429 | Platform rate limiting or a business quota limit was reached. Back off as indicated by the platform response. |
500 | Business processing failed. Use X-Request-Id to troubleshoot. Do not blindly retry if the creation outcome is uncertain. |
502 | The gateway upstream response failed or exceeded 4 MiB. For queries, reduce size. Verify the outcome first if creation is uncertain. |
503 | Gateway or business integration is not configured, or a dependency is unavailable. Contact the platform administrator. |
504 | The request timed out. Creation may have succeeded; query to verify first. |
Complete field contract
The JSON below contains the complete request, response, and error schemas, nested constraints, and public extension definitions for this API. Copy it to verify the contract. Success examples not declared in the contract are not inferred.
Expand the complete OpenAPI JSON
Expand the complete OpenAPI JSON