Atlas
Admin — Audit Retention

Export audit log for compliance

Exports audit log entries in CSV or JSON format with optional date range filtering. SOC2-ready format. Enterprise feature.

POST
/api/v1/admin/audit/retention/export

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:3001/api/v1/admin/audit/retention/export" \  -H "Content-Type: application/json" \  -d '{    "format": "csv"  }'
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}