Skip to main content

Get user logs details API

Get user logs details API. GET /api/openapi/v1/user-logs/{event_id}, scope admin.v1.user-logs.read.

  • Scope: admin.v1.user-logs.read
  • GET/api/openapi/v1/user-logs/{event_id}
Reads logs for the authenticated application organization under its explicitly granted sensitive scope, independently of application member scope. User, AI and administrator log scopes do not imply one another. Looks up one event by event_id; events outside the organization or log type return 404.

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
event_idpathstring · uuidYesEvent ID-

Response statuses

HTTP statusTriggerResponse structureClient action
200SuccessSee “Response” on this pageRead the result.
401Authentication failedSee “General error” in “Configure the QwenWork console through APIs”Check status and code; correct parameters or grants; retry 503 later.
403Missing scope or invalid trusted identitySee “General error” in “Configure the QwenWork console through APIs”Check status and code; correct parameters or grants; retry 503 later.
404Event not found, or organization/type mismatchSee “General error” in “Configure the QwenWork console through APIs”Check status and code; correct parameters or grants; retry 503 later.
422Invalid field or time windowSee “General error” in “Configure the QwenWork console through APIs”Check status and code; correct parameters or grants; retry 503 later.
503Upstream or audit dependency unavailableSee “General error” in “Configure the QwenWork console through APIs”Check status and code; correct parameters or grants; retry 503 later.
defaultOther authentication, business or dependency errorsSee “General error” in “Configure the QwenWork console through APIs”Check status and code; correct parameters or grants; retry 503 later.

Response

Content-Type: application/json
NameTypeRequiredDescriptionExample
dataobjectNoLog detail data; omitted for user logs when not collected-
event_descriptionstringYesEvent description-
event_idstring · uuidYesEvent ID-
event_timestring · date-timeYesEvent occurrence time-
event_typestringYesEvent type; user operation type for user logs, ai.turn for AI logs; pattern="^[a-z][a-z0-9_]+$"-
resultstringYesExecution result; Values: "success", "failure"-
session_idstring | nullNoSession ID; omitted for user logs when not collected-
sourcestringYesEvent source; Values: "pc"-
source_ipstringYesSource IP-
user_email_snapshotstring | nullYesEmail snapshot at event time; may be null-
user_idstring · uuidYesUser ID-
user_name_snapshotstringYesUser name snapshot at event time-

data

FieldTypeRequiredDescription
commonobjectYesProtected common dimensions; preserves current UI extension keys and values
extensionsobjectYesEvent extensions; preserves current UI extension keys and values