What API monitoring is
API monitoring flips the model: instead of us probing your API, your application pushes metrics to us — latency, status codes, error flags and arbitrary custom metrics per request or in batches.
This answers questions an external check can't: real end-to-end latency inside your stack, per-endpoint error rates, payload-level metrics like queue depth or job duration.
How it works
- Create an API monitor in the dashboard (or
POST /api/v1/uptime/api-monitoring/monitorsflow via monitor typeapi) - The monitor gets a dedicated push key — a bearer credential that only writes metrics to that one monitor
- Your app sends
POST /api/v1/uptime/api-monitoring/pushwith the metrics - If pushes stop within the expected interval, the monitor goes down — so a dead app is caught even when it stops reporting entirely
What you get
- Latency percentiles and error-rate charts per endpoint
- Custom metric widgets on your status page and dashboard
- Uptime history like any other monitor — incidents, alerting, SLA all apply
- Staleness detection: missing pushes mark the monitor
unknown/down instead of silently looking healthy
Managing monitors
GET /api-monitoring/monitors/:id— config + statePUT /api-monitoring/monitors/:id/config— update widgets, thresholds, expected intervalGET /api-monitoring/monitors/:id/metrics— recent pushed metricsPOST /api-monitoring/monitors/:id/regenerate-key— rotate the push key