Skip to main content

Retention periods

BabySea uses plan-based retention for API request logs.
PlanRetention period
Free1 day
Starter7 days
Pro30 days
Scale180 days
Enterprise1 year
These windows are reflected in the app billing configuration and the retention system used by the workspace.

Automatic cleanup

BabySea runs a periodic cleanup job that:
1

Identifies expired logs

Finds API request log rows older than the current account retention window.
2

Archives to storage

Archives expired records into the internal retention-archive bucket before deletion.
3

Updates aggregate stats

Snapshot tables preserve aggregate request history before the raw rows are removed.
4

Deletes expired rows

The expired log entries are permanently removed.

What is preserved after cleanup

When logs are cleaned up, the following data is preserved:
DataPreservedDetails
Individual log rowsNoRemoved after retention period
Daily aggregate statsYesTotal requests, success/error counts per day
Dashboard usage chartsYesPowered by aggregate stats, not individual logs
Retention archiveYesInternal archive storage handled by the service, not exposed in the dashboard UI
This means your API usage charts and daily statistics remain accurate even after individual log entries are removed.

Cascade deletion

If you delete an API key from the dashboard, all log entries associated with that key are permanently removed immediately, regardless of the retention period. This is immediate and cannot be undone.
ActionEffect on logs
Log retention expiryArchived, then deleted automatically
API key deletionImmediately deleted with the key (no archive)
Account deletionAll account logs deleted
Deleting an API key permanently removes all its log history. If you need to preserve the log data, export it before deleting the key. See Export.

Upgrading your plan

When you upgrade to a plan with a longer retention period, the change takes effect immediately for new logs. Logs that were already deleted under the previous plan cannot be recovered.
ScenarioResult
Upgrade from Free to ProNew logs follow the 30 day window. Previously deleted rows do not return.
Downgrade from Pro to FreeOlder rows become eligible for cleanup under the 1 day window.