Skip to main content

Export trusted devices

Export trusted devices. GET /api/openapi/v1/trusted-devices/export, 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/export
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. Preserves existing CSV filters and the 10,000-row limit; larger result sets are not promised as complete exports.

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
keywordquerystringNokeyword maxLength=255-
trustedquerystringNotrusted Values: "false", "true"-
created_fromquerystring · date-timeNocreated from-
created_toquerystring · date-timeNocreated to-
Accept-LanguageheaderstringNoDownload language: zh-CN, zh-TW, or en. Omitted or unsupported languages fall back to zh-CN.-

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: text/csv
NameTypeRequiredDescriptionExample
$bodystring · binaryYesComplete response file; $body denotes the body, not a JSON member.-
Binary file response with Content-Type and Content-Disposition headers.

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

CSV safety encoding prepends one tab to cells starting with formula markers (including full-width forms and leading whitespace) or tab/newline characters; the CSV writer quotes and escapes those cells. Stored and JSON values are unchanged. Machine CSV readers receive the prefix and must not treat it as part of the original identifier. Safety is not guaranteed after another application converts, removes prefixes or saves the file again. Device exports contain at most 10,000 rows and may truncate; use paginated JSON queries for complete data.