Request an asynchronous export of the audit log for compliance or archiving.
admin
Bearer <your-jwt>.ndjson, csv.{ "type": "s3", "bucket": "...", "prefix": "..." }.actorType, action, incidentId.202 Accepted — the export is queued.
GET /v1/audit/export/{exportId} until status is completed:
| Field | Type | Description |
|---|---|---|
exportId | string | Unique export job identifier |
status | string | Job status: queued, running, completed, failed |
downloadUrl | string | Signed URL to download the export file. null until completed |
downloadUrlExpiresAt | string | Expiry for the signed download URL (2 hours from completion) |
| Status | Error code | Description |
|---|---|---|
400 | validation_error | Invalid date range or format |
401 | unauthorized | Missing or invalid JWT |
403 | forbidden | Caller lacks admin role |
400 | range_exceeds_retention | Requested date range exceeds plan retention window |