System health check

GET https://app.speybooks.com/api/v1/admin/system/health

Detailed system health check for admin monitoring. More comprehensive than the public /health endpoint.

Checks:

  1. DatabaseSELECT 1 latency in ms
  2. Connection pool — total, idle, and waiting counts
  3. Webhook health (24h) — total, processed, failed, pending events with status indicator
  4. Recent errors — last 10 failed webhook events with source, event type, error details, and timestamp

The webhook status is warning if any failed events exist, healthy otherwise.

Response

200 Health status: DB latency, pool stats, webhook processing rates, and recent errors.
Show response fields
database object
Show child attributes
latencyMs integer
pool object
Show child attributes
idleCount integer
totalCount integer
waitingCount integer
status string
timestamp string date-time
webhooks object
Show child attributes
last24h object
Show child attributes
failed integer
pending integer
processed integer
total integer
recentErrors array<object>
status string