System health check
GET
https://app.speybooks.com/api/v1/admin/system/healthDetailed system health check for admin monitoring. More comprehensive than the public /health endpoint.
Checks:
- Database —
SELECT 1latency in ms - Connection pool — total, idle, and waiting counts
- Webhook health (24h) — total, processed, failed, pending events with status indicator
- 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 objectShow child attributes
latencyMs integerpool objectShow child attributes
idleCount integertotalCount integerwaitingCount integerstatus stringtimestamp string date-timewebhooks objectShow child attributes
last24h objectShow child attributes
failed integerpending integerprocessed integertotal integerrecentErrors array<object>status string