---
title: "Export audit logs"
method: GET
path: "/audit-logs/export"
tags: ["Audit"]
---

# Export audit logs

`GET /audit-logs/export`

Streams the full filtered result set as CSV or NDJSON. Accepts the same filters as GET /audit-logs. Admin only. The export is itself audited.

## Query parameters

- `format` 'csv' | 'ndjson'
- `userId` string
- `action` string
- `resourceType` string
- `success` string
- `startDate` string, date-time
- `endDate` string, date-time

## Response `200`

Audit log file.

## Other responses

- `403` — Not authorized.
- `500` — Failed to export audit logs.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
