v3.1.2 3 February 2026 Feature
API Request Log Drill-Down
Added
- API Request Log Drill-Down — Click any row in Developer Settings → API Request Log to expand a Stripe-style detail panel showing full request/response inspection
- Request Logger Plugin (
api-request-logger.ts) — Fastify plugin capturing request headers, request body, and response body for all API key authenticated requests - Detail Endpoint —
GET /api/v1/api-request-log/:idreturns full entry with headers, bodies, key preview, and key name - RequestLogDetailPanel component with loading skeleton, error state, JSON formatting, and dark mode support
Changed
- Replaced inline
onResponsehook inserver.tswith dedicated Fastify plugin wrapped infastify-pluginfor proper encapsulation - Request headers sanitised:
authorization,cookie,x-api-key,x-forwarded-forstripped from logs - Response bodies truncated at 4KB with
_truncated/_size/_previewmetadata for large payloads - Request bodies only captured for POST, PUT, and PATCH methods
Fixed
- Dark mode contrast on API request log detail panel (hardcoded light-mode colours replaced with
dark:Tailwind variants)
Database
- Migration: Added
request_headers(JSONB),request_body(JSONB),response_body(JSONB) columns toapi_request_logtable
Dependencies
- Added
fastify-plugin5.1.0