Get AI logs details API. GET /api/openapi/v1/ai-logs/{event_id}, scope admin.v1.ai-logs.read.
- Scope:
admin.v1.ai-logs.read - GET
/api/openapi/v1/ai-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 |
|---|---|---|---|---|
action | string | Yes | Action type | - |
data | object | Yes | Log detail data; omitted for user logs when not collected | - |
department_id_snapshot | string · uuid | No | Primary department ID snapshot; omitted when unavailable | - |
department_name_snapshot | string | No | Primary department name snapshot; omitted when unavailable | - |
department_path_snapshot | string | No | Primary department path snapshot; omitted when unavailable | - |
department_snapshots | array\<object\> | No | All department snapshots at event time; omitted when unavailable | - |
event_id | string · uuid | Yes | Event ID | - |
event_name | string | No | Event name; omitted when empty | - |
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; Values: "ai.turn" | - |
org_id | string · uuid | Yes | Organization ID of the event | - |
received_at | string · date-time | Yes | Receipt time | - |
result | string | Yes | Execution result; Values: "success", "failure" | - |
schema_version | integer · int64 | Yes | Event schema version; minimum=1; maximum=1 | - |
session_id | string | Yes | Session ID; omitted for user logs when not collected | - |
source | string | Yes | Event source; Values: "pc" | - |
source_ip | string | Yes | Source IP | - |
turn_id | string | Yes | Turn ID | - |
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 |
|---|---|---|---|
artifacts | array\<string\> | Yes | Artifacts; empty array when there are no artifacts |
calls | array\<object\> | Yes | Call details; empty array when there are no calls |
conversation_title | string | Yes | Conversation title |
extensions | object | Yes | Event extensions; preserves current UI extension keys and values |
model | string | Yes | Model used |
uploaded_file_names | array\<string\> | No | Attachment names for this turn; omitted when not collected, empty array means no attachments; preserves order and duplicates; maxItems=100 |
data.calls[]
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name |
result | string | Yes | Execution result; Values: "success", "failure" |
type | string | Yes | Call type; Values: "skill", "connector", "plugin" |
department_snapshots[]
| Field | Type | Required | Description |
|---|---|---|---|
id | string · uuid | Yes | Identifier |
name | string | Yes | Name |
path | string | Yes | Department path |