HTTP

HTTP monitor

Fetch a URL on a schedule and assert that the response code is in your expected set. The default and most useful check for any web service.

What it checks

Sends a HEAD (default), GET, or POST request to the target URL with a 10-second timeout. If the response status matches your expected set (default [200]), the check is UP.

Common configurations

  • Status pages or APIs: HEAD against the URL, expect 200.
  • Login-walled apps: GET against a public health endpoint (e.g. /health).
  • Redirect endpoints: expected status 301 or 302.

Target format

Must start with http:// or https://. The new-monitor form prepends https:// automatically if you omit the scheme. We re-resolve the target on every probe to prevent DNS rebinding to private addresses.

Create one via the API

curl https://monitorah.com/api/v1/monitors \
  -X POST \
  -H "Authorization: Bearer mon_live_…" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "My HTTP check",
  "type": "HTTP",
  "target": "https://example.com/health",
  "config": {
    "method": "HEAD",
    "expectedStatus": [
      200
    ]
  }
}'

Full reference for this endpoint →

Create a HTTP monitor → All docs