---
title: WatchFor monitor types reference (API catalog)
description: Every WatchFor monitor type — target format, default alert rules, alert metrics and config fields — the per-type reference for the API.
canonical: https://watchfor.io/docs/api/monitor-types
---

# WatchFor monitor types reference (API catalog)

Every WatchFor monitor type — target format, default alert rules, alert metrics and config fields — the per-type reference for the API.

WatchFor supports 34 monitor types. This page lists, for each type, exactly
what to send to the API: the `type` value, the `target` format, the config
fields the type accepts, the alert **metrics** you can build rules from
(with the exact string to pass as the alert-rule `metric`), and the default
rules the system creates automatically.

> **Info**
>
> This reference is also available **machine-readable** at
> [`GET /api/v1/meta/monitor-types`](https://watchfor.io/api/v1/meta/monitor-types)
> (no API key required, `operationId: listMonitorTypes`) — ideal for code
> generation and AI agents; the same document is an MCP resource and the
> `get_monitor_types` tool. Every monitor's own valid metrics are also
> returned inline as `available_metrics` on `GET /v1/monitors/{id}`.

> **Two browser-based types**
>
> **`playwright` is a browser check**: your Playwright Test script runs a
> journey (login, checkout, search) step by step. **`browser` is Core Web
> Vitals**: a Lighthouse audit of one page. The type ids predate the product
> names, so `browser` does not mean browser checks.

How to read the tables:

- **Passes as `metric`** is the exact string for
  [`POST /v1/monitors/{id}/alert-rules`](/docs/api/alert-rules). The
  universal `success` metric (probe passed or failed) is valid on every
  type, even where a type's table omits it.
- In the machine-readable catalog every metric also carries
  `region_scoped`: `true` on network-distance metrics (latency, packet
  loss, jitter), whose rules may take `regions` and which have
  [suggested thresholds](/docs/api/alert-rules#suggested-thresholds).
- **Op** is the operator the dashboard preset uses. Numeric metrics
  accept any of `>`, `<`, `>=`, `<=`, `==`, `!=` (the endpoint's
  top-level `operators` array); `success` takes `==`/`!=` with
  `"true"`/`"false"`; status-code metrics take `in_groups`/`not_in_groups`
  with a JSON array such as `["2xx","3xx"]` or `[200,301]`.
- **Example value** is a sensible threshold in the metric's unit; the
  API rejects values outside the unit's plausible range with a message
  naming the range.
- **Config fields** are the keys of the `config` object on
  [create/update](/docs/api/monitors#create-a-monitor). Keys marked
  **secret** are write-only and come back as `"[redacted]"`. The mailbox,
  SMTP, FTP and SFTP credentials are also stored encrypted: on update,
  omitting one, sending `""` or the `"[redacted]"` mask keeps the stored
  value, `null` removes it, and changing the server, port, TLS mode or login
  it is used with requires sending it again — see
  [credentials](/docs/api/monitors#credentials-write-only).
  The rules a field states here (an SFTP username, something for an
  email-security check to query, a bound) hold for the values a create or
  update sends: a monitor stored with an older value keeps working, and an
  update of another field never fails on it.
- **Default alert rules** are seeded on creation and can be edited or
  disabled but not deleted. The default `Availability Check`
  (`success == false`, critical) fires after 3 consecutive failing
  checks confirmed by the monitor's locations; types that observe a
  single global fact (Domain/RDAP, Breach, Heartbeat) skip it in favor of
  their own rules. A rule that needs a setting the monitor doesn't have
  yet (Login Failed needs a `username`) is created by the update that
  adds the setting.

Each entry also carries a `description` in the JSON catalog (shown
under the heading here).

## Config keys every type accepts

Besides the per-type fields below, `config` carries four alerting knobs
that apply to **every** rule on the monitor — on create and on a PATCH,
which updates each rule as the Alerting tab's Save does. The dashboard's Alerting tab
edits the same keys, and the type catalog
(`GET /v1/meta/monitor-types`) lists them under each type's
`config_fields`.

| Key | Type | Notes |
|---|---|---|
| `notificationGroupIds` | array | Contact-group ids that receive this monitor's alerts. Defaults to the organization's default group. New rules, both the monitor's default rules and rules created later without `contactGroupId`, inherit the first one |
| `confirmationThreshold` | number | Consecutive failed checks before an incident opens, a whole number `1`–`100`; default `3` (`1` for heartbeat, `2` for browser checks and page integrity) |
| `durationWindow` | number | Seconds a condition must persist before it alerts, `0`–`86400`; `0` (default) alerts on the first confirmed failure |
| `repeatIntervalSeconds` | number | Repeat the notification while the incident stays open, in whole hours as seconds: `3600` (1 hour) to `86400` (24 hours); `0` or omitted sends a single notification |

A value outside these bounds is a `400` naming the field (`config.durationWindow: …`),
on create and update alike — the same bounds as the alert-rule endpoints.

Two more keys are shared by many types and listed here once rather than
in each table:

- `ipVersion` — `any` (the default: IPv4 first, IPv6 as fallback), `ip4`
  or `ip6`, the address family the check reaches the target over. Every
  type uses it except `heartbeat`, `browser`, `playwright`,
  `email_policy`, `email_roundtrip`, `breach`, `safe_browsing` and
  `blacklist`, which have no address family to choose — the key has no effect there (a blacklist
  check asks every address of the target, and reaches a custom resolver
  over the resolver's own address family).
- `timeoutSeconds` — the per-check timeout wherever a table lists it,
  `1`–`120` seconds unless its row gives another range.

A few keys in `config` are server-managed and read-only: `pingToken`
(heartbeat — the token in its ping URL) and `scriptVersion` (browser
check — the current script version). They come back on reads; don't
send them, the server keeps its own value.

The types that report a certificate or domain expiry — HTTP, SSL / TLS,
Domain (RDAP), MCP and API — also accept `expiryReminderDays` (listed in
their tables below): reminder days for an open expiry incident, validated as
whole days 1–365, at most five, stored deduplicated and sorted. Sending it to
any other type is a `400` with the field path.

Some rule-shaped settings live in `config` rather than on the alert rule —
`failIfBodyNotMatchesRegexp` (HTTP), `expectedValues` (DNS),
`expectedProvider` (CDN), `expectedCms` (CMS), `expectMatchRegexp`
(TCP/UDP), `expectPattern` (WebSocket) and `expectedProtocolVersion` (MCP).
Set the key on the monitor, then create the rule on the metric named in the
key's description. Patterns (`failIfBody*Regexp`, `expectMatchRegexp`,
`expectPattern`, DNS `expectedValues` with `matchMode: any_regex`) are
compiled when you save, with the RE2 syntax the check uses: an invalid
pattern, a look-around or a back-reference is a `400` naming the field.

## TCP

TCP port connectivity + optional payload match.

- **Type value** (`type` field): `tcp`
- **Target**: host:port — e.g. `example.com:443`; an IPv6 address goes in brackets, `[2001:db8::1]:443`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Slow TCP Connect — `metrics['tcp.connect_time_ms'] > 1000` (warning)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Connect time (ms) | `tcp_connect` | `>` | `1000` | warning |
| TLS handshake time (ms) | `metrics['tcp.tls_handshake_time_ms']` | `>` | `1000` | warning |
| Response regexp match (1=yes) | `metrics['tcp.expect_match_regexp']` | `==` | `0` | critical |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `tls` | boolean | — |
| `timeoutSeconds` | number | Per-check timeout in seconds |
| `query` | string | Text to send after connecting; the reply feeds `expectMatchRegexp`. Escapes: `\r` `\n` `\t`, `\\` for a backslash, `\xHH` for one byte (00–FF). Stored as sent |
| `queryBase64` | string | Bytes to send after connecting, as standard padded base64 (alternative to `query`; wins when both are set); anything else is a `400` |
| `expectMatchRegexp` | string | Regexp the reply must match — drives the *Response Must Match* rule |

## Port monitor

One host and a port policy: ports that must be open and ports that must be
closed. Each check connects to every port of the policy once and reports it
as open, closed (the host refused the connection) or filtered (no answer
before the timeout).

- **Type value** (`type` field): `ports`
- **Target**: hostname or IP address, without a port — e.g. `example.com`.
  A `host:port`, a URL or a bracketed address is a `400` that names the host
  to send; the ports go in `config.open` and `config.closed`.
- **Locations**: leave `locations` out. WatchFor places the check on its own
  network (not on the cloud probe locations); ids that are sent are replaced,
  and none of the plan's location choices is spent.
- **Interval**: 5 minutes (`300`) at the fastest, on every plan.
- **Plans**: paid plans, with a per-plan limit on the ports one monitor may
  check — `max_ports_per_monitor` on [`GET /v1/plan`](/docs/api/plan): the
  distinct ports of both lists together, every port of a range counted. Over
  the limit the create or update is a `403` that names both numbers, and so
  is a create on a plan without Port monitors. A Port monitor counts as one
  monitor in the plan's monitor total.

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Required port not open — `metrics['ports.missing_open'] >= 1` (critical, three checks in a row)
- Forbidden port open — `metrics['ports.unexpected_open'] >= 1` (critical, on the first check)

A check succeeds whenever it ran: a port in the wrong state is a metric,
never `success == false`. A check that could not run (the hostname did not
resolve, or it did not finish in time) carries no `ports.*` metrics, so it
can neither open nor resolve the two port rules. A must-be-closed port passes
when it is closed or filtered; a must-be-open port is tried twice within a
check before it counts as not open. *Host not responding*
(`metrics['ports.host_responded'] == 0`, warning) is not created by default:
add it when the policy has no must-be-open port, where a host that is down
would otherwise pass.

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Required ports not open | `metrics['ports.missing_open']` | `>=` | `1` | critical |
| Forbidden ports open | `metrics['ports.unexpected_open']` | `>=` | `1` | critical |
| Host responded on any port (1=yes) | `metrics['ports.host_responded']` | `==` | `0` | warning |
| Open ports | `metrics['ports.open_count']` | `>` | `3` | warning |
| Closed ports (refused) | `metrics['ports.closed_count']` | `<` | `1` | warning |
| Filtered ports (no answer) | `metrics['ports.filtered_count']` | `>` | `0` | warning |
| Ports checked | `metrics['ports.checked_count']` | `<` | `1` | warning |
| Scan time (ms) | `metrics['ports.scan_time_ms']` | `>` | `30000` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `open` | array | Ports that must be open: ports and ranges as text (`"22, 80, 443"`) or a list (`["22", "443", "8000-8100"]`). Stored sorted, with overlapping ranges joined. At least one port in `open` or `closed` |
| `closed` | array | Ports that must be closed, same format; closed or filtered (no answer) both pass. A port in both lists must be open, so `closed: "1-100"` with `open: "22, 80"` means that of ports 1–100 only 22 and 80 may answer. The distinct ports of both lists together count against the plan's `max_ports_per_monitor` (at most 1,024 on any plan) |
| `banners` | boolean | Read the first line an open port sends (an SSH or SMTP greeting), shown with the port. Default `true`; nothing is sent to the port |
| `timeout_s` | number | Seconds to wait for one connection, `1`–`5`. Default `3` |
| `authorized` | boolean | **Required, must be `true`**: you own this host or have permission to check its ports. Without it the create is a `400`. Send it again in the request that changes `target`; a monitor created with `cloneFromMonitorId` does not inherit it. Recorded in the Activity Log, never sent to the check |

```json
{
  "name": "db-01 ports",
  "type": "ports",
  "target": "db-01.example.com",
  "interval": 300,
  "config": {
    "open": "22, 443",
    "closed": "3306, 5432, 6379, 8000-8010",
    "authorized": true
  }
}
```

`authorized` is the host owner's statement, not a switch to flip: an
integration or an AI agent must ask the person it acts for and never set it
on its own initiative. Checks are plain TCP connects, at most 25 connections
to the host at a time; UDP ports are not checked. More in
[Network → Port monitor](/docs/monitors/network#port-monitor).

## gRPC

One gRPC endpoint, checked from your locations: a health check
(`grpc.health.v1.Health/Check`, `config.mode: "health"`) or one unary call
to any method described through server reflection (`config.mode: "call"`,
with JSONPath assertions on the response). A check passes when the call
completes with one of `config.accept_codes`; a health status other than
`config.expect_health`, a failed assertion and a changed service list are
separate alert metrics. Every check also reports the connect, TLS and RPC
time, the TLS certificate's expiry and whether the status came from the gRPC
server or from a proxy answering plain HTTP.

- **Type value** (`type` field): `grpc`
- **Target**: host:port, without a scheme — e.g. `grpc.example.com:443`; an
  IPv6 address goes in brackets, `[2001:db8::1]:443`. A scheme
  (`grpc://`, `https://`), a path or a missing port is a `400` that says
  what to send; TLS is `config.tls`, the method of a call is `config.method`.
- **Plans**: every plan. A gRPC monitor is one monitor in the plan's monitor
  total and runs from the locations you choose, at the plan's intervals.

**Default alert rules** (created automatically; which ones depends on the
settings):

- Availability Check — `success == false` (critical)
- Service not serving — `metrics['grpc.health_ok'] == 0` (critical; health mode)
- Assertion failed — `metrics['grpc.assertions_failed'] >= 1` (critical; call mode)
- Certificate expiring — `metrics['grpc.ssl_days_until_expiry'] < 14` (warning; with `tls: true`)
- Service list changed — `metrics['grpc.services_changed'] >= 1` (warning, on the first check; with `track_services: true`)

`success == false` covers everything short of an accepted answer: the host
name did not resolve, the connection or the TLS handshake failed, the server
did not agree to HTTP/2, the endpoint did not answer in gRPC, the deadline
passed, or the call ended with a status code that is not accepted. A health
status, an assertion and the service list never fail the check; they are
the metrics below. A save that turns off what a rule reads (the mode
changes, TLS is turned off, tracking stops) releases that rule's open
incident; the rule stays and judges again once the setting is back. *Slow response*
(`metrics['grpc.rpc_time_ms'] > 1000`, warning) is not created by default.
An incident closes after three healthy checks, the Service list changed
incident after one (the list matches again, or the new list is accepted).

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Health status is the expected one (1=yes) | `metrics['grpc.health_ok']` | `==` | `0` | critical |
| Health status (0 UNKNOWN, 1 SERVING, 2 NOT_SERVING, 3 SERVICE_UNKNOWN) | `metrics['grpc.health_status']` | `!=` | `1` | critical |
| Assertions failed | `metrics['grpc.assertions_failed']` | `>=` | `1` | critical |
| Assertions evaluated | `metrics['grpc.assertions_total']` | `<` | `1` | warning |
| RPC time (ms) | `metrics['grpc.rpc_time_ms']` | `>` | `1000` | warning |
| Connect time (ms) | `metrics['grpc.connect_time_ms']` | `>` | `1000` | warning |
| TLS handshake time (ms) | `metrics['grpc.tls_handshake_time_ms']` | `>` | `1000` | warning |
| Total check time (ms) | `metrics['grpc.total_time_ms']` | `>` | `3000` | warning |
| Days until certificate expiry | `metrics['grpc.ssl_days_until_expiry']` | `<` | `14` | warning |
| Service list differs from the accepted list (1=yes) | `metrics['grpc.services_changed']` | `>=` | `1` | warning |
| Accepted services missing | `metrics['grpc.services_missing']` | `>=` | `1` | warning |
| Services not in the accepted list | `metrics['grpc.services_added']` | `>=` | `1` | warning |
| Services listed | `metrics['grpc.services_count']` | `<` | `1` | warning |
| gRPC status code (0 OK … 16 UNAUTHENTICATED) | `metrics['grpc.status_code']` | `!=` | `0` | critical |
| Status code is an accepted one (1=yes) | `metrics['grpc.status_accepted']` | `==` | `0` | critical |
| HTTP status of a non-gRPC answer | `metrics['grpc.http_status']` | `>=` | `500` | critical |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `mode` | enum | `health` (default) calls `grpc.health.v1.Health/Check`; `call` makes one unary call to `config.method` |
| `tls` | boolean | Connect over TLS, offering ALPN `h2`. Default `true`. `false` = plaintext HTTP/2 with prior knowledge; the TLS options below are then a `400` |
| `tls_skip_verify` | boolean | Do not verify the server certificate (its expiry is still read). Default `false`. Turning it on requires any secret metadata value again in the same request |
| `server_name` | string | SNI and the name the certificate must be valid for; default: the target host |
| `authority` | string | The `:authority` of the call; default: the target host:port |
| `ca_pem` | string | Extra trusted CA certificates in PEM form (a private CA). Not a secret |
| `client_cert_pem` | string | Client certificate for mutual TLS, in PEM form. Needs `client_key` |
| `client_key` | string | **secret** — the private key of the client certificate (PEM, without a passphrase). Needs `client_cert_pem`. Write-only, stored encrypted; reads return `"[redacted]"`. On update omit it, send `""` or `"[redacted]"` to keep the stored value, `null` to remove it; a changed target, TLS turned off or verification turned off requires it again in the same request |
| `metadata` | array | `{ key, value, secret }` rows sent with every call of the check, at most 32. Keys are lower case (`a-z`, `0-9`, `_ - .`); `grpc-*` and `content-type` are reserved. A row with `secret: true` is write-only and stored encrypted: reads return `"[redacted]"`, `"[redacted]"` or `""` keeps the stored value of that key, and a changed target (or TLS or verification turned off) requires the value again. `secret` left out follows the key's name (`authorization`, `x-api-key` … are secret) |
| `timeout_s` | number | Deadline of the whole check (connect, TLS and the RPC) in seconds, `1`–`30`. Default `10` |
| `accept_codes` | array | gRPC status code names that count as the expected answer; default `["OK"]`. `["UNAUTHENTICATED"]` monitors an endpoint that must refuse anonymous calls. Names: `OK`, `CANCELLED`, `UNKNOWN`, `INVALID_ARGUMENT`, `DEADLINE_EXCEEDED`, `NOT_FOUND`, `ALREADY_EXISTS`, `PERMISSION_DENIED`, `RESOURCE_EXHAUSTED`, `FAILED_PRECONDITION`, `ABORTED`, `OUT_OF_RANGE`, `UNIMPLEMENTED`, `INTERNAL`, `UNAVAILABLE`, `DATA_LOSS`, `UNAUTHENTICATED`. Only a status the gRPC server sent can be accepted: one derived from a proxy's HTTP answer, or the check's own deadline, never is |
| `service` | string | Health mode: the service name to ask the health service about; `""` or left out = the server as a whole |
| `expect_health` | enum | Health mode: `SERVING` (default), `NOT_SERVING` or `any` — anything else sets `grpc.health_ok` to `0` |
| `method` | string | Call mode, required: the unary method as `package.Service/Method`. Its request and response types are read through server reflection (`grpc.reflection.v1`, then `v1alpha`); streaming methods are refused |
| `request_json` | string | Call mode: the request message as one JSON object (protojson); default `"{}"` |
| `assertions` | array | Call mode: `{ path, op, value }` rows evaluated on the response rendered as JSON, at most 50. `path` is a JSONPath in dot form — `$.status`, `$.items.0.name` (an index is `.0`, not `[0]`); field names are camelCase and default values are included. `op` is one of `eq`, `ne`, `contains`, `exists`, `gt`, `lt`, `regex`; leave `value` out for `exists`. A failed assertion raises `grpc.assertions_failed`, it does not fail the check |
| `track_services` | boolean | List the server's services through reflection on every check and compare them with the accepted list (`grpc.services_changed`). Default `false`. The first successful check records the list |
| `services_baseline` | array | Read-only: the accepted service list, recorded from the first check and replaced when an owner or admin accepts a changed list on the monitor page. A value sent here is ignored |

```json
{
  "name": "orders API health",
  "type": "grpc",
  "target": "orders.example.com:443",
  "locations": ["<location id>"],
  "config": {
    "mode": "health",
    "service": "acme.orders.v1.Orders",
    "track_services": true
  }
}
```

A unary call that must return `"status": "ok"`, with a bearer token kept
encrypted:

```json
{
  "name": "orders API call",
  "type": "grpc",
  "target": "orders.example.com:443",
  "locations": ["<location id>"],
  "config": {
    "mode": "call",
    "method": "acme.orders.v1.Orders/GetStatus",
    "request_json": "{}",
    "assertions": [{ "path": "$.status", "op": "eq", "value": "ok" }],
    "metadata": [
      { "key": "authorization", "value": "Bearer <token>", "secret": true }
    ]
  }
}
```

Unary calls only: server-streaming, client-streaming and bidirectional
methods are refused. A call and service tracking need server reflection; a
health check does not. There is no `.proto` upload yet, and gRPC-Web and
Connect endpoints are not checked. More in
[Network → gRPC](/docs/monitors/network#grpc).

## DNS

Resolve a record and check answers + timing.

- **Type value** (`type` field): `dns`
- **Target**: domain name — e.g. `example.com`. For `PTR` an IP address (a hostname is resolved first and each address looked up in reverse); for `SRV` the service name, e.g. `_sip._tcp.example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Slow DNS Lookup — `metrics['dns.check_time_ms'] > 1000` (warning)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Lookup time (ms) | `dns_time` | `>` | `1000` | warning |
| Answer count | `metrics['dns.answers_count']` | `==` | `0` | warning |
| Error count | `metrics['dns.error_count']` | `>` | `0` | critical |
| Expected value match (1=yes) | `metrics['dns.expected_match']` | `==` | `0` | critical |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `queryType` | enum | one of: `A`, `AAAA`, `CNAME`, `MX`, `NS`, `TXT`, `SOA`, `SRV`, `PTR`, `CAA`; default `A` |
| `resolver` | string | Custom resolver: a public IP, optionally with a port (`1.1.1.1`, `1.1.1.1:53`, `[2606:4700:4700::1111]:53`). Hostnames and private addresses are refused; empty = the prober's resolver |
| `captureRecords` | boolean | — |
| `timeoutSeconds` | number | Per-check timeout in seconds |
| `expectedValues` | array | Expected answers for the *Expected DNS Records* rule (`dns.expected_match`): addresses for A/AAAA, hosts for NS/MX, values for TXT/CNAME/PTR/CAA, target host for SRV |
| `matchMode` | enum | `any_exact` (default), `any_regex`, `any_contains`, `none_contains` (value must NOT appear) |

Expected-value matching (the *Expected DNS Records* rule) compares against the
address (`A`/`AAAA`), host (`NS`, `MX`), value (`TXT`, `CNAME`, `PTR`, `CAA`),
target host (`SRV`) or primary name server / mailbox / serial (`SOA`) of each
answer. See the
[value format per record type](/docs/monitors/network#dns).

## HTTP / HTTPS

Monitor a web page or HTTP endpoint.

- **Type value** (`type` field): `http`
- **Target**: https URL — e.g. `https://example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Unexpected Status Code — `status_code not_in_groups ["2xx", "3xx"]` (critical)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| HTTP status code | `status_code` | `not_in_groups` | `["2xx","3xx"]` | critical |
| Response time (ms) | `response_time` | `>` | `2000` | warning |
| Body keyword / regexp match (1 = ok, 0 = failed) | `http.body_regexp_match` | `==` | `0` | critical |
| SSL days until expiry | `ssl_expiry` | `<` | `14` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `method` | enum | one of: `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `HEAD`, `OPTIONS`; default `GET` |
| `followRedirects` | boolean | default `true` |
| `authType` | enum | one of: `none`, `basic`, `digest`, `bearer`; default `none` |
| `authUsername` | string | — |
| `authPassword` | string | **secret** (returned redacted) |
| `bearerToken` | string | **secret** (returned redacted) |
| `requestBody` | string | Redacted on read (`"[redacted]"`); send `"[redacted]"` back to keep the stored body. Not encrypted — put a token it carries in an org secret and reference it as `{{NAME}}` |
| `requestHeaders` | array | `Array of { key, value }` |
| `timeoutSeconds` | number | Per-check timeout in seconds, 1–120; default `30` |
| `failIfBodyMatchesRegexp` | string or string[] | Regexp(s) that must NOT appear in the body; when one does, `http.body_regexp_match` becomes `0` |
| `failIfBodyNotMatchesRegexp` | string or string[] | Regexp(s) the body MUST contain; when one is missing, `http.body_regexp_match` becomes `0` |
| `keywordValue` | string | The dashboard's keyword instead of a regexp: text the body must (`keywordMode: contains`) or must not (`not_contains`) contain. Compiled into `failIfBodyNotMatchesRegexp` / `failIfBodyMatchesRegexp` like the Response Body Match card; `""` or `null` removes the body match. Sent with a regexp that says something else it is a `400` |
| `keywordMode` | enum | one of: `contains`, `not_contains`; default `contains` |
| `keywordPatternType` | enum | one of: `text` (whitespace matches any run of it), `wildcard` (`*` and `?`), `regex` (used as typed); default `text` |
| `keywordCaseInsensitive` | boolean | Text / wildcard: ignore case; default `true` |
| `transportMode` | enum | `auto` (default), `tcp` (HTTP/1.1 or HTTP/2 over TCP) or `http3` (QUIC) |
| `expiryReminderDays` | array | Whole days (1–365, up to 5), e.g. `[14, 3]`: re-send an open, unacknowledged certificate-expiry incident's notification once when that many days are left; omit or `null` for none — see [reminders](/docs/monitors/certificates#reminders-before-expiry) |

Body-match keys only set the metric — the check itself still succeeds — so
pair them with a rule on `http.body_regexp_match == 0` (the dashboard's
keyword rule does exactly that).

## SSL / TLS

Certificate expiry, chain, hostname + TLS version.

- **Type value** (`type` field): `ssl`
- **Target**: domain or host:port — e.g. `example.com:443`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- SSL Expiry Warning — `metrics['ssl.days_until_expiry'] < 14` (warning)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Days until expiry | `metrics['ssl.days_until_expiry']` | `<` | `14` | warning |
| Hostname match (1=yes) | `metrics['ssl.hostname_match']` | `==` | `0` | critical |
| Chain valid (1=yes) | `metrics['ssl.chain_valid']` | `==` | `0` | critical |
| TLS version (12 = 1.2) | `metrics['ssl.tls_version']` | `<` | `12` | warning |
| TLS grade score (A+=6, A=5, B=4, C=3, F=0) | `metrics['tlsgrade.grade_score']` | `<` | `5` | warning |

The TLS grade metric is only populated when the plan includes TLS grading
(`allow_ssl_grade` in [`GET /v1/plan`](/docs/api/plan)) and the monitor has `trackTlsGrade` on — the default for
new SSL monitors on those plans when the key is omitted; on other plans the
flag is ignored. The metric is present on the one check an hour that carries
the grade scan (and on every Run check now), not on every check, so rules on it
are evaluated then. `"< 5"` fires when the grade drops below A.

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `insecure` | boolean | — |
| `port` | number | — |
| `serverName` | string | — |
| `trackTlsGrade` | boolean | Hourly TLS grade (plan-gated). Defaults to `true` on plans that include it when omitted; `false` skips the grade scan. Enables the `tlsgrade.grade_score` metric |
| `timeoutSeconds` | number | Per-check timeout in seconds |
| `expiryReminderDays` | array | Whole days (1–365, up to 5), e.g. `[14, 3]`: re-send an open, unacknowledged certificate-expiry incident's notification once when that many days are left; omit or `null` for none — see [reminders](/docs/monitors/certificates#reminders-before-expiry) |

## UDP

UDP query + response match, with optional per-check packet loss and jitter
from a short train of packets (`packetLoss`).

- **Type value** (`type` field): `udp`
- **Target**: host:port — e.g. `example.com:53`; an IPv6 address goes in brackets, `[2001:db8::1]:53`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Response received (1=yes) | `metrics['udp.response_received']` | `==` | `0` | warning |
| First byte time (ms) | `metrics['udp.first_byte_time_ms']` | `>` | `500` | warning |
| Response regexp match (1=yes) | `metrics['udp.expect_match_regexp']` | `==` | `0` | critical |
| Bytes received | `metrics['udp.bytes_received']` | `<` | `1` | warning |
| Packet loss (%) | `metrics['udp.packet_loss_percent']` | `>=` | `20` | warning |
| Jitter (ms) | `metrics['udp.jitter_ms']` | `>` | `30` | warning |

`udp.packet_loss_percent` is unanswered ÷ sent over the check's packet train
and is reported only with `packetLoss` on, on checks that got an answer and
were not rate-limited or held to one packet by the per-destination limit —
when nothing answers the check is down (`success == false`). `udp.jitter_ms` is the mean absolute
difference between the round trips of consecutive answered packets after the
first answered one (needs three answers). `udp.first_byte_time_ms` stays the
round trip of the first answered packet. See [packet loss and jitter](/docs/monitors/network#packet-loss-and-jitter).

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `query` | string | Payload to send |
| `timeoutSeconds` | number | Per-check timeout in seconds |
| `queryBase64` | string | Binary payload as base64 (alternative to `query`); must be standard padded base64, anything else is a `400` |
| `expectMatchRegexp` | string | Regexp the reply must match — drives the *Response Must Match* rule |
| `packetLoss` | boolean | Measure packet loss and jitter: each check sends a train of `packetCount` packets and is up when any of them is answered. Absent or `false` = one packet per check, as before. New monitors are created with it on unless you send `false` |
| `packetCount` | number | Packets per check with `packetLoss` on (3–10); default `5` |
| `packetSpacingMs` | number | Gap between those packets in ms (100–500); default `150` |

A check needs something to send: set `query` or `queryBase64`. UDP has no
handshake, so a reply is the only proof the service is there — a monitor
with neither key is refused (`400` naming `config.query`), on create and on
an update that would remove both.

An organization can have at most 20 UDP and game monitors on the same
`host:port`; a create, update or import past that is refused with a `400`
that says so.

## ICMP (Ping)

Host reachability + packet loss + latency.

- **Type value** (`type` field): `icmp`
- **Target**: domain or IP — e.g. `example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Packet loss (%) | `packet_loss` | `>=` | `50` | warning |
| Ping average (ms) | `ping_avg` | `>` | `200` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `count` | number | Pings per check, 1–10. Omitted on create: 3 (older monitors without it send 1) |
| `packetSize` | number | Payload bytes, 0–1472 (0 = the default 56) |
| `timeoutSeconds` | number | Per-check timeout in seconds |

## MTR (Traceroute)

Per-hop path analysis to a destination.

- **Type value** (`type` field): `mtr`
- **Target**: domain or IP — e.g. `example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Destination Unreachable — `metrics['mtr.destination_reached'] == 0` (critical)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Destination reached (1=yes) | `metrics['mtr.destination_reached']` | `==` | `0` | critical |
| Destination loss (%) | `metrics['mtr.destination_loss_percent']` | `>=` | `5` | warning |
| Destination RTT (ms) | `metrics['mtr.rtt_avg_ms']` | `>` | `250` | warning |
| Max path loss (%) | `metrics['mtr.path_loss_max_percent']` | `>` | `10` | warning |
| Unresponsive hops | `metrics['mtr.unresponsive_hops_count']` | `>` | `3` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `count` | number | Probes per hop, 1–10. Omitted on create: 3 (older monitors without it send 1) |
| `maxHops` | number | Hops to trace, 1–64 |
| `port` | number | — |
| `protocol` | enum | one of: `icmp`, `udp`, `tcp`; default `icmp` |
| `packetSize` | number | Bytes per probe, IP and protocol headers included, 1–9000 (omit for mtr's default 64; a larger new value is a `400` — mtr can't send it) |
| `timeoutSeconds` | number | Per-check timeout in seconds |

## Sitemap

Crawl a sitemap.xml and check for broken URLs.

- **Type value** (`type` field): `sitemap`
- **Target**: https URL — e.g. `https://example.com/sitemap.xml`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Sitemap Missing — `metrics['sitemap.found'] == 0` (critical)
- Broken URL Ratio — `metrics['sitemap.broken_percent'] > 20` (warning)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Sitemap found (1=yes) | `metrics['sitemap.found']` | `==` | `0` | critical |
| Broken URLs (%) | `metrics['sitemap.broken_percent']` | `>` | `20` | warning |
| Broken URL count | `metrics['sitemap.broken_urls']` | `>` | `5` | warning |
| Total URL count | `metrics['sitemap.url_count']` | `<` | `10` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `checkUrlCount` | number | Listed URLs requested per check, from the top of the sitemap, 0–50 (`0` checks the sitemap itself only) — default `50` when omitted |
| `captureBrokenUrls` | boolean | Keep each broken URL's address, status and error — default `true` when omitted |
| `timeoutSeconds` | number | Per-check timeout in seconds |

## Favicon

Check a site's favicon is served correctly.

- **Type value** (`type` field): `favicon`
- **Target**: https URL — e.g. `https://example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Favicon Missing — `metrics['favicon.found'] == 0` (warning)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Favicon found (1=yes) | `metrics['favicon.found']` | `==` | `0` | warning |
| Content-type match (1=yes) | `metrics['favicon.content_type_match']` | `==` | `0` | warning |
| Favicon size (bytes) | `metrics['favicon.bytes']` | `<` | `100` | warning |
| Favicon changed (1=yes) | `metrics['favicon.changed']` | `==` | `1` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `timeoutSeconds` | number | Per-check timeout in seconds |

## CDN

Watch how a URL is delivered: which CDN fronts it, whether the edge is
really caching it, and how fast it answers.

- **Type value** (`type` field): `cdn`
- **Target**: https URL — e.g. `https://example.com/static/app.js`. Give it
  the URL you care about, not just the hostname: caching rules are set per
  path far more often than per host.

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- CDN Not Detected — `metrics['cdn.detected'] == 0` (warning)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| CDN detected (1=yes) | `metrics['cdn.detected']` | `==` | `0` | warning |
| Provider match (1=yes) | `metrics['cdn.provider_match']` | `==` | `0` | warning |
| Cache hit ratio (0-1) | `metrics['cdn.cache_hit_ratio']` | `<` | `0.5` | warning |
| Time to first byte (ms) | `metrics['cdn.ttfb_ms']` | `>` | `1000` | warning |
| HTTP status code | `metrics['cdn.status_code']` | `>=` | `400` | critical |

`cdn.cache_hit_ratio` is only emitted when the edge published a cache
verdict, so a rule on it stays silent for providers that publish none
rather than firing constantly. A `DYNAMIC` or `BYPASS` verdict *is* an
answer and counts as a non-hit, so a deliberately uncacheable URL sits at 0
forever — put hit-ratio rules on assets you expect to be cached.

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `timeoutSeconds` | number | Per-check timeout in seconds |
| `expectedProvider` | string | Provider the *Provider Must Be* rule expects (e.g. `cloudflare`); compared case-insensitively with the detected provider |
| `trackCache` | boolean | Measure cache behaviour by making two sequential requests per check instead of one, which is what makes `cdn.cache_hit_ratio` available. On unless explicitly set to `false` |

## Brotli

Check Brotli compression support.

- **Type value** (`type` field): `brotli`
- **Target**: https URL — e.g. `https://example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Brotli Not Supported — `metrics['brotli.supported'] == 0` (warning)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Brotli supported (1=yes) | `metrics['brotli.supported']` | `==` | `0` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `timeoutSeconds` | number | Per-check timeout in seconds |

## Breach

Watch a domain for newly reported data breaches.

- **Type value** (`type` field): `breach`
- **Target**: domain — e.g. `example.com` (a bare URL such as
  `https://example.com` is accepted too; only its host is used — a URL with a
  path is a `400`, the path was never checked). `ipVersion` is ignored: the check reads a public breach
  catalog rather than connecting to the domain.

**Default alert rules** (created automatically):

- New Breach Within Window — `metrics['breach.last_added_age_hours'] < 48` (critical)

No Availability Check is seeded: a failed check means the breach feed could
not be fetched or the domain did not resolve — a lookup problem, not a
breach. A `success == false` rule can still be created (it is the optional
**Probe Status** preset in the dashboard).

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Hours since newest breach | `metrics['breach.last_added_age_hours']` | `<` | `48` | critical |

**Config fields:** none of its own — only the [keys every type accepts](#config-keys-every-type-accepts).
The lookup's timeout is fixed (30 seconds): a create or update that sets
`timeoutSeconds` is a `400`. A value stored before that keeps working and
can be removed with `null`.

## Safe Browsing

Alert when a URL is on Google's lists of unsafe sites (malware, deceptive
site, unwanted software) — the lists behind the full-page browser warning.

- **Type value** (`type` field): `safe_browsing`
- **Target**: https URL — e.g. `https://example.com` (`http` works too). The
  URL is looked up as sent; nothing is fetched from the site.
- **Locations**: leave `locations` out. WatchFor places the check itself (the
  answer is the same from anywhere); ids that are sent are replaced.
- **Interval**: 6 hours (`21600`) at the fastest, on every plan. A create
  without `interval` gets 6 hours.
- **Plans**: paid plans, with a per-plan number of monitors of this type
  (`403` when the plan does not include another one).

**Default alert rules** (created automatically):

- Listed by Google Safe Browsing — `metrics['safe_browsing.listed'] >= 1` (critical)

No Availability Check is seeded: a failed check means the lookup did not run
(Google's service or our quota) — it says nothing about the URL. A failed
check carries no `safe_browsing.*` metrics, so it can neither open nor
resolve the rule above. A `success == false` rule can still be created (the
optional **Lookup Status** preset in the dashboard).

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Listed by Google (1=yes) | `metrics['safe_browsing.listed']` | `>=` | `1` | critical |
| On the malware list (1=yes) | `metrics['safe_browsing.malware']` | `>=` | `1` | critical |
| On the deceptive-site list (1=yes) | `metrics['safe_browsing.social_engineering']` | `>=` | `1` | critical |
| On the unwanted-software list (1=yes) | `metrics['safe_browsing.unwanted_software']` | `>=` | `1` | critical |

**Config fields:** none of its own — only the [keys every type accepts](#config-keys-every-type-accepts).

Advisory provided by Google
([about the advisory](https://cloud.google.com/web-risk/docs/advisory)).
"Not listed" is not a guarantee that a site is safe, and a listing may be an
error. More in [Security → Safe Browsing](/docs/monitors/security#safe-browsing).

## CMS

Detect the CMS powering a site.

- **Type value** (`type` field): `cms`
- **Target**: https URL — e.g. `https://example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| CMS detected (1=yes) | `metrics['cms.detected']` | `==` | `0` | warning |
| Provider match (1=yes) | `metrics['cms.provider_match']` | `==` | `0` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `timeoutSeconds` | number | Per-check timeout in seconds |
| `expectedCms` | string | Platform the *Provider Must Be* rule expects (e.g. `wordpress`); compared case-insensitively with the detected CMS |

## SMTP

Mail server connectivity, relay + STARTTLS checks.

- **Type value** (`type` field): `smtp`
- **Target**: hostname (the port goes in config.port) — e.g. `mail.example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Open Relay Detected — `metrics['smtp.open_relay'] == 1` (critical)
- Certificate Expiring — `metrics['smtp.cert_days_left'] < 14` (warning)
- With a `username` (authenticated submission) also: Login Failed — `metrics['smtp.auth_ok'] == 0` (critical)

The login metrics (`smtp.auth_ok`, `smtp.auth_ms`) are reported only by authenticated checks (a `username` is set); those checks skip the open-relay test. The certificate and TLS metrics (`smtp.tls_version`, `smtp.tls_time_ms`, `smtp.cert_days_left`, `smtp.cert_valid`) are reported by every check that negotiates TLS — implicit TLS on 465, STARTTLS when the server offers it — with or without a login; a banner check never fails on the certificate, it only reports it.

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Connect time (ms) | `metrics['smtp.connect_time_ms']` | `>` | `1000` | warning |
| Open relay (1=yes) | `metrics['smtp.open_relay']` | `==` | `1` | critical |
| STARTTLS supported (1=yes) | `metrics['smtp.tls_supported']` | `==` | `0` | warning |
| PTR valid (1=yes) | `metrics['smtp.ptr_valid']` | `==` | `0` | warning |
| Banner match (1=yes) | `metrics['smtp.banner_match']` | `==` | `0` | warning |
| Login OK (1=yes; only with a username) | `metrics['smtp.auth_ok']` | `==` | `0` | critical |
| Login time (ms) | `metrics['smtp.auth_ms']` | `>` | `2000` | warning |
| Certificate days left (-1 = no TLS) | `metrics['smtp.cert_days_left']` | `<` | `14` | warning |
| Certificate valid (1=yes) | `metrics['smtp.cert_valid']` | `==` | `0` | warning |
| TLS version (0 = no TLS) | `metrics['smtp.tls_version']` | `<` | `1.2` | warning |
| TLS handshake (ms) | `metrics['smtp.tls_time_ms']` | `>` | `1000` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `port` | number | Server port (default 25 for the banner/relay check). With a `username` set it is required: 587 (STARTTLS) or 465 (implicit TLS) — 25 is refused for logins |
| `timeoutSeconds` | number | Per-check timeout in seconds |
| `checkOpenRelay` | boolean | Test whether the server relays mail for foreign domains (*Open Relay* rule) |
| `checkPtr` | boolean | Verify the server IP has a matching reverse-DNS (PTR) record (*PTR* rule) |
| `username` | string | Optional submission login (SMTP AUTH after TLS). Requires port 587 or 465 — never 25 |
| `password` | string | **secret** (write-only, stored encrypted). Submission password (required with a username; a password without a `username` is a `400`) |
| `tlsMode` | enum | With a username: `starttls` (587, default) or `implicit` (465). Without a username it means nothing (the banner check speaks TLS on 465 and upgrades when the server offers STARTTLS) and is dropped, listed in `ignored_config_keys` |
| `verifyTls` | boolean | With a username: fail when the certificate does not verify; default `true`. Dropped without a username, like `tlsMode` |

## IMAP

Mailbox server check: greeting, TLS and certificate, login, mailbox, folders and quota.

- **Type value** (`type` field): `imap`
- **Target**: hostname — e.g. `imap.example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Certificate Expiring — `metrics['imap.cert_days_left'] < 14` (warning)
- With a `username` also: Login Failed — `metrics['imap.auth_ok'] == 0` (critical), Mailbox Almost Full — `metrics['imap.quota_used_pct'] >= 90` (warning), Mailbox Full — `metrics['imap.quota_used_pct'] >= 99` (critical)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Check failed — connection, TLS or login (count) | `metrics['imap.error_count']` | `>` | `0` | critical |
| Login OK (1=yes; only when a username is set) | `metrics['imap.auth_ok']` | `==` | `0` | critical |
| Certificate days left (-1 = no TLS) | `metrics['imap.cert_days_left']` | `<` | `14` | warning |
| Certificate valid (1=yes) | `metrics['imap.cert_valid']` | `==` | `0` | warning |
| TLS version (1.0–1.3; 0 = no TLS) | `metrics['imap.tls_version']` | `<` | `1.2` | warning |
| Login offered without encryption (1=yes) | `metrics['imap.plaintext_login_allowed']` | `==` | `1` | warning |
| STARTTLS offered on the plain port (1=yes) | `metrics['imap.starttls_offered']` | `==` | `0` | warning |
| Total check time (ms) | `metrics['imap.check_time_ms']` | `>` | `5000` | warning |
| Connect time (ms) | `metrics['imap.connect_time_ms']` | `>` | `1000` | warning |
| TLS handshake (ms) | `metrics['imap.tls_time_ms']` | `>` | `1000` | warning |
| Server greeting (ms) | `metrics['imap.greeting_ms']` | `>` | `2000` | warning |
| Login time (ms) | `metrics['imap.auth_ms']` | `>` | `2000` | warning |
| Messages in the mailbox | `metrics['imap.messages']` | `>` | `10000` | warning |
| Age of the newest message (s) | `metrics['imap.newest_message_age_s']` | `>` | `86400` | warning |
| Unseen messages | `metrics['imap.unseen']` | `>` | `1000` | warning |
| Folders | `metrics['imap.folders']` | `<` | `1` | warning |
| Mailbox open time (ms) | `metrics['imap.select_ms']` | `>` | `2000` | warning |
| Mailbox quota used (%) — the higher of storage and message count; only when the server reports a quota | `metrics['imap.quota_used_pct']` | `>=` | `90` | warning |
| Mailbox size (bytes) — the quota's used storage, else STATUS SIZE | `metrics['imap.mailbox_bytes']` | `>` | `524288000` | warning |
| Quota storage used (bytes) | `metrics['imap.quota_used_bytes']` | `>` | `524288000` | warning |
| Quota storage limit (bytes; absent when unlimited) | `metrics['imap.quota_limit_bytes']` | `<` | `104857600` | warning |
| Server reports a quota (1=yes) | `metrics['imap.quota_supported']` | `==` | `0` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `port` | number | Server port (default 993 for implicit TLS, 143 for STARTTLS / none) |
| `tlsMode` | enum | `implicit` = TLS from the first byte; `starttls` = upgrade the plain connection; `none` = no encryption (connection-only — credentials are never sent unencrypted); one of: `implicit`, `starttls`, `none`; default `implicit` |
| `verifyTls` | boolean | Fail the check when the certificate does not verify; default `true` |
| `username` | string | Mailbox login. Empty = connection-only check (greeting, TLS, capabilities) |
| `password` | string | **secret** (write-only, stored encrypted). Mailbox password (required with a username). Gmail needs an app password; Microsoft 365 no longer accepts passwords for IMAP |
| `checkNewestAge` | boolean | Read the date of the newest message (no subject or sender is read or stored); default `true` |
| `timeoutSeconds` | number | Per-connection timeout in seconds; default `15` |
| `mailbox` | string | Mailbox to open (read-only EXAMINE); default `"INBOX"` |
| `listFolders` | boolean | List the folders (names and special-use flags); default `true` |
| `ipVersion` | enum | IP version used to reach the target; one of: `any`, `ip4`, `ip6` (`any` = IPv4 first, IPv6 fallback) |

Dashboard guide: [IMAP monitors](/docs/monitors/imap).

## POP3

Mailbox server check: greeting, TLS and certificate, login and mailbox size.

- **Type value** (`type` field): `pop3`
- **Target**: hostname — e.g. `pop.example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Certificate Expiring — `metrics['pop3.cert_days_left'] < 14` (warning)
- With a `username` also: Login Failed — `metrics['pop3.auth_ok'] == 0` (critical)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Check failed — connection, TLS or login (count) | `metrics['pop3.error_count']` | `>` | `0` | critical |
| Login OK (1=yes; only when a username is set) | `metrics['pop3.auth_ok']` | `==` | `0` | critical |
| Certificate days left (-1 = no TLS) | `metrics['pop3.cert_days_left']` | `<` | `14` | warning |
| Certificate valid (1=yes) | `metrics['pop3.cert_valid']` | `==` | `0` | warning |
| TLS version (1.0–1.3; 0 = no TLS) | `metrics['pop3.tls_version']` | `<` | `1.2` | warning |
| Login offered without encryption (1=yes) | `metrics['pop3.plaintext_login_allowed']` | `==` | `1` | warning |
| STARTTLS offered on the plain port (1=yes) | `metrics['pop3.stls_offered']` | `==` | `0` | warning |
| Total check time (ms) | `metrics['pop3.check_time_ms']` | `>` | `5000` | warning |
| Connect time (ms) | `metrics['pop3.connect_time_ms']` | `>` | `1000` | warning |
| TLS handshake (ms) | `metrics['pop3.tls_time_ms']` | `>` | `1000` | warning |
| Server greeting (ms) | `metrics['pop3.greeting_ms']` | `>` | `2000` | warning |
| Login time (ms) | `metrics['pop3.auth_ms']` | `>` | `2000` | warning |
| Messages in the mailbox | `metrics['pop3.messages']` | `>` | `10000` | warning |
| Age of the newest message (s) | `metrics['pop3.newest_message_age_s']` | `>` | `86400` | warning |
| Mailbox size (bytes, STAT) — POP3 has no quota | `metrics['pop3.mailbox_bytes']` | `>` | `524288000` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `port` | number | Server port (default 995 for implicit TLS, 110 for STARTTLS / none) |
| `tlsMode` | enum | `implicit` = TLS from the first byte; `starttls` = upgrade the plain connection; `none` = no encryption (connection-only — credentials are never sent unencrypted); one of: `implicit`, `starttls`, `none`; default `implicit` |
| `verifyTls` | boolean | Fail the check when the certificate does not verify; default `true` |
| `username` | string | Mailbox login. Empty = connection-only check (greeting, TLS, capabilities) |
| `password` | string | **secret** (write-only, stored encrypted). Mailbox password (required with a username). Gmail needs an app password; Microsoft 365 no longer accepts passwords for POP3 |
| `checkNewestAge` | boolean | Read the date of the newest message (no subject or sender is read or stored); default `true` |
| `timeoutSeconds` | number | Per-connection timeout in seconds; default `15` |
| `ipVersion` | enum | IP version used to reach the target; one of: `any`, `ip4`, `ip6` (`any` = IPv4 first, IPv6 fallback) |

Dashboard guide: [POP3 monitors](/docs/monitors/pop3).

## Email round-trip

Sends a test message over SMTP submission and finds it in an IMAP/POP3 mailbox: delivery time, inbox vs spam, SPF/DKIM/DMARC, hops.

- **Type value** (`type` field): `email_roundtrip`
- **Target**: hostname of the sending (SMTP submission) server — e.g. `smtp.example.com`

Minimum interval: 300 seconds (every check sends a real message).

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Message Not Delivered — `metrics['roundtrip.delivered'] == 0` (critical, after 2 checks)
- Landed in Spam — `metrics['roundtrip.in_spam'] == 1` (warning, after 2 checks)

SPF / DKIM / DMARC, spam score and antivirus metrics are present only when the receiving server wrote a verdict header.

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Delivered (1=yes) | `metrics['roundtrip.delivered']` | `==` | `0` | critical |
| Delivery time (ms) | `metrics['roundtrip.delivery_ms']` | `>` | `60000` | warning |
| Landed in spam (1=yes) | `metrics['roundtrip.in_spam']` | `==` | `1` | warning |
| SPF pass (1=yes) | `metrics['roundtrip.spf_pass']` | `==` | `0` | warning |
| DKIM pass (1=yes) | `metrics['roundtrip.dkim_pass']` | `==` | `0` | warning |
| DMARC pass (1=yes) | `metrics['roundtrip.dmarc_pass']` | `==` | `0` | warning |
| Spam score | `metrics['roundtrip.spam_score']` | `>` | `5` | warning |
| Relay hops | `metrics['roundtrip.hops']` | `>` | `10` | warning |
| Slowest hop (ms) | `metrics['roundtrip.max_hop_delay_ms']` | `>` | `30000` | warning |
| Every hop encrypted (1=yes) | `metrics['roundtrip.all_hops_tls']` | `==` | `0` | warning |
| Check failed (count) | `metrics['roundtrip.error_count']` | `>` | `0` | critical |
| Send time (ms) | `metrics['roundtrip.send_ms']` | `>` | `10000` | warning |
| Total check time (ms) | `metrics['roundtrip.check_time_ms']` | `>` | `120000` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `smtpPort` | number | Submission port: 587 (STARTTLS) or 465 (implicit TLS); default 587, or 465 when `smtpTlsMode` is `implicit`. 25 is refused; default `587` |
| `smtpTlsMode` | enum | one of: `starttls`, `implicit`; default `starttls` |
| `smtpVerifyTls` | boolean | default `true` |
| `smtpUsername` | string | Sending login (required) |
| `smtpPassword` | string | **secret** (write-only, stored encrypted). Sending password (required) |
| `fromAddress` | string | Envelope + header From (default: the SMTP username); the SMTP login or another address at its domain |
| `toAddress` | string | Mailbox the test message is sent to (required) — the mailbox the check reads, or an alias at its domain |
| `receiveProtocol` | enum | one of: `imap`, `pop3`; default `imap` |
| `receiveHost` | string | IMAP/POP3 server of the receiving mailbox (required) |
| `receivePort` | number | Default 993 (IMAP) / 995 (POP3) for implicit TLS, 143 / 110 for STARTTLS |
| `receiveTlsMode` | enum | one of: `implicit`, `starttls`; default `implicit` |
| `receiveVerifyTls` | boolean | default `true` |
| `receiveUsername` | string | Receiving mailbox login (required unless `receiveSameCredentials`). When it is an address, `toAddress` must be at its domain |
| `receivePassword` | string | **secret** (write-only, stored encrypted). Receiving mailbox password (required unless `receiveSameCredentials`) |
| `receiveSameCredentials` | boolean | Receive with the sending login (username and password); default `false` |
| `mailbox` | string | IMAP only: the folder the message is looked for in; default `"INBOX"`. With `receiveProtocol: "pop3"` (one mailbox, no folders) it is dropped, listed in `ignored_config_keys` |
| `checkSpamFolder` | boolean | IMAP only: also look in the Junk/Spam folder; default `true` |
| `deliveryTimeoutSeconds` | number | How long to wait for the message (10–240 s); default `120` |
| `deleteAfter` | boolean | Delete the test message once found (leftovers older than 1 h are swept anyway); default `true` |
| `timeoutSeconds` | number | Per-connection timeout in seconds; default `15` |

Dashboard guide: [Email round-trip monitors](/docs/monitors/email-round-trip).

## FTP

FTP connect, auth, list, write + speed.

- **Type value** (`type` field): `ftp`
- **Target**: domain, IP or host:port — e.g. `ftp.example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Connection Failed — `metrics['ftp.connect_success'] == 0` (critical)
- Authentication Failed — `metrics['ftp.authentication_success'] == 0` (critical)
- List Failed — `metrics['ftp.list_success'] == 0` (warning)

The listing, write test and speed test run when their rules are on
(`check_list`, `check_write`, `check_speed` in `config` are derived from
them). Set one of those keys over the API and the rules follow it:
`"check_list": false` switches List Failed off (an incident it holds is
resolved), `true` switches it back on.

The write test (`ftp.write_success`) is not seeded — anonymous and mirror FTP accounts are often read-only; enable the *Write Test Failed* preset for writable accounts.

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Connect OK (1=yes) | `metrics['ftp.connect_success']` | `==` | `0` | critical |
| Auth OK (1=yes) | `metrics['ftp.authentication_success']` | `==` | `0` | critical |
| Write OK (1=yes) | `metrics['ftp.write_success']` | `==` | `0` | critical |
| List OK (1=yes) | `metrics['ftp.list_success']` | `==` | `0` | warning |
| Connect time (ms) | `metrics['ftp.connect_time_ms']` | `>` | `2000` | warning |
| Login time (ms) | `metrics['ftp.login_time_ms']` | `>` | `5000` | warning |
| TLS upgrade completed (1=yes; requires `secure`) | `metrics['ftp.is_secure']` | `==` | `0` | warning |
| Upload throughput (bits/s) | `metrics['ftp.upload_speed_bps']` | `<` | `800000` | warning |
| Download throughput (bits/s) | `metrics['ftp.download_speed_bps']` | `<` | `800000` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `port` | number | — |
| `username` | string | — |
| `password` | string | **secret** (write-only, stored encrypted) |
| `secure` | boolean | — |
| `check_list` | boolean | Run a directory listing each check; follows the List Failed rule — set it and the rule follows (`false` switches it off and resolves its open incident, `true` back on) |
| `check_write` | boolean | Upload and delete a small test file each check; follows the Write Failed rule the same way |
| `check_speed` | boolean | Measure upload / download throughput each check; follows the speed rules the same way |
| `list_limit` | number | Max entries captured from the directory listing; default `50` |
| `timeoutSeconds` | number | Per-check timeout in seconds |

## SFTP

SSH file transfer connect, auth, list, write + speed.

- **Type value** (`type` field): `sftp`
- **Target**: domain, IP or host:port — e.g. `sftp.example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Connection Failed — `metrics['sftp.connect_success'] == 0` (critical)
- Authentication Failed — `metrics['sftp.authentication_success'] == 0` (critical)
- List Failed — `metrics['sftp.list_success'] == 0` (warning)

The listing, write test and speed test run when their rules are on
(`check_list`, `check_write`, `check_speed` in `config` are derived from
them). Set one of those keys over the API and the rules follow it:
`"check_list": false` switches List Failed off (an incident it holds is
resolved), `true` switches it back on.

The write test (`sftp.write_success`) is not seeded — many SFTP accounts
are read-only and the test would fail on every check. Create the rule when
the account is writable.

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Connect OK (1=yes) | `metrics['sftp.connect_success']` | `==` | `0` | critical |
| Auth OK (1=yes) | `metrics['sftp.authentication_success']` | `==` | `0` | critical |
| Write OK (1=yes) | `metrics['sftp.write_success']` | `==` | `0` | critical |
| List OK (1=yes) | `metrics['sftp.list_success']` | `==` | `0` | warning |
| Connect time (ms) | `metrics['sftp.connect_time_ms']` | `>` | `3000` | warning |
| Login time (ms) | `metrics['sftp.login_time_ms']` | `>` | `5000` | warning |
| Upload throughput (bits/s) | `metrics['sftp.upload_speed_bps']` | `<` | `800000` | warning |
| Download throughput (bits/s) | `metrics['sftp.download_speed_bps']` | `<` | `800000` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `port` | number | — |
| `username` | string | Required — an SFTP server always asks for a login (a create or update without one is a `400`) |
| `password` | string | **secret** (write-only, stored encrypted) |
| `privateKey` | string | **secret** (write-only, stored encrypted). SSH private key: the whole PEM / OpenSSH text, without a passphrase — text that is not such a key is a `400`. Empty = log in with the password |
| `check_list` | boolean | Run a directory listing each check; follows the List Failed rule — set it and the rule follows (`false` switches it off and resolves its open incident, `true` back on) |
| `check_write` | boolean | Upload and delete a small test file each check; follows the Write Failed rule the same way |
| `check_speed` | boolean | Measure upload / download throughput each check; follows the speed rules the same way |
| `list_limit` | number | Max entries captured from the directory listing; default `50` |
| `timeoutSeconds` | number | Per-check timeout in seconds |

## WebSocket

WebSocket handshake, ping + pattern match.

- **Type value** (`type` field): `websocket`
- **Target**: ws:// or wss:// URL — e.g. `wss://example.com/ws` (`http://` /
  `https://` is a `400` that names the `ws://` / `wss://` spelling)

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Handshake time (ms) | `metrics['websocket.handshake_time_ms']` | `>` | `1000` | warning |
| Ping RTT (ms) | `metrics['websocket.ping_rtt_ms']` | `>` | `500` | warning |
| Total time (ms) | `metrics['websocket.total_time_ms']` | `>` | `2000` | warning |
| Pattern match (1=yes) | `metrics['websocket.pattern_match']` | `==` | `0` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `checkPing` | boolean | — |
| `timeoutSeconds` | number | Per-check timeout in seconds |
| `sendMessage` | string | Message to send after the handshake (optional) |
| `expectPattern` | string | Regexp the reply must match — drives the *Response Must Match* rule |

## Domain (RDAP)

Domain registration + expiry via RDAP.

- **Type value** (`type` field): `rdap`
- **Target**: domain — e.g. `example.com`

**Default alert rules** (created automatically):

- Domain Expiry — `metrics['rdap.days_until_expiry'] < 30` (warning)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Days until domain expiry | `metrics['rdap.days_until_expiry']` | `<` | `30` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `timeoutSeconds` | number | Per-check timeout in seconds |
| `expiryReminderDays` | array | Whole days (1–365, up to 5), e.g. `[14, 3]`: re-send an open, unacknowledged domain-expiry incident's notification once when that many days are left; omit or `null` for none — see [reminders](/docs/monitors/certificates#reminders-before-expiry) |

## Blacklist (RBL)

Check an IP/domain against DNS blacklists.

- **Type value** (`type` field): `blacklist`
- **Target**: domain or IP — e.g. `example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Listed on Any RBL — `metrics['blacklist.listed_count'] > 0` (warning, `failure_threshold` 1; monitors created before 2026-11-23: critical, 3)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Blacklists listing this host | `metrics['blacklist.listed_count']` | `>` | `0` | critical |
| Failed RBL lookups | `metrics['blacklist.failed_count']` | `>=` | `2` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `resolver` | string | Custom resolver for the RBL lookups: a public IP, optionally with a port (`203.0.113.53:53`); empty = the prober's own, the only resolvers Spamhaus answers. Through any custom resolver, Spamhaus public zones (anything under `spamhaus.org`, and `cbl.abuseat.org`) read **refused**, not clean, and the create/update response says so in `config_warnings`; a Spamhaus DQS key zone works through any resolver |
| `rblsText` | string | Newline-separated RBL zones (`#` starts a comment); each must be a DNS zone such as `zen.spamhaus.org` |
| `rbls` | array | The same zones as an array of strings — an alternative to `rblsText` |
| `timeoutSeconds` | number | Per-check timeout in seconds |

## NTP

Time server offset, sync + stratum.

- **Type value** (`type` field): `ntp`
- **Target**: domain, IP or host:port — e.g. `pool.ntp.org`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Clock Offset Too High — `metrics['ntp.offset_abs_ms'] > 100` (critical)
- Server Not Synchronized — `metrics['ntp.leap_unsync'] > 0` (critical)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Absolute clock offset (ms) | `metrics['ntp.offset_abs_ms']` | `>` | `100` | critical |
| Unsynchronized (1=yes) | `metrics['ntp.leap_unsync']` | `>` | `0` | critical |
| Stratum | `metrics['ntp.stratum']` | `>` | `4` | warning |
| Round-trip delay (ms) | `metrics['ntp.delay_ms']` | `>` | `100` | warning |
| Offset jitter across samples (ms) | `metrics['ntp.jitter_ms']` | `>` | `50` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `count` | number | Samples per check, 1–10 |
| `maxAbsOffsetMs` | number | Fail the check itself when the clock offset exceeds this many milliseconds, 1–1000000000; omit for no limit (the Clock Offset Too High rule judges the offset) |
| `requireSynced` | boolean | Fail the check when the server reports an unsynchronized clock |
| `timeoutSeconds` | number | Per-check timeout in seconds |

## Email Security

SPF, DMARC + DKIM policy checks for a domain.

- **Type value** (`type` field): `email_policy`
- **Target**: domain — e.g. `example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- SPF Record Missing — `metrics['spf.present'] == 0` (critical)
- DMARC Record Missing — `metrics['dmarc.present'] == 0` (critical)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| SPF present (1=yes) | `metrics['spf.present']` | `==` | `0` | critical |
| SPF exceeds the 10 DNS-lookup limit (1=yes) | `metrics['spf.too_many_lookups']` | `>` | `0` | warning |
| DMARC present (1=yes) | `metrics['dmarc.present']` | `==` | `0` | critical |
| DMARC policy strength (0=none, 1=quarantine, 2=reject) | `metrics['dmarc.policy']` | `<` | `1` | warning |
| DKIM present (1=yes) | `metrics['dkim.present']` | `==` | `0` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `checkSpf` | boolean | Check the SPF record; default `true` |
| `checkDmarc` | boolean | Check the DMARC record; default `true` |
| `checkDkim` | boolean | Check the DKIM keys of `dkimSelectors`; default `true`. At least one check has to query something — SPF, DMARC, or DKIM with a selector — otherwise the create or update is a `400` |
| `dkimSelectors` | string | DKIM selectors to check, comma-separated (or a list), e.g. `google, selector1` — letters, digits, `-`, `_` and dots only |
| `timeoutSeconds` | number | Per-check timeout in seconds (`timeoutMs` is still accepted as a legacy alias) |

## Core Web Vitals

Full Lighthouse audit of one page — performance, Core Web Vitals, SEO. For scripted journeys (browser checks) use type `playwright`.

- **Type value** (`type` field): `browser`
- **Target**: https URL — e.g. `https://example.com`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- LCP Poor — `metrics['lighthouse.lcp_ms'] > 4000` (critical)
- CLS Poor — `metrics['lighthouse.cls'] > 0.25` (critical)

No INP metric: a Lighthouse navigation audit measures LCP, CLS, FCP, TBT,
TTI and Speed Index, but Interaction to Next Paint needs real-user
interaction data, so synthetic checks never produce it. There is no
`lighthouse.inp_ms` metric and the API rejects rules on it.

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Largest Contentful Paint (ms) | `metrics['lighthouse.lcp_ms']` | `>` | `4000` | critical |
| Cumulative Layout Shift | `metrics['lighthouse.cls']` | `>` | `0.25` | critical |
| Performance score (0–1) | `metrics['lighthouse.performance_score']` | `<` | `0.5` | warning |
| SEO score (0–1) | `metrics['lighthouse.seo_score']` | `<` | `0.85` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `preset` | enum | one of: `mobile`, `desktop` (default `desktop`). Fixed after creation — mobile and desktop scores aren't comparable, so a change is a `400`; create another monitor for the other device |
| `timeoutSeconds` | number | Lighthouse audit budget in seconds, 60–300; default `180` (a value below 60 falls back to it) |

## Heartbeat / Cron

Dead-man's switch — your job pings a URL; we alert if it goes silent.

- **Type value** (`type` field): `heartbeat`
- **Target**: server-assigned — send any placeholder (e.g. `"heartbeat"`) or omit it; it is replaced with the ping path `/p/<token>`, and the full URL to call is `ping_url` in the response

**Default alert rules** (created automatically):

- Missed Schedule — `metrics['heartbeat.missed'] >= 1` (critical)
- Run Failed — `metrics['heartbeat.run_failed'] >= 1` (warning)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Missed check-ins | `metrics['heartbeat.missed']` | `>=` | `1` | critical |
| Run reported failure | `metrics['heartbeat.run_failed']` | `>=` | `1` | warning |
| Exit code | `metrics['heartbeat.exit_code']` | `==` | `137` | critical |
| Run duration (ms) | `metrics['heartbeat.duration_ms']` | `>` | `600000` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `scheduleMode` | enum | one of: `period`, `cron`; default `period` |
| `periodSeconds` | number | Expected time between pings, 60–31536000 (one year); default `300` |
| `graceSeconds` | number | Extra time before a ping counts as missed, 0–2592000 (30 days); default `300` |
| `cronExpression` | string | — |
| `timezone` | string | default `UTC` |

## MCP Server

Model Context Protocol handshake, tools + drift.

- **Type value** (`type` field): `mcp`
- **Target**: https URL — e.g. `https://mcp.example.com/mcp`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Tool Inventory Changed — `metrics['mcp.inventory_changed'] == 1` (warning)
- No Tools Exposed — `metrics['mcp.tools_count'] == 0` (critical)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Tool inventory changed (1=yes) | `metrics['mcp.inventory_changed']` | `==` | `1` | warning |
| Tools exposed | `metrics['mcp.tools_count']` | `==` | `0` | critical |
| Handshake time (ms) | `metrics['mcp.handshake_time_ms']` | `>` | `2000` | warning |
| Protocol version match (1=yes) | `metrics['mcp.version_match']` | `==` | `0` | warning |
| SSL days until expiry (https endpoints) | `metrics['mcp.ssl_days_until_expiry']` | `<` | `14` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `bearerToken` | string | **secret** (returned redacted) |
| `requestHeaders` | array | `Array of { key, value }`, extra headers sent with every request of the check; credential headers are **secret** (returned redacted) |
| `timeoutSeconds` | number | Per-check timeout in seconds |
| `expectedProtocolVersion` | string | Protocol revision the server must negotiate, a date `YYYY-MM-DD` (e.g. `2025-11-25`; anything else is a `400`); the check offers this version — drives the *Protocol Version Mismatch* rule |
| `trackInventory` | boolean | Fingerprint the tool inventory every check and alert on drift (default `true`) |
| `expiryReminderDays` | array | Whole days (1–365, up to 5), e.g. `[14, 3]`: re-send an open, unacknowledged certificate-expiry incident's notification once when that many days are left; omit or `null` for none — see [reminders](/docs/monitors/certificates#reminders-before-expiry) |

## API

Full HTTP request with JSON/status assertions and value extraction.

- **Type value** (`type` field): `api`
- **Target**: https URL — e.g. `https://api.example.com/health`

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- HTTP Status Evaluation — `api.status_code not_in_groups ["2xx", "3xx"]` (critical)
- Assertions Failed — `metrics['api.assertions_failed'] > 0` (critical)
- SSL Expiry Warning — `metrics['api.ssl_days_until_expiry'] < 30` (warning)

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| HTTP status code | `api.status_code` | `not_in_groups` | `["2xx","3xx"]` | critical |
| Failed assertions | `metrics['api.assertions_failed']` | `>` | `0` | critical |
| Response time (ms) | `metrics['api.response_time_ms']` | `>` | `2000` | warning |
| SSL days until expiry | `metrics['api.ssl_days_until_expiry']` | `<` | `14` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `method` | enum | one of: `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `HEAD`, `OPTIONS`; default `GET` |
| `followRedirects` | boolean | default `true` |
| `authType` | enum | one of: `none`, `basic`, `digest`, `bearer`; default `none` |
| `authUsername` | string | — |
| `authPassword` | string | **secret** (returned redacted) |
| `bearerToken` | string | **secret** (returned redacted) |
| `requestBody` | string | Redacted on read (`"[redacted]"`); send `"[redacted]"` back to keep the stored body. Not encrypted — put a token it carries in an org secret and reference it as `{{NAME}}` |
| `requestHeaders` | array | `Array of { key, value }` |
| `ipVersion` | enum | one of: `any`, `ip4`, `ip6` (`any` = IPv4 first, IPv6 fallback) |
| `assertions` | array | `Array of { source, property, operator, value } (max 50)` |
| `extractions` | array | `Array of { name, path } JSONPath (max 20)` |
| `timeoutSeconds` | number | Per-check timeout in seconds |
| `transportMode` | enum | `auto` (default), `tcp` or `http3` |
| `expiryReminderDays` | array | Whole days (1–365, up to 5), e.g. `[14, 3]`: re-send an open, unacknowledged certificate-expiry incident's notification once when that many days are left; omit or `null` for none — see [reminders](/docs/monitors/certificates#reminders-before-expiry) |

## Page integrity

Defacement and tampering detection on a list of pages, against an accepted baseline.

- **Type value** (`type` field): `integrity`
- **Target**: https URL — e.g. `https://example.com`

Every finding is measured against a **fixed accepted baseline**, not the
previous check. The first check of each page records its baseline; after
an intended change (a deploy), accept the new state with
[`POST /v1/monitors/{id}/baseline`](/docs/api/monitors#page-integrity-baseline).
Scripts, frames and forms from the page's own site never count as new —
only third-party sources do.

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical)
- Unknown script source — `metrics['integrity.new_script_origins'] > 0` (critical)
- Form sends data elsewhere — `metrics['integrity.new_form_targets'] > 0` (critical)
- Tamper keywords — `metrics['integrity.keyword_hits'] > 0` (critical)
- Redirects elsewhere — `metrics['integrity.redirect_changed'] > 0` (critical)
- Security header weakened — `metrics['integrity.headers_weakened'] > 0` (critical)
- Third-party script changed — `metrics['integrity.scripts_changed_third_party'] > 0` (critical)
- Page content changed — `metrics['integrity.pages_changed'] > 0` (warning)
- Security headers changed — `metrics['integrity.headers_changed_other'] > 0` (warning)
- First-party script changed — `metrics['integrity.scripts_changed_first_party'] > 0` (warning)
- New data destination — `metrics['integrity.new_connect_origins'] > 0` (warning)
- New embedded frame — `metrics['integrity.new_iframe_origins'] > 0` (warning)
- New external links — `metrics['integrity.new_link_domains'] >= 5` (warning)
- Pages unreachable — `metrics['integrity.pages_unreachable_partial'] > 0` (warning)

The security rules (critical above, plus *New data destination*) close only
after 3 clean checks in a row, so one clean check from another location
never resolves a change that is served to some visitors only.

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| New third-party script origins | `metrics['integrity.new_script_origins']` | `>` | `0` | critical |
| New third-party form targets | `metrics['integrity.new_form_targets']` | `>` | `0` | critical |
| New tamper keywords in the page text | `metrics['integrity.keyword_hits']` | `>` | `0` | critical |
| Pages redirecting to a different host | `metrics['integrity.redirect_changed']` | `>` | `0` | critical |
| Security headers removed or loosened (CSP, HSTS, XFO, XCTO) | `metrics['integrity.headers_weakened']` | `>` | `0` | critical |
| Third-party scripts serving different code | `metrics['integrity.scripts_changed_third_party']` | `>` | `0` | critical |
| Largest visible-text change vs baseline (%) | `metrics['integrity.text_change_pct_max']` | `>=` | `25` | warning |
| Pages changed beyond the sensitivity | `metrics['integrity.pages_changed']` | `>` | `0` | warning |
| Security headers changed vs baseline | `metrics['integrity.headers_changed']` | `>` | `0` | warning |
| Security headers changed without being weakened | `metrics['integrity.headers_changed_other']` | `>` | `0` | warning |
| Own scripts serving different code | `metrics['integrity.scripts_changed_first_party']` | `>` | `0` | warning |
| Scripts serving different code (any origin) | `metrics['integrity.scripts_content_changed']` | `>` | `0` | warning |
| New data destinations (sites the page sends data to) | `metrics['integrity.new_connect_origins']` | `>` | `0` | warning |
| New embedded frame origins | `metrics['integrity.new_iframe_origins']` | `>` | `0` | warning |
| New external link domains | `metrics['integrity.new_link_domains']` | `>=` | `5` | warning |
| Pages that could not be fetched | `metrics['integrity.pages_unreachable']` | `>` | `0` | warning |
| Pages that could not be fetched while others answered | `metrics['integrity.pages_unreachable_partial']` | `>` | `0` | warning |
| Pages fetched | `metrics['integrity.pages_checked']` | `<` | `1` | warning |
| Pages without an accepted baseline | `metrics['integrity.baseline_missing']` | `>` | `0` | warning |

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `pages` | array | Absolute URLs to watch (1–50, same registrable domain as the target); defaults to `[target]`. The per-monitor page count is plan-limited |
| `textChangeThreshold` | number | Percent of visible text that may change before a page counts as changed, 1–100 (Low `50`, Normal `25`, High `10`) |
| `pageThresholds` | object | Per-page sensitivity: `{ "<page URL>": percent 1–100 }` for pages in `pages`; the others use `textChangeThreshold` |
| `ignoreSelectors` | array | CSS selectors (max 20 × 200 chars) removed before comparing text, links, forms and frames — never scripts |
| `checkHeaders` | boolean | Compare the pages' security headers with the baseline (default `true`) |
| `checkScriptContent` | boolean | Hash external scripts and report when the same URL serves different code (default `true`; plan-dependent) |
| `render` | boolean | Render every page in a real browser — catches scripts injected at runtime and the sites a page sends data to, and photographs pages that differ from their baseline. At most 10 pages; browser monitors are plan-limited |
| `trustedOrigins` | array | Script, frame and form sources never reported as new: `https://host`, or a bare host for any scheme |
| `keywords` | array | Extra tamper keywords added to the built-in list |
| `autoAcceptAfterHours` | enum | `0` (never, default), `1`, `3`, `6` or `24`: accept an unreviewed change as the new baseline after this long. The incident still opens at once |
| `autoAcceptSecurity` | boolean | Let `autoAcceptAfterHours` also accept security findings (default `false`) |
| `timeoutSeconds` | number | Per-check timeout in seconds (max `60`) |

## Browser check

A Playwright Test script (login, checkout, search) run in a sandboxed Chromium, step by step, with screenshots and a trace on failure. For a Lighthouse / Core Web Vitals audit of one page use type `browser`.

- **Type value** (`type` field): `playwright`
- **Target**: https URL — e.g. `https://shop.example.com` (the script reads it as `process.env.TARGET_URL`)

The script is validated on save: a syntax error, a disallowed import or more
than 10 tests is rejected with `400` naming the line. Test it first with
[`POST /v1/playwright/test-runs`](/docs/monitors/browser-checks/api). Runs,
their failed steps and the saved script versions have their own endpoints —
see [Browser checks](/docs/api/monitors#browser-checks).

**Default alert rules** (created automatically):

- Journey failed — `metrics['playwright.failed_tests'] > 0` (critical), after 2 failed runs in a row: the scheduled run and a confirmation re-run about a minute later. A run that passes on the in-run retry is *flaky*, not failed

There is no generic Availability Check on this type: a run that could not
start on our side is recorded as an infrastructure error and never opens an
incident.

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Failed tests (after the in-run retry) | `metrics['playwright.failed_tests']` | `>` | `0` | critical |
| Journey duration (ms) | `metrics['playwright.duration_ms']` | `>` | `20000` | warning |
| Console errors | `metrics['playwright.console_errors']` | `>` | `0` | warning |
| Failed requests (4xx/5xx or network error) | `metrics['playwright.failed_requests']` | `>` | `0` | warning |
| Slowest Largest Contentful Paint across pages (ms) | `metrics['playwright.lcp_ms_max']` | `>` | `2500` | warning |
| Worst Cumulative Layout Shift across pages | `metrics['playwright.cls_max']` | `>` | `0.1` | warning |
| Passed only on retry (1 = flaky) | `metrics['playwright.flaky']` | `>` | `0` | warning |
| Script error (syntax, import, no test) | `metrics['playwright.script_error']` | `>` | `0` | critical |
| One step's duration (ms) | `metrics['playwright.step.<slug>.duration_ms']` | `>` | `3000` | warning |

`<slug>` is the step's key (lowercase letters, digits and `_`, made from the
step title); the Alerting tab's step-duration preset fills it in for you.

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `script` | string | The Playwright Test file (TypeScript or JavaScript, at most 64 KB, 1–10 tests). Imports: `@playwright/test`, `otpauth`, `@faker-js/faker` and Node built-ins. Read organization variables as `process.env.NAME`; `TARGET_URL` is the check's URL |
| `timeoutSeconds` | number | Whole-journey timeout in seconds (10–180; the plan caps it — `max_playwright_timeout_seconds` in [`GET /v1/plan`](/docs/api/plan)); default `60` |
| `retry` | boolean | Retry a failed test once inside the same run; a pass on retry is reported as flaky, not failed; default `true` |
| `trace` | boolean | Keep a Playwright trace for failed runs and full-capture runs (30 days); default `true` |
| `runtime` | enum | `2026.09` (default). Playwright, Chromium and Node versions are reported with every run |

## Game server

Game server status over the game's own query: online, players, map, version,
latency (the status query's round trip), and optional per-check packet loss
and jitter on the UDP protocols (`packetLoss`).

- **Type value** (`type` field): `game`
- **Target**: `host:port` — the **query port**, e.g. `play.example.com:27015`
  (`[v6]:port` for IPv6). Minecraft Java may leave the port out to follow its
  `_minecraft._tcp` SRV record. Private and internal addresses are refused.

**Default alert rules** (created automatically):

- Availability Check — `success == false` (critical) — shown as *Game Server
  Offline* in the dashboard

**Alert metrics** — values for the `metric` field of [`POST /monitors/{id}/alert-rules`](/docs/api/alert-rules):

| Metric | Passes as `metric` | Op | Example value | Severity |
|---|---|---|---|---|
| Up / Down (probe status) | `success` | `==` | `false` | critical |
| Latency (ms) | `metrics['game.query_rtt_ms']` | `>` | `150` | warning |
| Players online | `metrics['game.players']` | `==` | `0` | warning |
| Player slots | `metrics['game.max_players']` | `<` | `1` | warning |
| Server fill (%) | `metrics['game.players_pct']` | `>=` | `100` | warning |
| Bots (Steam servers) | `metrics['game.bots']` | `>` | `0` | warning |
| Password required (1=yes) | `metrics['game.password']` | `==` | `1` | warning |
| VAC secured (1=yes, Steam servers) | `metrics['game.vac']` | `==` | `0` | warning |
| DNS lookup time (ms) | `metrics['game.dns_time_ms']` | `>` | `500` | warning |
| Packet loss (%) | `metrics['game.packet_loss_percent']` | `>=` | `20` | warning |
| Jitter (ms) | `metrics['game.jitter_ms']` | `>` | `30` | warning |

Player metrics are absent when a server answers but hides its counts (a
FiveM server that blocks `dynamic.json`); `game.vac` exists only for Steam
(A2S) presets. At most 20 UDP and game monitors per organization may share
one `host:port`. `game.packet_loss_percent` and `game.jitter_ms` exist only on
the UDP protocols (`a2s`, `mc_bedrock`, `samp`, `mta`) with `packetLoss` on,
and only on checks that got an answer and were not rate-limited — see [packet loss and jitter](/docs/monitors/game#packet-loss-and-jitter).
With `packetLoss` on, `game.query_rtt_ms` is the median round trip of the
check's answered queries, and `game.jitter_ms` leaves out the first answered
one and needs three answers. See [latency and the first query](/docs/monitors/game#latency-and-the-first-query).
`game.password` and `game.vac` are 0/1 flags (`== 2` is a `400`). A rule on
`game.vac`, `game.packet_loss_percent` or `game.jitter_ms` that the monitor
can't measure is still saved, with a line in the response's
[`warnings`](/docs/api/alert-rules#create-a-rule).

**Config fields** (`config` object on create/update):

| Key | Type | Notes |
|---|---|---|
| `preset` | enum | **Required.** The game: `cs2`, `csgo`, `tf2`, `gmod`, `l4d2`, `rust`, `ark_se`, `dayz`, `arma3`, `valheim`, `7dtd`, `project_zomboid`, `v_rising`, `enshrouded`, `conan_exiles`, `unturned`, `space_engineers`, `kf2`, `mordhau`, `insurgency_sandstorm`, `soulmask`, `minecraft_java`, `minecraft_bedrock`, `fivem`, `redm`, `samp`, `mta`, `a2s_generic` (any other Steam game) |
| `protocol` | enum | `a2s`, `mc_java`, `mc_bedrock`, `fivem`, `samp`, `mta` — derived from `preset`; optional, and a `400` when it disagrees with the preset |
| `gamePort` | number | The port players join on, when it differs from the query port in `target`; used for join links (MTA: the game port, the target being game + 123) |
| `players` | boolean | Also read the player list (names, scores, time played) for the check details; counts are read either way; default `true` |
| `srv` | boolean | Minecraft Java: with no port in `target`, follow the SRV record (25565 without one); default `true` |
| `timeoutSeconds` | number | Per-check timeout in seconds (1–10); default `5` |
| `ipVersion` | enum | `any`, `ip4`, `ip6` |
| `packetLoss` | boolean | Measure packet loss and jitter on the UDP protocols: each check sends a train of `packetCount` queries and the server is online when any of them is answered. Absent or `false` = one status query per check, as before. New monitors are created with it on unless you send `false`. Not used by `mc_java` and `fivem` (TCP / HTTP queries): those monitors are created without it, and `packetLoss` / `packetCount` / `packetSpacingMs` sent for them are dropped and listed in `ignored_config_keys` |
| `packetCount` | number | Queries per check with `packetLoss` on (3–10); default `5` |
| `packetSpacingMs` | number | Gap between those queries in ms (100–500); default `150`. Steam (`a2s`) servers are queried at least 220 ms apart whatever the setting |

```json title="POST /v1/monitors"
{
  "name": "Rust EU",
  "type": "game",
  "target": "rust.example.com:28017",
  "interval": 60,
  "locations": ["9f31c2ab-…"],
  "config": { "preset": "rust", "gamePort": 28015 }
}
```

Game monitors are included from the Starter plan (not on Free) and count
toward the plan's monitor total; on Free, `POST /monitors` with `type: "game"`
is refused with a plan error. See [Game servers](/docs/monitors/game) for the per-game query
ports.

---

Canonical page: https://watchfor.io/docs/api/monitor-types · All docs: https://watchfor.io/docs · Site guide: https://watchfor.io/llms.txt
