Retention periods
BabySea uses plan-based retention for API request logs.| Plan | Retention period |
|---|---|
| Free | 1 day |
| Starter | 7 days |
| Pro | 30 days |
| Scale | 180 days |
| Enterprise | 1 year |
Automatic cleanup
BabySea runs a periodic cleanup job that:Archives to storage
Archives expired records into the internal
retention-archive bucket before deletion.Updates aggregate stats
Snapshot tables preserve aggregate request history before the raw rows are removed.
What is preserved after cleanup
When logs are cleaned up, the following data is preserved:| Data | Preserved | Details |
|---|---|---|
| Individual log rows | No | Removed after retention period |
| Daily aggregate stats | Yes | Total requests, success/error counts per day |
| Dashboard usage charts | Yes | Powered by aggregate stats, not individual logs |
| Retention archive | Yes | Internal archive storage handled by the service, not exposed in the dashboard UI |
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.| Action | Effect on logs |
|---|---|
| Log retention expiry | Archived, then deleted automatically |
| API key deletion | Immediately deleted with the key (no archive) |
| Account deletion | All account logs deleted |
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.| Scenario | Result |
|---|---|
| Upgrade from Free to Pro | New logs follow the 30 day window. Previously deleted rows do not return. |
| Downgrade from Pro to Free | Older rows become eligible for cleanup under the 1 day window. |