---
search:
  tags:
    - Audit
    - GET
seo:
  description: >-
    Every stored audit record in a range of at most 366 days, oldest first, as
    one JSON… Reference for the GET /api/v2/audit/export endpoint in the Anlyon
    API.
sidebar:
  label: Export audit records as evidence
  badge: GET
title: Export audit records as evidence
type: openapi-operation
---
Every stored audit record in a range of at most 366 days, oldest first, as one JSON document (`anlyon.audit.export.v1`) or CSV, streamed as an attachment. Filter by environment, event type, category or governed action. Taking an export is itself recorded (`audit.export.created`) before any record is sent. Records older than the hot window are read back from the audit archive, checked against their checksums, and included in the same order; 503 `AUDIT_ARCHIVE_UNAVAILABLE` when the range holds archived records this server cannot reach, and the stream stops with `AUDIT_ARCHIVE_INTEGRITY` rather than leave out a record whose archived copy fails its check. Enterprise edition and Team plan. Needs `audit:read`.

`GET /api/v2/audit/export`
