---
title: "Export Usage History V2"
method: GET
path: "/auth/usage/history/v2/export"
tags: ["Account"]
---

# Export Usage History V2

`GET /auth/usage/history/v2/export`

## Request

- Base URL: `https://qveris.ai/api/v1`
- URL: `https://qveris.ai/api/v1/auth/usage/history/v2/export`
- Auth: OAuth 2 (password, token URL `/api/v1/auth/login`)

导出 request-level usage audit，供用户与支持审计使用。

## Query parameters

- `start_date` string, nullable: 开始日期 (YYYY-MM-DD)
- `end_date` string, nullable: 结束日期 (YYYY-MM-DD)
- `event_type` string, nullable: 事件类型过滤
- `kind` string, nullable: 事件分组过滤
- `success` boolean, nullable: 是否成功
- `billable_success` boolean, nullable: 是否可计费
- `outcome` string, nullable: 执行 outcome 过滤
- `reason_code` string, nullable: 执行 reason_code 过滤
- `has_execution_outcome` boolean, nullable: 是否存在 execution_outcome
- `charge_outcome` string, nullable: 收费结果过滤
- `anomaly` string, nullable: 异常类型过滤
- `search_id` string, nullable: search_id 聚焦过滤
- `execution_id` string, nullable: execution_id 聚焦过滤
- `api_key_id` string, uuid, nullable: API Key 归因过滤
- `oauth_client_id` string, nullable: OAuth client_id 归因过滤
- `credential_type` string, nullable: 凭证类型过滤

## Response `200`

CSV export.

---

[API](https://skmtc.dev/qveris/apis/qveris-public-rest-api.md) · [All operations](https://skmtc.dev/qveris/apis/qveris-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/qveris/apis/qveris-public-rest-api/revisions/7b78aeef092a?raw)
