API monitors send HTTP requests and evaluate the response with a JavaScript function. Use them for any HTTP or HTTPS endpoint.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/rajnandan1/kener/llms.txt
Use this file to discover all available pages before exploring further.
Configuration fields
| Field | Type | Default | Notes |
|---|---|---|---|
url | string | — | Required |
method | GET | POST | PUT | PATCH | DELETE | HEAD | OPTIONS | GET | |
headers | { key: string; value: string }[] | [] | Optional custom headers |
body | string | "" | Sent for non-GET/HEAD methods |
timeout | number | 10000 | Request timeout in milliseconds |
allowSelfSignedCert | boolean | false | Disables TLS certificate verification |
eval | string (JS function) | built-in default | See eval contract below |
Default eval behavior
When no customeval is set, the monitor returns UP when:
- the HTTP status code is
429, or - the status code is in the
2xxor3xxrange
Custom eval contract
Your function receives four arguments:| Argument | Type | Description |
|---|---|---|
statusCode | number | HTTP response status code |
responseTime | number | Measured latency in milliseconds |
responseRaw | string | Raw response body as a string |
modules | object | Available libraries — currently includes cheerio |
Examples
Use
$VARIABLE_NAME in the URL, headers, or body to reference environment variables stored as secrets. Kener replaces them before sending the request.Troubleshooting
- Always DOWN: verify the URL is reachable from your Kener host, check method and headers
- TLS errors: enable
allowSelfSignedCertonly for trusted self-signed endpoints - Eval errors: check that your function always returns a valid
{ status, latency }object - Timeout: increase
timeoutor investigate network latency from Kener to the target