API Analytics

Every request to /api/external is logged with method, path, status code, duration, and API key. Use the dashboard API Keys module for per-tenant analytics.

Tracked metrics

  • Request volume
  • Success vs error rate
  • Average latency
  • Rate limit headroom

Dashboard endpoints

Requires JWT authentication (organization admin).

MethodPathDescription
GET/api/api-keys/analytics/overviewAggregate usage across all keys
GET/api/api-keys/analytics/requestsPaginated request log
GET/api/api-keys/:id/analyticsPer-key stats and volume

What gets logged

Each external API request records: HTTP method, path, status code, duration (ms), API key ID, tenant ID, client IP, and timestamp. Logs power monthly usage limits and the API Keys analytics dashboard.