---
title: "Export Audit Ledger as CSV"
method: GET
path: "/audit-ledger/export"
tags: ["Audit"]
---

# Export Audit Ledger as CSV

`GET /audit-ledger/export`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/audit-ledger/export`
- Auth: HTTP bearer

Streams the organization audit ledger as a CSV attachment (UTF-8 with BOM, oldest entry first, batches of 1000). Requires role: Admin

## Query parameters

- `entity_type` string
- `entry_type` 'event_log' | 'change_history'

## Response `200`

CSV file attachment (audit-ledger-YYYY-MM-DD.csv)

## Other responses

- `400`: Invalid entry_type
- `401`: Unauthorized
- `403`: Forbidden - insufficient role
- `500`: Internal server error

## Changes

- **2026-10-11** `d362995743c3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/verifywise-ai/apis/verifywise-api/changes/audit-ledger/export/get.md)

---

[API](https://skmtc.dev/verifywise-ai/apis/verifywise-api.md) - [All operations](https://skmtc.dev/verifywise-ai/apis/verifywise-api/llms.txt) - [OpenAPI document](https://skmtc.dev/verifywise-ai/apis/verifywise-api/revisions/9ccf3d4f3918?raw)
