5xx
Server failure. Alert after a confirming retry.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
API monitoring calls your endpoints on a schedule and checks more than the status code: the JSON body, the response time and the authentication path. A 200 with an empty or wrong body is still an outage for the client calling it.
| Assertion | Example | Catches |
|---|---|---|
| Status code | 200, or 204 for empty responses | Server errors and routing failures |
| Body field | JSON status equals "ok", array not empty | Wrong or empty data behind a 200 |
| Response time | Under 800 ms | Slow queries and overloaded workers |
| Auth path | Valid token returns 200, no token returns 401 | Broken login or token validation |
| Headers | Content-Type is application/json | Error pages served as HTML |
curl -s -o /dev/null \
-H "Authorization: Bearer $TOKEN" \
-w "status=%{http_code} ttfb=%{time_starttransfer}s total=%{time_total}s\n" \
https://api.example.com/v1/health
# example output
status=200 ttfb=0.182s total=0.201sNot every error code means your API is down. Some mean your monitor is misconfigured, and alerting on those wastes attention.
Server failure. Alert after a confirming retry.
Token expired or revoked. The API may be fine, but your monitor is blind until the token is fixed.
The API is rate limiting your monitor. Lower the check frequency or ask for an exemption.
A good API check is a small contract test run from outside. Build it in this order so each step has something to compare against.
Your own front end, mobile app and partner integrations each use a few endpoints. Start with those.
Record a good response and decide which fields must always be present, such as an id or a status.
Use your normal 95th percentile plus margin, then watch for sudden jumps.
Test both the happy path and the rejected path, and alert when the token itself fails.
Retry once and check from a second region, because APIs often have brief spikes.
Scheduled requests to API endpoints that verify availability, correct response content and speed. It alerts when an endpoint errors, times out, returns unexpected data or gets slow.
Website checks usually verify a page loads. API checks add assertions on structured responses, authentication headers, request methods and payloads, and they run against endpoints with no visual page.
A shallow check that only answers 200 can mislead you. A deeper endpoint that runs a trivial query tells you whether the stack behind the API works. Keep it cheap and rate limited so it cannot overload the service.
It depends on the endpoint. Set the limit from your own baseline, such as the 95th percentile over a normal week plus margin, instead of copying a generic number.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.