Count records past their retention.
GET
/api/admin/data-retention/estimate
Code sample: Shell / cURL
curl --request GET \ --url 'https://auth.example.com/api/admin/data-retention/estimate?category=audit_events' \ --header 'Authorization: Bearer <token>'Counts, per category, the records kept and those past their retention that the next scheduled retention run removes. Categories whose records expire where they are kept or are not stored have null counts.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” category
string
Count only this category.
Responses
Section titled “ Responses ”Data retention estimate response.
Media type application/json
object
tenant_id
required
string
estimates
required
Array<object>
object
category
required
string
retention
required
object
value
number
unit
string
records
required
integer | null
records_past_retention
required
integer | null
key
additional properties
Example
{ "estimates": [ { "category": "audit_events", "retention": { "unit": "days" } } ]}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}What decides a retention cannot be read, so the values in effect are unknown.