PRACTICAL GUIDE / API MONITORING
From checking an API
to monitoring and alerts.
Once it works now, make sure you notice when it stops.
Start with a manual Toolbox check, then decide what to monitor and where to send alerts. Begin with one read-only endpoint. If you only need a one-off check, the API client may be enough.
HTTP 200 can still contain an unhealthy body.
A server responding is different from the required feature working. Both synthetic examples below return HTTP 200; only the body changes. They do not represent the state of a real service.
- Load Healthy JSON and Unhealthy JSON in the API client, or copy the example URL into Request URL.
- Use GET with empty headers. Select Send and inspect status and body.
- Compare the status value in each body. Both HTTP statuses are 200.
HTTP status equals 200 and JSON status equals the string ok. A status-only check would miss degraded. Choose conditions that match your own API's contract.
Toolbox can evaluate the checks you configure against a response. It sends requests manually and does not keep checking after the page closes.
Transfer those conditions to UptimeRobot.
This example follows the official API Monitoring instructions. Creating a real monitor, detecting an incident and receiving a notification have not been verified as part of publishing this guide.
- Choose one endpoint. Use an externally reachable GET health-check URL you are allowed to monitor. Avoid endpoints with side effects such as payments, updates or email delivery.
- Monitors → New → API Monitoring. Enter the URL. Configure auth or headers under Request Details only when needed.
- Define healthy. Set status code 200. For the JSON body, use JSONPath
$.status, comparisonEquals, and stringok. Combine the body and status conditions withAND. - Select an interval and notification destination. Decide how long an outage can go unnoticed and connect a destination you can actually check.
The example JSON has fixed educational values. Monitor an endpoint that reflects the real service's health. Make sure a redirect to a login page is not being accepted as a healthy 200 response.
Browser requests require CORS permission; a monitoring server is a different client. A Toolbox CORS error alone does not prove the API is down. Verify reachability from the monitoring service separately.
Start with what the free plan can cover.
A one-off response inspection can end in Toolbox. If you need recurring checks, first choose the interval, conditions, notification method and team size. A paid plan makes sense when those requirements exceed the free allowance.
| Need | What to compare |
|---|---|
| A few personal URLs | Free monitor count, interval and body-check support. |
| Checks every minute or faster | Paid intervals and extra costs. A check interval does not guarantee an alert delivery time. |
| A team handling incidents | On-call rotations, escalation, destinations and per-person pricing. |
START SMALL
UptimeRobot
A candidate for starting with one API. At review time, Free lists 50 monitors at five-minute intervals; Solo lists 60-second intervals. Check that your selected plan includes the body conditions and notification integrations you need.
Explore UptimeRobot plans (ad) Check plans and features ↗TEAM RESPONSE
Better Stack
A comparison option when you want monitoring and incident response together. Check whether on-call notifications and escalation fit your team. Compare both monitoring charges and the number of responders.
Explore Better Stack monitoring Check current pricing ↗Test the route all the way to a received alert.
A running check is only part of the setup. Use a test environment without interrupting production:
- Confirm a healthy response is marked healthy.
- Change a test response to unhealthy and confirm detection.
- Receive the alert at the selected destination.
- Restore health and verify recovery detection and notification.
Only after all four steps can you say the notification route has been verified for that configuration. Retries, incident rules and notification processing affect delivery time even with a five-minute interval. Write down who checks what when an alert arrives.
Monitoring URLs and credentials are shared with the selected monitoring service. Use minimal responses and permissions, following your organization's and the service's rules.
First, compare healthy and unhealthy once.
Inspect the response, define healthy conditions, then transfer them to scheduled checks and alerts.
Inspect a response in the API client →