Export audit log entries
Downloads the audit ledger as a CSV or JSON file attachment. format selects csv or json, date_range bounds the window to 24h, 7d, 30d (default) or 90d, and the same action / user_id / actor / search filters as the list endpoint narrow the export — a filtered settings view downloads exactly the rows it shows. Synchronous export caps at 10 000 rows; when the cap hits, the X-Export-Truncated: true and X-Export-Limit headers flag the partial file. For the full ledger, enqueue POST /settings/audit-logs/export-async instead. Owner/admin only, rate-limited to 5 requests a minute.
Authorizations
Dashboard JWT token from Clerk
Headers
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.
true, false Response
JSON export shape — the requested rows, the cap (10 000 rows) that was applied, and whether it truncated the result. With format=csv the body is a CSV text file instead, on the same curated columns.