Skip to main content

Review trust requests

Review trust requests. POST /api/openapi/v1/trusted-device-requests/reviews, scope admin.v1.trusted-device-requests.review.

  • Scope: admin.v1.trusted-device-requests.review
  • Permission: trusted device requests review
  • Permission type: manage
  • Endpoint: POST/api/openapi/v1/trusted-device-requests/reviews
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. At most 100 IDs. Approval creates a trusted device; rejection requires comment and creates no device. Existing transactions, locks and notifications are retained. locked and already_processed are per-item skipped outcomes. A retry may return already_processed rather than replaying the original response.

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

Request body: required; Content-Type: application/json.
NameLocationTypeRequiredDescriptionExample
commentbodystringNocomment maxLength=1000-
idsbodyarray\<string\> | nullYesids minItems=1 maxItems=100-
statusbodystringYesstatus Values: "approved", "rejected"-

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\>YesResults on this page.-

items[]

FieldTypeRequiredDescription
idstringYesTrust request ID.
resultstringYesProcessing result for the request; see enum values. Values: "already_processed", "already_trusted", "already_untrusted", "approved", "locked", "rejected"

Runtime limits and contract notes

A non-empty comment is required when status=rejected; it may be omitted when approving.

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

Review repeats policy and device checks without requiring a prior inspection call. Inspect each approved/rejected/locked/already_processed result; HTTP 200 does not mean every item was successfully reviewed.