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.
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.
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.
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
]
}
}'