Estimate data retention cleanup.
GET
/api/admin/data-retention/estimate
Code sample: Shell / cURL
curl --request GET \ --url https://auth.example.com/api/admin/data-retention/estimate \ --header 'Authorization: Bearer <token>'Estimates expired records and approximate storage savings for all supported retention categories, or a single category when the category query parameter is supplied.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” category
string
Optional category key to estimate only one retention category.
Responses
Section titled “ Responses ”Data retention estimate response.
Media type application/json
object
estimates
required
Array<object>
object
category
required
string
records_to_delete
required
integer
oldest_record_date
required
string | null format: date-time
retention_days
required
integer
estimated_storage_mb
required
number
estimate_status
string
key
additional properties
total_records_to_delete
required
integer
total_estimated_storage_mb
required
number
key
additional properties
Example
{ "estimates": [ { "estimate_status": "available" } ]}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"}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"}