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}
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 |
|---|---|---|---|---|---|
event_id | path | string · uuid | Yes | Event ID | - |
Response statuses
| HTTP status | Trigger | Response structure | Client action |
|---|---|---|---|
200 | Success | See “Response” on this page | Read the result. |
401 | Authentication failed | See “General error” in “Configure the QwenWork console through APIs” | Check status and code; correct parameters or grants; retry 503 later. |
403 | Missing scope or invalid trusted identity | See “General error” in “Configure the QwenWork console through APIs” | Check status and code; correct parameters or grants; retry 503 later. |
404 | Event not found, or organization/type mismatch | See “General error” in “Configure the QwenWork console through APIs” | Check status and code; correct parameters or grants; retry 503 later. |
422 | Invalid field or time window | See “General error” in “Configure the QwenWork console through APIs” | Check status and code; correct parameters or grants; retry 503 later. |
503 | Upstream or audit dependency unavailable | See “General error” in “Configure the QwenWork console through APIs” | Check status and code; correct parameters or grants; retry 503 later. |
default | Other authentication, business or dependency errors | See “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
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
data | object | No | Log detail data; omitted for user logs when not collected | - |
event_description | string | Yes | Event description | - |
event_id | string · uuid | Yes | Event ID | - |
event_time | string · date-time | Yes | Event occurrence time | - |
event_type | string | Yes | Event type; user operation type for user logs, ai.turn for AI logs; pattern="^[a-z][a-z0-9_]+$" | - |
result | string | Yes | Execution result; Values: "success", "failure" | - |
session_id | string | null | No | Session ID; omitted for user logs when not collected | - |
source | string | Yes | Event source; Values: "pc" | - |
source_ip | string | Yes | Source IP | - |
user_email_snapshot | string | null | Yes | Email snapshot at event time; may be null | - |
user_id | string · uuid | Yes | User ID | - |
user_name_snapshot | string | Yes | User name snapshot at event time | - |
data
| Field | Type | Required | Description |
|---|---|---|---|
common | object | Yes | Protected common dimensions; preserves current UI extension keys and values |
extensions | object | Yes | Event extensions; preserves current UI extension keys and values |