---
title: "Export media governance audit trail (Enterprise)"
method: GET
path: "/api/v1/media-governance/audit/export"
tags: ["Media Governance"]
---

# Export media governance audit trail (Enterprise)

`GET /api/v1/media-governance/audit/export`

## Request

- Base URL: `https://orchestrator.getaxonflow.com`
- URL: `https://orchestrator.getaxonflow.com/api/v1/media-governance/audit/export`
- Auth: none declared. Required headers: `X-Tenant-ID`
- TypeScript: <https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/docs/api/v1/media-governance/audit/export/get.ts> (a function with typed inputs; its response is checked against the schema)

Exports the media governance audit trail (image analyses, policy
actions, block decisions) for the tenant as JSON or CSV.

**Enterprise only** — non-paid tiers receive 403
(`ENTERPRISE_REQUIRED`). Tenant scope comes from the `X-Tenant-ID`
header. The export is capped at 10,000 rows, newest first.

## Query parameters

- `from` string, date-time
- `to` string, date-time
- `format` 'json' | 'csv'

## Headers

- `X-Tenant-ID` string, required

## Response `200`

Audit export. CSV columns: request_id, tenant_id, timestamp,
media_type, blocked, policy_actions (JSON-encoded array).

- object
  - `records` MediaAuditRecord[]
    - `request_id` string
    - `tenant_id` string
    - `timestamp` string, date-time
    - `media_type` string
    - `analysis_results` object
    - `policy_actions` string[]
    - `blocked` boolean
  - `tenant_id` string
  - `from` string, date-time
  - `to` string, date-time
  - `count` integer

## Other responses

- `400`: Missing X-Tenant-ID (MISSING_TENANT_ID) or invalid from/to/format
- `403`: Requires Enterprise license (ENTERPRISE_REQUIRED)
- `500`: Query failure (QUERY_ERROR)

---

[API](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api.md) - [All operations](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/revisions/f408ef3ec9dd?raw)
