export audit log
export_audit_logExport workspace audit rows with hash-chain fields as CSV or JSON, so recipients can verify a later export produces the same hashes.
Instructions
Export this workspace's audit rows with their hash-chain fields (seq, prev_hash, row_hash) as CSV or JSON, so a recipient can verify a later export reproduces the same hashes. GET /v1/audit/export (API-key scope: read). Returns: format=json: { rows: [{ id, timestamp, event_type, category, status, actor_id, actor_email, actor_role, target_type, target_id, description, seq, prev_hash, row_hash }], truncated: boolean }. format=csv: text/csv attachment (Content-Disposition audit-.csv) with header row seq,timestamp,event_type,category,status,actor_id,actor_email,actor_role,target_type,target_id,description,prev_hash,row_hash,id; header X-Truncated: true when the limit cut the result. Notes: Rows ordered by timestamp then seq ascending. Returns an empty set (not an error) if the log store is unavailable. Cache-Control: no-store.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows, positive integer; silently capped at 50000. Default: 50000. | |
| since | No | ISO-8601 datetime lower bound (inclusive) on the row timestamp. 400 if unparseable. | |
| until | No | ISO-8601 datetime upper bound (inclusive). 400 if unparseable. | |
| format | No | Output format. Default: "csv". |