Skip to main content
POST /api/v1/exports/audit Requires exports.write permission. The export is generated immediately and stored through the configured export storage backend. No request body is required.

Response

export
object
required
The created export job.

Errors

StatusWhen
401Missing or invalid Bearer token
403Caller lacks exports.write permission

Example

curl -X POST http://localhost:8080/api/v1/exports/audit \
  -H "Authorization: Bearer <token>"
{
  "export": {
    "id": "ex1a2b3c-d5e6-7890-abcd-ef1234567890",
    "organization_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "export_type": "audit",
    "status": "completed",
    "storage_path": "exports/a1b2c3d4/audit-2026-03-21.jsonl",
    "requested_by": "u1a2b3c4-d5e6-7890-abcd-ef1234567890",
    "completed_at": "2026-03-21T10:00:05Z",
    "created_at": "2026-03-21T10:00:00Z",
    "updated_at": "2026-03-21T10:00:05Z"
  }
}

Build docs developers (and LLMs) love