diff --git a/apps/web/src/views/docs.ejs b/apps/web/src/views/docs.ejs index c8518ef..a020918 100644 --- a/apps/web/src/views/docs.ejs +++ b/apps/web/src/views/docs.ejs @@ -130,9 +130,28 @@ "name": "My API", "url": "https://api.example.com/health", "interval_s": 60, // check every 60 seconds (min: 2) + "method": "POST", // optional — default: GET + "request_headers": { "X-Api-Key": "secret" }, // optional + "request_body": "{\"ping\": true}", // optional — Content-Type defaults to application/json + "regions": ["eu-central", "us-west"], // optional — default: all regions + "timeout_ms": 10000, // optional — default: 10000 "query": { ... } // optional — see Query Language below } +
| Field | Type | Description |
|---|---|---|
| name | string | Display name for the monitor |
| url | string | URL to monitor |
| interval_s | number | Check interval in seconds (min: 30 free, 2 pro) |
| method | string | HTTP method — GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS |
| request_headers | object | Custom headers as key-value pairs |
| request_body | string | Request body (Content-Type defaults to application/json) |
| regions | string[] | Regions to ping from: eu-central, us-west. Default: all |
| timeout_ms | number | Request timeout in milliseconds (default: 10000) |
| query | object | Query conditions — see below |
Drill into JSON responses with $json or scrape any HTML page with $css — no API required.
Drill into JSON responses with $json or scrape any HTML page with $select — no API required.