---
title: "Download the account audit log"
method: GET
path: "/api/v1/account/audit/export"
---

# Download the account audit log

`GET /api/v1/account/audit/export`

## Request

- Base URL: `https://ctxstore.ai`
- URL: `https://ctxstore.ai/api/v1/account/audit/export`
- Auth: HTTP bearer

Streams every matching audit event for the authenticated account as an attachment. format=csv (columns: id, ts, event_type, actor, surface, detail), json or jsonl. Capped at 100000 rows; narrow since/until past that.

## Query parameters

- `format` 'csv' | 'json' | 'jsonl'
- `since` string, date-time
- `until` string, date-time
- `event_type` string

## Response `200`

Attachment (text/csv, application/json or application/x-ndjson)

## Other responses

- `400`: Bad format or filter
- `401`: Unauthorized
- `413`: More than 100000 rows match; narrow the window

---

[API](https://skmtc.dev/ctxstore/apis/ctxstore-ai.md) · [All operations](https://skmtc.dev/ctxstore/apis/ctxstore-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/ctxstore/apis/ctxstore-ai/revisions/0581ff18c0f4?raw)
