Skip to main content

List trusted devices

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
Use 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

NameLocationTypeRequiredDescriptionExample
pagequeryinteger · int64NoPage number, starting at 1; format="int64", minimum=1, default=1 default=1-
page_sizequeryinteger · int64NoPage size; format="int64", minimum=1, maximum=100, default=20 default=20-
keywordquerystringNoSearch keyword; matching rules are described below; maxLength=255-
trustedquerystringNotrusted; enum=["true", "false"] Values: "false", "true"-
created_fromquerystring · date-timeNocreated from; format="date-time"-
created_toquerystring · date-timeNocreated to; format="date-time"-

Response statuses

HTTP statusTriggerResponse structureClient action
200Request succeededSee “Response” on this pageRead the response.
defaultOther authentication, authorization, validation or dependency errorsSee “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
NameTypeRequiredDescriptionExample
itemsarray\<object\>Yesitems-
pageinteger · int64YesPage number, starting at 1; format="int64"-
page_sizeinteger · int64YesPage size; format="int64"-
totalinteger · int64YesTotal matching records; format="int64"-

items[]

FieldTypeRequiredDescription
created_atstring · date-timeYescreated at; format="date-time"
created_bystring · uuid | nullNoCreator ID; format="uuid"
created_by_emailstringNocreated by email
created_by_namestringNoCreator name
device_namestringYesdevice name
idstring · uuidYesid; format="uuid"
login_usernamestringYeslogin username
mac_addressstring | nullYesmac address
modelstringYesmodel
operating_systemstringYesoperating system
serial_numberstring | nullYesserial number
sourcestringYessource; enum=["single", "import", "first_device_auto_trust", "approval"] Values: "approval", "first_device_auto_trust", "import", "single"
trustedbooleanYestrusted
updated_atstring · date-timeYesupdated at; format="date-time"
updated_bystring · uuid | nullNoUpdater ID; format="uuid"
updated_by_emailstringNoupdated by email
updated_by_namestringNoupdated by name
userobjectYesuser
versioninteger · int64Yesversion; format="int64"

items[].user

FieldTypeRequiredDescription
department_idstring | nullYesdepartment id
department_namestringYesdepartment name
department_pathstringYesdepartment path
departmentsarray\<object\>Yesdepartments
emailstringYesemail
employee_nostringYesemployee no
org_idstring · uuidYesOrganization ID derived from trusted identity; format="uuid"
user_idstring · uuidYesuser id; format="uuid"
user_namestringYesuser name

items[].user.departments[]

FieldTypeRequiredDescription
idstring · uuidYesid; format="uuid"
namestringYesname
pathstringYespath

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.

Semantics and safety

The read scope authorizes access to employee identity, department, device identifiers, login username and operator details within the organization. Omitting trusted includes both trusted and untrusted records.