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 EndpointGET /api/v1/api-request-log/:id returns 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 onResponse hook in server.ts with dedicated Fastify plugin wrapped in fastify-plugin for proper encapsulation
  • Request headers sanitised: authorization, cookie, x-api-key, x-forwarded-for stripped from logs
  • Response bodies truncated at 4KB with _truncated/_size/_preview metadata 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 to api_request_log table

Dependencies

  • Added fastify-plugin 5.1.0