For a long time I monitored my projects the lazy way: one check on the home page. It was green almost all the time, which felt reassuring, right up until the day the marketing page was fine and the API behind the app was returning errors. The home page was a static file on a CDN. Of course it was up.
If your product is an app, a mobile backend or anything with a /api path, the thing customers depend on is the API. These days I monitor it directly with UptimePilot, and this is my setup.
Why a website check isn't enough for an API
A plain URL check sends a GET with no credentials and looks at the status code. Real API traffic looks different:
- It's often a POST with a JSON body.
- It needs an Authorization header or an API key, and without one you only ever test your 401 page.
- It can return 200 with an error inside, like
{"status":"error"}, which a status-code check happily calls “up”.
So an API monitor needs to make the same kind of request your clients make, and look at what comes back.
What I check on each endpoint
In UptimePilot I add an API endpoint monitor and fill in:
- Method and URL. Usually a health endpoint that touches the database, like
GET /v1/health. For critical flows I add a second monitor on something more realistic, like a search or a quote request. - Headers, one per line, for example
Authorization: Bearer <monitoring key>andContent-Type: application/json. - A body for POST, PUT or PATCH requests, up to 10,000 characters.
- The expected status code. Exactly one code, so I can say
201for a create endpoint, or200for most others. - A response keyword. I make the endpoint return something like
"status":"ok"and set it as the keyword. If the database is down and the health check says so, the keyword is missing and the monitor fails. You can also use “does not contain” to catch"error".
A health endpoint worth monitoring
The best API monitors hit an endpoint that does a little real work. Mine look roughly like this:
GET /v1/health
200 OK
{"status":"ok","db":"ok","queue":"ok","version":"2026.10.3"}
If the database or queue check fails, the endpoint returns 503 and "status":"degraded". Expecting 200 and the keyword "status":"ok" catches both cases. It's ten lines of code in most frameworks, and it turns your monitor from “the server answers” into “the app works”.
Response time matters too
Every check records how long the request took, and the monitor page charts it with a p95 line over 24 hours, 7 days or 30 days. I look at this every week or so. An endpoint that drifts from 200 ms to 900 ms over a month is telling you something (a missing index, a slow third party, a growing table) long before it times out.
You also set a timeout per monitor: up to 30 seconds on Starter, and up to 120 seconds on Pro and Business for genuinely slow endpoints. A request that doesn't finish in time counts as a failure.
Alerts that go to the people who own the API
An API usually belongs to a team, not a person. In UptimePilot I route each monitor to the channel of the team that owns it: the payments API to the payments Slack channel, the public API to the on-call webhook, and so on. On Starter you get email, Slack, Microsoft Teams and Telegram; Pro adds webhooks for your own tooling, and Business adds PagerDuty.
Like every other monitor, an incident opens only after a number of failures in a row (3 by default) and closes after 2 good checks, so a single slow request doesn't page anyone.
My API monitoring checklist
- One health endpoint per service, with a keyword.
- One “real” request for the flow that makes money (checkout, signup, search).
- Authenticated, with a monitoring-only key.
- Checked every minute (Starter) or every 30 seconds (Pro and Business).
- Plus a certificate monitor on the API's hostname, because API clients fail hard on an expired certificate.
API monitors are included from the Starter plan at ₹499 a month (about $6) for 20 monitors. Start with the free trial, set up your website checks, and upgrade when you're ready to add the API. If your customers talk to your product through an API, that's the part worth watching.
Frequently asked questions
Can UptimePilot send headers and a request body?
Yes. API monitors take any method (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS), custom headers one per line, and a request body up to 10,000 characters. The body isn't sent for GET or HEAD.
How does it decide the API is down?
The check fails if the endpoint doesn't answer in time, returns a status code other than the one you expect, or (if you set a keyword) the response is missing the text you expect, or contains text you said it shouldn't.
Is it safe to put an API key in a monitor?
Use a read-only key made for monitoring. Header and body values are hidden from workspace members who aren't admins, so the key isn't shown to everyone on the team.
Which plan includes API monitoring?
API monitors are on Starter (₹499/month) and up. The 7-day free trial covers website, SSL, domain, DNS, ping and port checks.