Atlas
Admin — Audit Retention

Get audit retention policy

Returns the current audit retention policy for the admin's active organization. Returns null policy if no retention is configured (unlimited).

GET
/api/v1/admin/audit/retention

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:3001/api/v1/admin/audit/retention"
{
  "policy": {
    "orgId": "string",
    "retentionDays": 0,
    "hardDeleteDelayDays": 0,
    "updatedAt": "string",
    "updatedBy": "string",
    "lastPurgeAt": "string",
    "lastPurgeCount": 0
  }
}
{
  "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"
}