Monitoring as Code: Learn more about the API Check Construct.

What are API Checks?
API checks are automated HTTP requests that validate API endpoint functionality by checking status codes, response content, headers, and performance metrics. They simulate real API usage patterns and help catch issues before they impact your users. You can create API checks in the UI, via the API Check Construct or by importing your existing Swagger/OpenAPI spec. API checks are perfect for:- REST API endpoint monitoring
- GraphQL API validation
- Authentication system testing
- Third-party API dependency monitoring
- Payment and transaction APIs
Key capabilities
Key capabilities
- HTTP method support (GET, POST, PUT, DELETE, etc.)
- Request/response validation
- JSON schema validation
- Authentication handling
- Performance measurement
- Global monitoring locations
If you are looking to monitor complex API flows or data processing, you might want to consider using Multistep Checks.
How API Checks Work
API checks perform comprehensive endpoint validation:- HTTP Request - Sends configured requests with headers, body, and authentication
- Response Analysis - Captures status codes, headers, body content, and timing
- Validation - Runs assertions against response data and performance metrics
- Performance Tracking - Measures response times and identifies trends
- Alert Generation - Notifies teams when endpoints fail or degrade
API checks are ideal for testing both internal services and external API dependencies your application relies on.
Timeouts
All API checks are capped at a timeout of 30 seconds. With each request, we record the most relevant timing phases. This can help you troubleshoot slow responses, e.g. your DNS might be slow. The timing phases correspond to the Node.js request library timing phases:wait
: Duration of socket initializationdns
: Duration of DNS lookuptcp
: Duration of TCP connectionfirstByte
: Duration of HTTP server responsedownload
: Duration of HTTP download
