HTTP and API checks
Choose the method, expected status codes, keywords, and request headers.
2 min readChoose the request
HTTP monitors support GET and HEAD. GET can check a response keyword; HEAD has no response body, so a keyword check is unavailable. POST requests, request bodies, and JSON field assertions are not supported.
Checks run hourly, or every 5 minutes when selected on Premium, with a 10-second total timeout.
Define a successful response
- Add or edit the monitor and open its Request tab.
- Choose GET, HEAD, POST, PUT, or PATCH under Request and response. POST, PUT, and PATCH can send a request body of up to 8 KB.
- Leave Expected status codes blank to accept any 2xx response, or enter comma-separated codes and ranges such as 200-299,401.
- For any method but HEAD, optionally enter an exact, case-sensitive response keyword. Cheapmonit searches the first 1 MB of the response.
- To check a JSON response, enter a JSON value such as data.status and, optionally, its Expected value, such as ok or true.
- Select Run a test to try these settings once before saving, then save the monitor.
Test before saving
Run a test, at the bottom of the add and edit forms, checks the address once with the form's current settings and shows whether it is up, how long it took, the HTTP status, and which condition failed, such as a missing keyword or an unexpected JSON value. Nothing is saved and no alert is sent.
Tests work for HTTP, TCP, UDP, DNS, and ping monitors; browser scenarios cannot be tested from the form yet. A test follows the same rules as a real check: private addresses are refused, and request headers and bodies never go to a redirect elsewhere. When editing, a saved header left blank is used without being shown, as long as the address keeps the same host and port; otherwise enter its value again. Editors and owners can run up to 10 tests a minute per workspace.
Monitor an authenticated endpoint
Add up to 10 custom request headers for an endpoint that requires credentials. Saved header values stay hidden: you see their names, and can leave a saved value blank when editing to keep it.
Headers go to the monitored host and are removed when redirecting to another host or port. Never put credentials in a public component name or public incident note.