Audit logRetention policy and last purge anchor

Retention policy and last purge anchor

Active retention policy and last purge anchor for this tenant. anchor is null if no purge has run yet.

curl -X GET "https://api.autopil.ai/v1/audit/retention" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "retention_days": 365,
  "policy": "Audit events older than 365 days are automatically purged daily.",
  "anchor": {
    "anchor_hash": "a3f8c1d2...",
    "purged_before": "2025-03-30T00:00:00",
    "purged_count": 142
  }
}
GET
/v1/audit/retention
GET
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.

API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.

Responses

retention_daysinteger
policystring
anchorobject