Skip to main content

Get AI logs details API

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}
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
actionstringYesAction type-
dataobjectYesLog detail data; omitted for user logs when not collected-
department_id_snapshotstring · uuidNoPrimary department ID snapshot; omitted when unavailable-
department_name_snapshotstringNoPrimary department name snapshot; omitted when unavailable-
department_path_snapshotstringNoPrimary department path snapshot; omitted when unavailable-
department_snapshotsarray\<object\>NoAll department snapshots at event time; omitted when unavailable-
event_idstring · uuidYesEvent ID-
event_namestringNoEvent name; omitted when empty-
event_timestring · date-timeYesEvent occurrence time-
event_typestringYesEvent type; user operation type for user logs, ai.turn for AI logs; Values: "ai.turn"-
org_idstring · uuidYesOrganization ID of the event-
received_atstring · date-timeYesReceipt time-
resultstringYesExecution result; Values: "success", "failure"-
schema_versioninteger · int64YesEvent schema version; minimum=1; maximum=1-
session_idstringYesSession ID; omitted for user logs when not collected-
sourcestringYesEvent source; Values: "pc"-
source_ipstringYesSource IP-
turn_idstringYesTurn ID-
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
artifactsarray\<string\>YesArtifacts; empty array when there are no artifacts
callsarray\<object\>YesCall details; empty array when there are no calls
conversation_titlestringYesConversation title
extensionsobjectYesEvent extensions; preserves current UI extension keys and values
modelstringYesModel used
uploaded_file_namesarray\<string\>NoAttachment names for this turn; omitted when not collected, empty array means no attachments; preserves order and duplicates; maxItems=100

data.calls[]

FieldTypeRequiredDescription
namestringYesName
resultstringYesExecution result; Values: "success", "failure"
typestringYesCall type; Values: "skill", "connector", "plugin"

department_snapshots[]

FieldTypeRequiredDescription
idstring · uuidYesIdentifier
namestringYesName
pathstringYesDepartment path

Response example

An empty AI event_name is omitted; the example shows a non-empty name.