Export AI logs API. GET /api/openapi/v1/ai-logs/export, scope admin.v1.ai-logs.read.
- Scope:
admin.v1.ai-logs.read - GET
/api/openapi/v1/ai-logs/export
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 |
|---|---|---|---|---|---|
user_name | query | string | No | User name filter; maxLength=200 | - |
auxiliary_identifier | query | string | No | Auxiliary identity type; paired with auxiliary_value; maxLength=200 | - |
auxiliary_value | query | string | No | Auxiliary identity value; requires type EMAIL, PHONE, EMPLOYEE_NO or ACCOUNT; maxLength=200 | - |
session_id | query | string | No | Session ID; omitted for user logs when not collected; maxLength=200 | - |
turn_id | query | string | No | Turn ID; maxLength=200 | - |
conversation_title | query | string | No | Conversation title; maxLength=200 | - |
q | query | string | No | Search keyword; maxLength=200 | - |
result | query | string | No | Execution result; Values: "success", "failure" | - |
range | query | string | No | Defaults to the latest seven calendar days; ignored when from/to are supplied; default="last7"; Values: "last7" | - |
from | query | string · date-time | No | Start time; must be paired with to, spanning at most seven calendar days | - |
to | query | string · date-time | No | End time; must follow from; window is clipped to Console retention | - |
department_id | query | string · uuid | No | Department ID filter | - |
timezone | query | string | No | IANA timezone; defaults to UTC; maxLength=64 | - |
locale | query | string | No | CSV content language; omission uses Simplified Chinese (zh-CN), independently of the Console user language; Values: "zh-CN", "zh-TW", "en" | - |
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. |
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: text/csv
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
$body | string · binary | Yes | Complete CSV file; $body denotes the body, not a JSON field. | - |