- Debug integration issues by tracing which requests returned errors.
- Monitor API usage to see which endpoints and models your keys are calling.
- Audit access patterns by reviewing which API keys are active and when.
- Investigate incidents using status codes, error codes, and timestamps.
What is captured
The underlying request-log record stores endpoint and request metadata. The dashboard joins that data with API key metadata so the table can show the key name and key state.| Field | Type | Description |
|---|---|---|
| API key | string | Key name and key prefix from the joined API key record |
| Method | string | HTTP method (GET, POST, PUT, DELETE) |
| Endpoint | string | Full API path |
| Status code | integer | HTTP response status code (200, 400, 401, 500, etc.) |
| Error code | string | BabySea error code when the request failed |
| IP hash | string | SHA-256 hash of the client IP address (never raw IP) |
| User agent | string | Stored in the log record, though not shown in the main table |
| Timestamp | datetime | Timestamp recorded for the request |
How logging works
When a request uses an API key, BabySea records the request outcome in the API key log:Log entry is written
BabySea records the endpoint, method, status code, optional error code, IP hash, user agent, and timestamp.
IP privacy
BabySea never stores raw IP addresses. Every IP is hashed with SHA-256 before being stored. This means:| Property | Details |
|---|---|
| Storage format | SHA-256 hex digest |
| Reversibility | One-way hash. The original IP cannot be recovered |
| Display | The table shows the first 12 characters followed by … |
Access control
Request logs are visible to all roles on the account:| Role | View logs | Export logs |
|---|---|---|
| Primary Owner | Yes | Yes |
| Owner | Yes | Yes |
| Member | Yes | Yes |
Log immutability
Log entries cannot be edited or manually deleted through the dashboard. They are:| Property | Details |
|---|---|
| Immutable | No update operations available after creation |
| Auto-cleanup | Removed by the retention system based on the account plan |
| Cascade delete | Removed if the parent API key is deleted |
| Snapshot-aware | Aggregate analytics snapshots preserve historical metrics after row cleanup |
Next steps
- Viewing - Dashboard table, columns, search, and filtering
- Retention - Plan-based retention periods and automatic cleanup
- Export - Batch select and export logs as CSV or JSON
- Best practices - Monitoring, debugging, and security patterns