Skip to main content
Returns the active retention policy for the authenticated tenant. If an environment-specific policy exists, it takes precedence over the global policy. Requires the tenant.audit.retention.read permission.

Parameters

environment_id
string
Optional. Retrieve the retention policy for a specific environment. If omitted, returns the global policy.

Responses

{
  "retention_days": 365,
  "hard_delete": false,
  "export_allowed": true,
  "environment_id": null
}
curl https://api.truthlocks.com/v1/audit/retention \
  -H "X-API-Key: tl_live_..."