List dependencies. GET /api/openapi/v1/environment-packages, scope admin.v1.environment-packages.read.
- Scope:
admin.v1.environment-packages.read - Permission: Read dependencies
- Action: read
- Endpoint: GET
/api/openapi/v1/environment-packages
Authorization: Bearer \<API_KEY\>. The application must have subject_scope={"mode":"all"}; restricted scopes return 403. Scopes are independently granted. Do not cache responses.
Reuses the UI dependency service. First upload one file to uploads as multipart/form-data, then create or replace with JSON metadata and upload_id. Files must be nonempty and at most 1 GiB.
Receipts are bound to the organization and uploader, expire in one hour and can be consumed once. Replacement requires expected_revision and retains dependency/platform/arch and enabled.
The service calculates size and SHA-256; it does not inspect executable compatibility. Listing preserves UI filters and pagination. Writes and long-running uploads recheck current application authorization.
Common request headers
Apply the “Authentication and headers” section in “Configure the QwenWork console through APIs”: Authorization is required and X-Request-Id is optional. See this page for the required scope.
Whether Idempotency-Key applies and is required is specified in this page’s request parameters; a tracing identifier does not replace an idempotency key.
Request parameters
| Name | Location | Type | Required | Description | Example |
|---|---|---|---|---|---|
q | query | string | No | q; maxLength=200 | - |
enabled | query | boolean | No | enabled | - |
dependency | query | string | No | dependency; maxLength=64 | - |
platform | query | string | No | platform; enum=["windows", "macos", "linux"] Values: "linux", "macos", "windows" | - |
arch | query | string | No | arch; enum=["x64", "arm64"] Values: "arm64", "x64" | - |
page | query | integer · int64 | No | Page number, starting at 1; format="int64", minimum=1, maximum=1000000, default=1 default=1 | - |
page_size | query | integer · int64 | No | Page size; format="int64", minimum=1, maximum=100, default=20 default=20 | - |
Response statuses
| HTTP status | Trigger | Response structure | Client action |
|---|---|---|---|
200 | Request succeeded | See “Response” on this page | Read the response. |
default | Other authentication, authorization, validation or dependency errors | See “General error” in “Configure the QwenWork console through APIs” | Handle the status and code; verify the result and idempotency requirements before retrying writes. |
Response
Content-Type: application/json
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
items | array\<object\> | null | Yes | items | - |
page | integer · int64 | Yes | Page number, starting at 1; format="int64" | - |
page_size | integer · int64 | Yes | Page size; format="int64" | - |
total | integer · int64 | Yes | Total matching records; format="int64" | - |
items[]
| Field | Type | Required | Description |
|---|---|---|---|
arch | string | Yes | CPU architecture; enum=["x64", "arm64"] Values: "arm64", "x64" |
checksum_sha256 | string | Yes | File SHA-256 checksum |
created_at | string · date-time | Yes | Creation time; format="date-time" |
dependency | string | Yes | Environment dependency type; maxLength=64, pattern="^[a-z0-9][a-z0-9._-]{0,63}$" |
enabled | boolean | Yes | Whether enabled |
file_name | string | Yes | File name |
id | string | Yes | Record identifier |
platform | string | Yes | Target platform; enum=["windows", "macos", "linux"] Values: "linux", "macos", "windows" |
revision | integer · int64 | Yes | Current revision for concurrency control; format="int64" |
size_bytes | integer · int64 | Yes | File size in bytes; format="int64" |
updated_at | string · date-time | Yes | Update time; format="date-time" |
version | string | Yes | Version |