API Monitoring
REST & GraphQL API Monitoring
Go past “200 OK.” Assert on the fields, schema, and values your API is supposed to return, and catch a 200 response with the wrong data before a customer files a ticket.
The Free plan has no time limit, and you don’t need a credit card.
Assert on What the API Is Supposed to Do
A 200 response doesn’t prove the API is working. It proves the server answered. Each API monitor sends the request you define, checks the assertions that define “correct”, and alerts when any of them fails.
- All HTTP methods: GET, POST, PUT, PATCH, DELETE, HEAD. Send a POST with a real payload and check that the response matches what a client would get
- Custom request bodies: raw JSON, form-encoded, or XML, exactly as you’d send it from the app
- Custom headers: auth tokens, content-type, correlation IDs, tenant headers, or anything else your API requires
- Response status codes: expect 200, or a specific code (201, 202, 401 for a negative test)
- Response time thresholds: alert when a “working” endpoint gets 3× slower
- Works for GraphQL: POST your query to the endpoint, assert on the JSON response the same way you would for REST

Response-Body Assertions
There are two ways to check that the response matches what you expect. Use one, or combine them on the same monitor.
JSONPath field checks
Pick the exact field that matters and assert on its value. You don’t have to scan full response bodies for keywords or rely on substring matches that break when the JSON format changes. Combine multiple JSONPath assertions on one monitor to check the shape and values you care about. A missing required field, a flag set to the wrong value, or a version marker that regressed all show up as failures.
$.status == "ok"
$.data.user.id > 0
$.meta.version == "v2"
Keyword & content checks
For non-JSON responses or quick sanity checks: require a string to be present, or absent. Catch “Database error”, “Maintenance”, or a missing success marker without writing a JSONPath expression. API monitors use the same keyword checks as website monitors.

Track API Performance, Not Just Availability
“The API is up” and “the API is fast enough” are different questions. StatusDrift records response time for every check, so you see degradation building up over a week instead of finding it the morning it hits SLA.
- Historical response time graphs per endpoint
- Per-region performance, so you can see when latency doubles in one region
- Response time thresholds that alert before the slowdown is user-visible
- Pull raw check data via the REST API into Grafana, BigQuery, or a notebook for p50/p95/p99 analysis
Supported Authentication Methods
Most APIs need a credential. StatusDrift sends whatever header or body your endpoint expects, without a proxy or plugin.
API keys
As a header or query parameter, whichever your API expects.
Bearer tokens
Static JWTs or long-lived tokens in the Authorization header.
Basic auth
Username and password for legacy endpoints and internal services.
Custom headers
Any header your API requires, such as tenant IDs, correlation tokens, or signed requests.
StatusDrift monitors perform a single HTTP request per check. We don’t chain multiple requests or pass values between them. If you need end-to-end user flows, point a monitor at a purpose-built health-check endpoint that performs the flow server-side and reports the result.
Frequently Asked Questions
Yes. Send a POST with your GraphQL query in the request body and assert on the JSON response using JSONPath the same way you would for REST. No separate “GraphQL monitor” type needed.
No. Each monitor runs a single request. For scenarios that require chained state (obtain a token, then call a protected endpoint), build a single health-check endpoint on your side that performs the flow internally and returns a JSON summary. StatusDrift then checks that one endpoint, and the logic stays in your repo.
There are two options. If the API can be narrowly exposed, allowlist our published check IPs at your firewall (stable IP ranges across regions) and add a bearer token or basic-auth header to the monitor. External probes then cover it like a public endpoint. For APIs with no inbound public exposure, install the StatusDrift agent inside your network and it calls the endpoint locally, reporting results back outbound.
Status code, response time threshold, and response-body checks (JSONPath or keyword) all run on the same check. Any failing assertion fails the monitor, so a 200 with the wrong JSON shape still counts as broken.
Monitors run from multiple regions, as often as every 30 seconds on Business and every minute on Pro. Per-monitor thresholds (consecutive checks down, locations down, notification delay) tune the signal so a flaky dependency doesn’t page every hour but a real outage still fires quickly.
Yes. The StatusDrift Terraform provider covers monitors, alert contacts, maintenance windows, and status pages. Keep them in the same repo as your service, review the diffs in PRs, and apply them in CI.
Still have questions?
Contact our support teamPairs Well With
Website Monitoring
For front-end routes and simple HTML pages where keyword assertions are enough and JSONPath is overkill.
Cron Job Monitoring
Know when a scheduled job your API depends on, like the nightly ETL or a webhook retry worker, misses its slot.
Status Pages
Show API health to your integrators with components that update automatically from the monitors behind them.
Monitor the API, Not Just the Server
Start free with response-body assertions, and upgrade when you need 30-second checks.