Healthchecks

HTTP / HTTPS Health Checks

Monitor REST APIs, websites, and web services. Configure the request, then check status codes, keywords, JSON fields, headers and response time.

Overview

HTTP health checks are the most versatile monitoring type in Uptimy. They allow you to send fully customizable HTTP requests to any endpoint and validate the response against your expected criteria. Whether you're monitoring a simple website, a REST API, or a complex web service, HTTP checks give you complete control over request configuration and response validation.

Supported HTTP Methods

Uptimy supports all standard HTTP methods, enabling you to monitor any type of API endpoint:

  • GET — Retrieve resources and verify response content
  • POST — Test API endpoints that accept data submissions
  • PUT — Validate update endpoints with request bodies
  • DELETE — Monitor deletion endpoints for availability
  • PATCH — Check partial update endpoints
  • HEAD — Lightweight checks that only retrieve headers
  • OPTIONS — Verify CORS configuration and allowed methods

Request Configuration

Pick the Method beside the Endpoint URL. Headers, and a body for methods other than GET and HEAD, are under Headers and body just below. What the response must look like goes under Checks (below). The proxy is under Advanced settings.

Request Headers

Add any number of headers under Headers. This is essential for APIs that require authentication tokens, content-type specifications, or custom identifiers.

Example Headers
{
  "Authorization": "Bearer {{secret.API_TOKEN}}",
  "Content-Type": "application/json",
  "X-Custom-Header": "monitoring-check"
}

Authorization and API key headers are locked: their values are kept as workspace secrets, encrypted, never shown again, and masked in results. Use the lock on any other header to do the same.

Request Body

For any method other than GET and HEAD, add a body under Body to test endpoints that expect a payload. It is sent as typed, with Content-Type: application/json unless you set that header yourself.

Example Request Body
{
  "action": "health_check",
  "timestamp": "2025-01-01T00:00:00Z"
}

Checks

Each check says something the response must do. A new HTTP monitor starts with Status code is 200; add more with the buttons under Checks. Every check must pass for the monitor to be up.

CheckConditionsExample
Status codeis, is not, is one of, is below, is aboveStatus code is one of 200, 204
Response body (keyword)contains, does not contain, matches regex, does not match regexResponse body contains “Add to cart”
JSON fieldequals, does not equal, contains, does not contain, is below, is above, exists, does not existJSON field data.status equals ok
Headerequals, does not equal, contains, does not contain, matches regex, exists, does not existHeader Content-Type contains json
Response timeis below (milliseconds)Response time is below 2000 ms

Without a status code check, any status below 400 passes and 4xx and 5xx responses fail.

Redirects are followed, up to 10 of them, and the checks apply to the final response. To check a page that redirects, expect the status of the page it ends on.

JSON fields

A JSON field is named by its path: status, data.status, or items.0.id for the id of the first item in a list. Type values as JSON: 42, true and null are a number, a boolean and null, and anything else is text. Numbers compare as numbers and text as text, so 200 and "200" match each other. On a list, contains checks for an element.

Catch a 200 that isn't healthy

A server can answer 200 OK with an error page or an empty result. A JSON field check like data.status equals ok, or a keyword the page always shows, turns that into a failure you hear about.

Text checks

Response body and header text is matched case-sensitively; tick Ignore case to match any case. Regular expressions use the RE2 syntax (no lookahead, lookbehind or backreferences). The body is read up to its first 1 MiB.

Several requests in a row

To log in first and call an endpoint with the token, add steps: see Multi-step API checks.

When checks fail

A failed result lists every check that failed, with what was expected and what came back, in the check log and on the incident.

Proxy Support

Route your HTTP checks through a proxy server in Proxy URL (Optional), written as [username:password@]host:port. Uptimy supports three proxy types:

  • HTTP Proxy — Standard HTTP proxy for unencrypted traffic
  • HTTPS Proxy — Encrypted proxy connection for secure requests
  • SOCKS5 Proxy — Versatile proxy protocol supporting any TCP traffic

Response Data

Every HTTP check execution captures detailed response data for analysis and debugging:

FieldDescription
Status CodeThe actual HTTP status code returned by the server
Content LengthSize of the response body in bytes
Content TypeThe MIME type of the response (e.g., application/json)
Response Body SnippetThe first 500 bytes of the response body, kept when the status code isn't the expected one

Performance Breakdown

Uptimy provides a detailed request performance breakdown so you can identify exactly where latency occurs in the request lifecycle:

MetricDescription
DNS LookupTime spent resolving the domain name to an IP address
TCP ConnectionTime to establish the TCP connection with the server
TLS HandshakeTime to complete the SSL/TLS handshake (HTTPS only)
Time to First Byte (TTFB)Time from sending the request to receiving the first response byte
Content TransferTime to download the full response body

Diagnosing Slow Responses

The performance breakdown helps you pinpoint whether slowness is caused by DNS resolution, network latency, server processing time, or large response payloads. Use this data to optimize your infrastructure and improve response times.

Example Configuration

HTTP is healthcheck type 1. This is its config as the API and uptimyctl take it. The interval and timeout aren't part of it: they are set on the check itself, as intervalSeconds and timeoutSeconds. Without a status assertion, any status below 400 passes.

HTTP check config
{
  "steps": [
    {
      "name": "request",
      "request": {
        "method": "GET",
        "uri": "https://api.example.com/health",
        "headers": { "Authorization": "Bearer token123" }
      },
      "assertions": [
        { "source": "status", "op": "eq", "value": 200 },
        { "source": "json", "path": "status", "op": "eq", "value": "ok" }
      ]
    }
  ]
}

Timeouts

Set your timeout value to be comfortably above your expected response time. If your API typically responds in 2 seconds, a 5 to 10 second timeout avoids false alerts from occasional slow responses while still catching genuine outages.