`GET /api/v1/audit/retention` — read the current audit retention setting. Available to any authenticated operator.
GET
/api/v1/audit/retention
const url = 'https://example.com/api/v1/audit/retention';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/audit/retentionResponses
Section titled “ Responses ”Current audit retention setting
Media type application/json
Response body for GET /api/v1/audit/retention.
object
retention_days
integer | null format: int64
Example generated
{ "retention_days": 1}