List trusted devices. GET /api/openapi/v1/trusted-devices, scope admin.v1.trusted-devices.read.
- Scope:
admin.v1.trusted-devices.read - Permission: trusted devices read
- Permission type: read
- Endpoint: GET
/api/openapi/v1/trusted-devices
Authorization: Bearer \<API_KEY\>. This endpoint requires an application with subject_scope={"mode":"all"}. Restricted or invalid user scopes return 403 openapi_subject_scope_denied before business execution.
Scopes do not imply each other. Organization and application actor come from verified authentication, not request parameters.
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 |
|---|---|---|---|---|---|
page | query | integer · int64 | No | Page number, starting at 1; format="int64", minimum=1, default=1 default=1 | - |
page_size | query | integer · int64 | No | Page size; format="int64", minimum=1, maximum=100, default=20 default=20 | - |
keyword | query | string | No | Search keyword; matching rules are described below; maxLength=255 | - |
trusted | query | string | No | trusted; enum=["true", "false"] Values: "false", "true" | - |
created_from | query | string · date-time | No | created from; format="date-time" | - |
created_to | query | string · date-time | No | created to; format="date-time" | - |
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\> | 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 |
|---|---|---|---|
created_at | string · date-time | Yes | created at; format="date-time" |
created_by | string · uuid | null | No | Creator ID; format="uuid" |
created_by_email | string | No | created by email |
created_by_name | string | No | Creator name |
device_name | string | Yes | device name |
id | string · uuid | Yes | id; format="uuid" |
login_username | string | Yes | login username |
mac_address | string | null | Yes | mac address |
model | string | Yes | model |
operating_system | string | Yes | operating system |
serial_number | string | null | Yes | serial number |
source | string | Yes | source; enum=["single", "import", "first_device_auto_trust", "approval"] Values: "approval", "first_device_auto_trust", "import", "single" |
trusted | boolean | Yes | trusted |
updated_at | string · date-time | Yes | updated at; format="date-time" |
updated_by | string · uuid | null | No | Updater ID; format="uuid" |
updated_by_email | string | No | updated by email |
updated_by_name | string | No | updated by name |
user | object | Yes | user |
version | integer · int64 | Yes | version; format="int64" |
items[].user
| Field | Type | Required | Description |
|---|---|---|---|
department_id | string | null | Yes | department id |
department_name | string | Yes | department name |
department_path | string | Yes | department path |
departments | array\<object\> | Yes | departments |
email | string | Yes | |
employee_no | string | Yes | employee no |
org_id | string · uuid | Yes | Organization ID derived from trusted identity; format="uuid" |
user_id | string · uuid | Yes | user id; format="uuid" |
user_name | string | Yes | user name |
items[].user.departments[]
| Field | Type | Required | Description |
|---|---|---|---|
id | string · uuid | Yes | id; format="uuid" |
name | string | Yes | name |
path | string | Yes | path |
Errors
Uses the existing {error, detail, code} error envelope. Invalid credentials: 401/403; missing Scope or non-all user scope: 403; missing resource: 404; conflict/stale version: 409; invalid input: 400/422; unavailable dependency: 503. Business errors retain Console semantics.