Monitoring API usage
Track error rates
Review the Status column regularly to identify spikes in4xx or 5xx responses. Common patterns to watch for:
| Pattern | What it may indicate |
|---|---|
Sudden spike in 401 responses | An API key may be invalid, expired, or revoked |
Repeated 403 from one key | Key scope does not match the requested endpoint |
Burst of 429 responses | Rate limiting or retry pressure |
Increasing 500 responses | Server-side issue. Check BabySea Status |
Monitor by API key
Use the search bar to filter logs by a specific key name or prefix. This helps you:- Verify a new key is working correctly after creation.
- Confirm a rotated key is receiving traffic.
- Identify which key is generating errors.
Check key status icons
The key status icon in the API column gives you immediate visibility:| Icon | Action needed |
|---|---|
| Key | No action. Key is active and healthy |
| Rotate | Verify the replacement key is working. The old key’s logs may still appear |
| Clock | Key has expired. Replace the key in your application |
| Signal | Key is revoked. Check if this was intentional |
Debugging failed requests
When a request fails, the log entry includes both an HTTP status code and a BabySea error code. Use both to diagnose the issue:Find the failed request
Search the logs table by error code (e.g.
BSE4006) or status code (e.g. 401).Check the error code
BabySea error codes indicate the specific failure reason. See SDK Errors for the full list with descriptions and resolutions.
Check the API key status
Look at the key status icon. If the key is expired or revoked, that explains authentication failures.
Check the endpoint
Verify the endpoint path is correct and that the key’s scope grants access to it. See Scopes for the full endpoint mapping.
Check the IP hash
If the key has an IP allowlist configured, compare the IP hash in the log with the expected source. Mismatched IPs result in
403 errors. See IP allowlist.Common error codes in logs
| Error code | Status | Description |
|---|---|---|
BSE1001 | 401 | Missing API key |
BSE1002 | 401 | Invalid or expired API key |
BSE1003 | 403 | API key does not have permission for this resource |
BSE1004 | 402 | Insufficient credits |
BSE1007 | 403 | This IP address is not in the allowlist for this API key |
Error code column can also surface other BabySea error codes depending on the route and failure type.
Security
Regular log review
Establish a routine to review your request logs, especially for:| Review target | What to look for |
|---|---|
| Unauthorized access | 401 or 403 errors from unexpected IP hashes |
| Unusual endpoints | Requests to endpoints your application should not use |
| Off-hours activity | Requests at times when your application should be idle |
| Unknown key names | Log entries from keys you do not recognize |
IP hash correlation
While raw IPs are not stored, you can use the hashed value to correlate requests:TypeScript
Export for compliance
If your organization requires long-term log retention beyond your plan’s retention period:Set a regular export schedule
Export logs weekly or monthly before they age out of your retention window.
Use download (not clipboard)
Click Export as JSON or Export as CSV for reliable file exports. Clipboard operations may truncate large datasets.
Retention awareness
Know your retention window
| Plan | Retention | Export frequency recommendation |
|---|---|---|
| Free | 1 day | Daily |
| Starter | 7 days | Weekly |
| Pro | 30 days | Monthly |
| Scale | 180 days | Quarterly |
| Enterprise | 1 year | Quarterly |