Skip to content
GDPR compliant. Hosted in the EU.
14-day free trial →
GraphQLAPI MonitoringEndpoint Checks
Monitoring 18 min read 18 Jun 2026

GraphQL API Monitoring: Check Endpoints Reliably 2026

GraphQL often reports partial errors with HTTP 200, under the new spec with 294. Check endpoints with query checks, the errors entry, schema drift, and latency.

X

XICTRAQ® Team

XICTRAQ®

GraphQLAPI-MonitoringEndpointsResolverMonitoring
+113%
more daily API attacks year over year (Akamai SOTI 2026)
33%
of respondents use GraphQL (Postman State of the API 2025)
294
status code for partial success since the September 2026 edition (GraphQL over HTTP)
GraphQL API MonitoringPOST /graphqlHTTP 200query Health {viewer { id name }orders(first: 5) {total status} }"data": { viewer, orders }Resolved fields deliveredorders[2].total: null"errors": [ resolver error ]orders.total: resolver timeoutpath: [orders, 2, total]HTTP 200 despite partial failureStatus code alone hides the errorerrors[] array must be checked(GraphQL Specification)Assertion checksStatus == 200HTTP response receivedOKerrors[] is empty1 resolver error foundFAILdata.viewer.id presentJSONPath assertion satisfiedOK!Latency < 500 msMeasured: 742 msWARNIntrospection disabledSchema hidden in productionOKResult: degradedAlert via email, Slack, TelegramDaily API attacks up 113% year over year, APIs are the primary attack target (Akamai SOTI 2026) — XICTRAQ® API monitoring
A REST API reveals its state through the HTTP status code: 200 means success, 500 means an error. With GraphQL, that rule of thumb does not hold. A GraphQL endpoint typically responds with HTTP 200 even when individual resolvers fail and the response is only partially populated (GraphQL over HTTP). The September 2026 edition of GraphQL over HTTP introduces a dedicated status code for this, 294 (GraphQL over HTTP), but whether a server sends it depends on its implementation and the media type. If you watch only the status code, you therefore see a healthy API while users experience empty fields. 33% of respondents use GraphQL, 93% use REST (Postman State of the API 2025); the average number of daily API attacks rose 113% year over year (Akamai SOTI 2026). As of November 2026, this guide shows how GraphQL API monitoring works with query checks, worked-through assertions, schema comparison, and latency thresholds, and how to put it into practice with API monitoring.

Why GraphQL Must Be Monitored Differently Than REST

GraphQL breaks a central assumption of classic uptime monitoring: that the HTTP status code reflects the state of the request. With GraphQL, the actual error information lives in the response body, not in the status code. The specification allows a response to contain both a data object and an errors array — successfully resolved fields are delivered, failed ones appear as null and are described in the errors array (GraphQL Specification). This is called partial response: a response with both data and errors at the same time is perfectly normal in GraphQL.

The consequence is concrete: a monitor that only checks whether the endpoint responds with 200 reports a healthy API — even though a central resolver is timing out and users see a half-empty page. A single endpoint is deceptive, too: unlike REST, where /users and /orders are separate URLs, all GraphQL traffic runs over one URL (usually /graphql). The distinction between working and broken operations happens not in the path but in the query itself.

This quirk is no longer a niche topic: in Postman's survey of more than 5,700 developers, architects, and executives, 33% name GraphQL as an API style they use (Postman State of the API 2025). The freely accessible report page of the 2026 edition no longer shows this breakdown (Postman State of the API 2026), so the 2025 value is the current verifiable figure. The fundamentals are covered in the article API monitoring: how to watch endpoints correctly.

Warning: The 200 OK fallacy

With GraphQL, a request can respond with HTTP 200 and still have failed — the failed fields become null, and the error sits in the errors entry (GraphQL Specification). Monitoring that only checks the status code systematically misses such partial failures. That is why inspecting the response body is mandatory for every GraphQL check.

Status Codes in 2026: What GraphQL over HTTP Specifies

With the September 2026 edition, GraphQL over HTTP is available as a published version. Alongside application/json, it knows the media type application/graphql-response+json. If a result contains data and errors, the server should respond with 294 (GraphQL over HTTP). If data is missing, it is a request error with a 4xx or 5xx status, for example 422 when validation fails (GraphQL over HTTP) or 415 when the Content-Type is not supported (GraphQL over HTTP). The specification recommends 294 only with the new media type; a client that does not recognize it treats it like 200.

SituationResponse containsStatus code (September 2026 edition)Check in the monitor
Success without errorsdata without errors200Status equals 200, required fields present
Partial success with field errorsdata and errors294 recommended, older servers 200errors absent, required fields present
Validation failed, for example after a removed fielderrors only422data present
Mutation via GETerrors only405Send the health query via POST
Content-Type not supportederrors only415Set Content-Type: application/json
Maintenance or load sheddingerrors only or a foreign error page503Configure maintenance windows

For monitoring, this means: a status code assertion on 200 to 299 lets 294 pass as success. If you check for == 200 and send Accept: application/graphql-response+json, application/json;q=0.9, a server that follows the new edition reveals a partial success in the status code itself. Do not rely on that alone: according to the specification, clients should determine the status from the content, and its own example for field errors still names 200 OK (GraphQL over HTTP). Evaluating errors remains mandatory.

Query and Mutation Checks: Testing the Endpoint Functionally

The first building block of resilient GraphQL monitoring is a real query against the endpoint — not a mere connection test. A small, targeted health query returns exactly the fields whose availability is business-critical. Instead of querying the entire API, you select a few representative fields from several resolvers, so that an outage in a backend service becomes visible.

Health query for monitoring
# POST /graphql with JSON body { "query": "..." }
query MonitorHealth {
  viewer {
    id
    name
  }
  orders(first: 5) {
    edges {
      node { id total status }
    }
  }
  catalog: products(first: 1) {
    totalCount
  }
}

Mutations deserve special caution. A mutation changes data — a monitor that creates a real order every minute does harm. Idempotent or read-only operations, a dedicated health mutation endpoint that writes nothing permanent, or a test mutation against a sandbox environment are therefore suitable for monitoring. What matters is that the check touches the mutation path without producing side effects in production data. According to GraphQL over HTTP, mutations must not run via GET; a conforming server rejects this with a 4xx status, and 405 is the recommended code (GraphQL over HTTP).

Query check

A read-only health query against several resolvers. Checks whether the most important data fields are delivered and whether data has the expected structure.

Mutation check

An idempotent or sandbox mutation that tests the write path without changing real data. Destructive mutations do not belong in a production check.

Multiple operations

GraphQL runs over one URL — the healthy/broken distinction happens in the query. Several named operations cover different backend services.

Authentication

Many fields are only reachable with a valid token. The monitor sends a service token in the header and checks whether viewer resolves correctly.

Detecting Partial Errors: Evaluating the errors Entry

The core of a GraphQL check is the evaluation of the errors entry. In its example for field errors, GraphQL over HTTP names the status 200 OK as soon as an operation has executed, even if an execution error occurred (GraphQL over HTTP). The failed fields become null, and every field error names the exact position in the response in its path (GraphQL Specification). A GraphQL monitor must know this structure and check it specifically.

GraphQL response with a partial error (HTTP 200)
{
  "data": {
    "viewer": { "id": "u_42", "name": "Example Ltd" },
    "orders": { "edges": [ /* ... */, { "node": { "total": null } } ] }
  },
  "errors": [
    {
      "message": "Resolver timeout",
      "path": ["orders", "edges", 2, "node", "total"],
      "extensions": { "code": "DOWNSTREAM_SERVICE_ERROR" }
    }
  ]
}

Several assertions can be derived from this structure. The most important: errors must be absent. If the monitor finds a populated errors entry, the operation is degraded — even if the status code is 200. In addition, expected data fields can be checked via JSONPath (data.viewer.id must be present) and error codes in the extensions.code field can be classified to distinguish a validation message from a real backend outage.

Three rules of the specification sharpen the check. If a request ran without errors, errors must not be present at all (GraphQL Specification); so the assertion reads "errors is absent", not "errors is empty". If a failed field is declared non-null, the null propagates to the next field that may be null, in the extreme case up to data (GraphQL Specification); so check the parent object as well. And request errors are typically the fault of the client, execution errors the fault of the service (GraphQL Specification): a request error in the health query points to a changed interface, an execution error to a problem in the backend.

How such content-based checks are built is explored in the article API monitoring with assertions and thresholds. For GraphQL, a pure availability check is not enough — only the combined evaluation of status code, errors array, and data fields yields a realistic picture of the endpoint's state.

Worked Example: Assertions for the Health Query

An assertion set for the MonitorHealth health query from the section on query and mutation checks: the endpoint is created as POST with the query in the body, and the header field contains Content-Type: application/json, the Accept header for the new media type, and a service token. In the JSON editor for assertions, the set reads:

Assertions for MonitorHealth (example)
[
  { "type": "status_code", "operator": "eq", "value": 200 },
  { "type": "json_path", "path": "$.errors", "operator": "eq", "value": null },
  { "type": "json_path", "path": "$.data.viewer.id", "operator": "exists" },
  { "type": "json_path", "path": "$.data.orders.edges[*].node.total", "operator": "exists" },
  { "type": "response_time_ms", "operator": "lt", "value": 500 }
]

Applied to the example response from the section on partial errors:

  1. Status code: a server that follows the new edition sends 294, and eq 200 fires. An older server sends 200, the assertion passes, and the following checks take over.
  2. $.errors equals null: the entry is populated, the assertion fails, and the reason appears in the history.
  3. $.data.viewer.id present: passes, the user context has resolved.
  4. Wildcard across all orders: the path with [*] checks every match individually; a single total of null among five orders is enough to fail.
  5. Response time below 500 ms: at 742 ms as in the mockup, this check fails too.

Worked Example: Time to Alert and Check Load

XICTRAQ® marks a failed run as "Fail" in the history right away but only alerts when two checks fail in a row. If an outage begins just after a check, almost two intervals pass until the alert; if it begins just before one, slightly more than one, plus the response time and a few seconds of scheduling in each case:

Check interval (plan)Alert after outage beginsRequests per operation per dayRequests per operation in 30 days
30 seconds (Agency)after 30 to 60 seconds2,88086,400
1 minute (Business)after 1 to 2 minutes1,44043,200
5 minutes (Starter)after 5 to 10 minutes2888,640

Two decisions follow. If checkout or login depends on the endpoint, five to ten minutes until the alert is usually too long; for an internal reporting API, it is often enough. And 1,440 requests a day show up in logs and rate limits, with three named operations making 4,320. A dedicated operation name such as MonitorHealth and the identifier XICTRAQ-API-Monitor/1.0, which XICTRAQ® sends as its user agent, separate them from user traffic. How rate limits themselves are monitored is shown in the article Monitoring API rate limits and 429 responses.

Schema and Introspection Monitoring

GraphQL describes its own structure through the schema, which can be queried via introspection. This capability is part of the standard and practical for development — but it is also a security risk. The OWASP recommendations explicitly advise disabling introspection in production and publicly accessible environments, because it lets attackers enumerate the entire schema and specifically search for sensitive fields (OWASP GraphQL Cheat Sheet).

This results in two monitoring tasks. First, the security check: is introspection accidentally enabled in production? A monitor can send an introspection query and raise an alert if the schema is openly accessible. Second, drift detection: if the schema changes unexpectedly — a field disappears, a type changes — clients can break. Where introspection deliberately stays enabled (for example in staging), the schema can be captured regularly and compared with the expected target state.

CheckWhat it detectsRecommended response
Introspection statusWhether the schema is openly queryable in productionAlert if introspection is active in production (OWASP)
Schema driftDisappeared fields, changed types, removed operationsNotification so that clients can be adapted
Deprecation hintsFields marked @deprecated that are still in usePlan migration before the field is removed
Field availabilityWhether a business-critical field still resolvesAlert if an expected field disappears (from the second failure in a row)
Tip: Disable introspection in production

The OWASP GraphQL Cheat Sheet recommends disabling introspection queries and schema explorers like GraphiQL in publicly accessible environments (OWASP GraphQL Cheat Sheet). A monitoring check that specifically issues an introspection request and warns on a successful response uncovers this common misconfiguration — before an attacker does.

Schema Drift Without Introspection: Comparing Against a Stored Schema

If introspection is disabled in production, live comparison of the schema is no longer possible. Drift can still be detected:

  1. Store the schema as a file: the schema lives in the Schema Definition Language (SDL) in the repository. The reference implementation graphql-js compares two versions with findBreakingChanges and findDangerousChanges and reports, for example, a removed field as FIELD_REMOVED (graphql-js).
  2. Health query as a contract: if a deploy removes a queried field, validation fails; the response contains no data, and a server that follows the new edition sends 422. The assertions from the worked example catch both.
  3. Response structure as a JSON schema: in XICTRAQ®, a JSON schema can be stored per endpoint; if the response deviates, the run counts as failed, even with HTTP 200.
Stored schema and finding after the deploy (example)
# schema.graphql, stored version
type Order { id: ID!  total: Money  status: OrderStatus! }

# after the deploy
type Order { id: ID!  status: OrderStatus! }

# findBreakingChanges(old, new)
# FIELD_REMOVED: Order.total was removed.

This is necessary because contract checks are rare: only 17% of respondents use contract testing, and 26% use semantic versioning (Postman State of the API 2025). A health query with field assertions does not replace a contract test, but it makes a break in live operation visible after one to two check intervals.

Monitoring Resolver Latency and Performance

GraphQL shifts the performance question from the URL to the individual field. Because a client can combine any number of fields in one request, the response time depends on which resolvers are involved. A slow resolver — for example a database query without an index or a sluggish downstream service — can slow down an otherwise fast query. The GraphQL Foundation therefore advises observing over time which fields take a long time to resolve and which routinely raise errors (GraphQL Foundation).

For monitoring, the end-to-end latency of the health query is the first metric. A worked example for the threshold: suppose the last 100 runs have a median of 210 ms and a 95th percentile of 330 ms. A 50 percent margin on the 95th percentile gives around 500 ms. The 742 ms from the mockup clearly exceed this threshold, an ordinary outlier of 360 ms does not. Set the check timeout above it, but below the limit at which the server itself aborts; GitHub, for example, terminates requests to its GraphQL API that take more than 10 seconds (GitHub Docs). Why percentiles are more robust than the average is explained in p95 and p99 instead of the average; how thresholds shift in peak weeks is shown in Adaptive response time alerts.

  • End-to-end latency of the health query with a threshold — detects slow resolvers before they become timeouts
  • Keep an eye on the N+1 problem — nested fields can trigger one backend request per element and multiply latency unnoticed
  • Limit query depth and complexity — deep, nested queries strain the server and are a known DoS vector (OWASP GraphQL Cheat Sheet)
  • Put latency per region into context — XICTRAQ® currently runs API endpoint checks centrally from one node; regional differences are shown by uptime monitoring, which checks from three nodes
  • Trend over snapshot — a single slow response is noise, a rising trend over hours is a signal

Query Depth, Complexity, and Batching: Calculating and Checking Limits

GraphQL lets the client decide how much work a request triggers. In the risk Unrestricted Resource Consumption of the 2023 edition, the OWASP API Security Top 10 name the number of operations per request as a limit that may be missing, with GraphQL batching as the example (OWASP API Security Top 10). The GraphQL Foundation recommends limits on depth, a smaller one for nested lists, and upper limits for top-level fields, aliases, and batched operations (GraphQL Foundation).

How quickly lists grow is shown by a worked example based on the counting method GitHub documents for its public GraphQL API: orders(first: 50), inside it items(first: 20), inside that reviews(first: 10) requests up to 50 + 50 × 20 + 50 × 20 × 10 = 11,050 nodes. GitHub allows at most 500,000 nodes per call (GitHub Docs) and calculates cost in points: add up the sub-requests per list field, divide by 100, round (GitHub Docs). The example comes to 1 + 50 + 1,000 = 1,051 sub-requests, i.e. 11 points, and the lean health query to the minimum of 1 point (GitHub Docs). With 5,000 points per hour for a user (GitHub Docs), a check every minute uses 60 points, a little over 1 percent of the budget.

Batching undermines rate limits that only count HTTP requests. In the OWASP scenario for the risk Broken Authentication, a login is limited to three requests per minute (OWASP API Security Top 10). If an attacker bundles 100 login mutations into one request, that makes 300 password attempts per minute, even though the limit formally applies. The OWASP GraphQL Cheat Sheet therefore recommends limits in code per request, for example on requested objects and batched operations (OWASP GraphQL Cheat Sheet).

Negative test: deliberately too deep query (example)
query DepthProbe {
  viewer {
    orders(first: 1) {
      edges { node {
        customer {
          orders(first: 1) {
            edges { node { customer { id } } }
          }
        }
      } }
    }
  }
}

Whether these limits take effect in production is checked by a negative test: a second endpoint check sends a query that reaches one level deeper than the configured limit and expects rejection, i.e. $.errors[0].message with exists and $.data.viewer equal to null. With first: 1, the test creates hardly any load even without a limit. The same pattern checks whether batched operations are rejected. If the test fires, no service has failed, but a safeguard has disappeared. The general list for web applications is summarized in the article OWASP Top 10:2025.

GraphQL Security: More Than Availability

Monitoring GraphQL has a security dimension. According to Akamai, APIs have become the primary attack surface: the average number of daily API attacks rose 113% year over year, and 87% of surveyed organizations reported an API-related security incident in 2025 (Akamai SOTI 2026). Both figures come from the report "Apps, APIs, and DDoS" in the State of the Internet series, which Akamai presented in March 2026 (Akamai SOTI 2026).

GraphQL brings its own risks. The OWASP API Security Top 10 in the 2023 edition address GraphQL in several scenarios, for example bypassing a login rate limit via batching (OWASP API Security Top 10). The OWASP GraphQL Cheat Sheet calls for authorization checks on every requested object to prevent gaps such as Broken Object Level Authorization (BOLA) and Broken Function Level Authorization (BFLA) (OWASP GraphQL Cheat Sheet). Introspection enabled in production exposes the entire schema. Disabling it is not enough on its own, though: error messages about misspelled field names also reveal the schema bit by bit (GraphQL Foundation).

Monitoring does not replace a security architecture but complements it: a check that observes introspection status, unusual error codes in the extensions field, and conspicuous latency spikes provides early signals. Combined with a clean alert configuration and resilient incident management with escalation, a technical signal turns into a manageable response — before a misconfiguration becomes an incident.

Monitoring Persisted Queries and GET Caching

Many GraphQL applications no longer send their queries as text in production. With trusted documents, sometimes still called persisted queries, the client registers its documents in an allowlist on the server at build time; at runtime it sends only an identifier, usually a hash, and the server executes only known identifiers (GraphQL Foundation). If a server supports GET for queries, these requests are typically considered cacheable and can be delivered through a CDN with suitable cache headers; because browsers and CDNs limit URL length, hashes are used here as well (GraphQL Foundation). This creates failure modes that a text query via POST does not see:

  • Check the client's path: also send the health query the way the app does, via GET with a document identifier. If the new client arrives before the new allowlist, real users fail while the text query keeps passing; an unregistered text query must be rejected.
  • Control cache headers: a header assertion on Cache-Control shows whether sensitive data is cached privately or not at all (GraphQL Foundation); stale structures after a deploy are covered in Stale cache after deploy.
  • Test 294 in caches and gateways: 294 rarely appears in the fixed status lists of infrastructure, so a cache may handle it differently from 200 (GraphQL over HTTP).
  • Monitor subscriptions separately: real-time subscriptions typically run over WebSockets; the appropriate checks are described in WebSocket and realtime endpoint monitoring.

Setting Up GraphQL Monitoring With XICTRAQ®

The following checklist summarizes what resilient GraphQL monitoring should cover. It serves as a starting point for checking an existing endpoint or setting up new monitoring.

  1. Send a real query with suitable headers — health query against several resolvers, Content-Type: application/json, and the Accept header for the new media type
  2. Check the status code AND errors — a response can arrive with 200 or 294 despite a partial failure (GraphQL over HTTP)
  3. Verify data fields via JSONPath — data.viewer.id and business-critical list fields via wildcard
  4. Monitor response time with a threshold — derive the threshold from the 95th percentile, set the timeout above it
  5. Check introspection and safeguards — open schema, too-deep queries, and unregistered documents via negative tests (OWASP GraphQL Cheat Sheet)
  6. Define escalation — notify via email, Slack, Teams, Discord, Telegram, or webhook on a degraded state

XICTRAQ® API monitoring calls GraphQL endpoints at the configured interval, depending on the plan from 30 seconds (Agency) to 5 minutes (Starter), sends the stored query as a POST body with your headers, and evaluates the response against your AND-combined assertions: HTTP status, response time, JSON path values, and text-contains checks. With "Run now", you test the set before go-live, including the evaluation of every assertion. If two checks fail in a row, the alert goes out through the same channels as the rest of your monitoring, configured under alerting and notifications.

Note: Sources and studies

This article is based on: GraphQL Specification, September 2026 edition; GraphQL over HTTP, September 2026 edition (status codes 200, 294, 405, 415, 422, 503); GraphQL Foundation; graphql-js; OWASP (API Security Top 10, 2023 edition, GraphQL Cheat Sheet); GitHub Docs; Akamai (State of the Internet 2026: +113% API attacks, 87% with an API incident); Postman (State of the API 2025: REST 93%, GraphQL 33%, contract testing 17%, semantic versioning 26%).

Frequently Asked Questions About GraphQL API Monitoring

Why is an HTTP status check not enough for GraphQL?
GraphQL endpoints typically respond with a success status even when resolvers fail, depending on the implementation with 200 or, following the September 2026 edition of GraphQL over HTTP, with 294 (GraphQL over HTTP). The actual error information sits in the errors entry. Monitoring that only checks the status code usually misses such partial failures.
What are partial errors in GraphQL?
Partial errors arise when part of a GraphQL request resolves successfully and another part fails: the successful fields are delivered, the failed ones appear as null and are listed with their path in the errors entry (GraphQL Specification).
Which status code does a GraphQL server send for errors in 2026?
According to the September 2026 edition of GraphQL over HTTP, with the media type application/graphql-response+json: 200 for success without errors, 294 for partial success, and 4xx or 5xx for request errors without data, for example 422 when validation fails (GraphQL over HTTP). Older servers typically send 200 for partial successes, so the body remains decisive.
Should I test mutations in monitoring?
With caution: mutations change data. Suitable options are idempotent operations, a health mutation path with no lasting effect, or a sandbox; destructive mutations against production data should typically be avoided.
How do I detect schema drift when introspection is disabled?
Store the schema as a file in the repository and compare every change, for example with findBreakingChanges from graphql-js (graphql-js). In live operation, the health query acts as a contract: if a deploy removes a queried field, validation fails and the response no longer contains data.
How quickly does XICTRAQ® report a degraded GraphQL endpoint?
XICTRAQ® alerts when two checks fail in a row; a single outlier only appears in the history. With an interval of 1 minute, the alert therefore typically comes 1 to 2 minutes after the outage begins, with 30 seconds after 30 to 60 seconds, and with 5 minutes after 5 to 10 minutes. Which interval is available depends on the plan.

Related in XICTRAQ®

First scan usually in under a minute

Let XICTRAQ® watch your website.

Free plan with no fixed term available. No credit card, no installation, no hidden fees.