List the domain's uptime monitors
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
A monitor narrows outage detection to a host+path scope you name, using
the same thresholds as the whole-host watch. Without one, a failing
/checkout is diluted by every healthy marketing request and never
crosses the domain-wide threshold.
Query parameters
- domainstringrequiredquery
The domain name (for example
example.com). These endpoints take the domain as a query parameter rather than a path segment.
Responses
200The domain's monitors, oldest first.
Content type: application/json
- monitorsarray of UptimeMonitor
Item fields
- idinteger
- domain_idinteger
- namestring
Optional label, up to 64 characters. It is what the outage SMS and the incident list call this watch, so a domain with two monitors on one host sends two distinguishable alerts.
- enabledboolean
- host_patternstring
Legacy single-entry host scope, kept for parity with rules. It is folded into
host_includeswhen the scope is compiled. - host_match_typestring
Empty when the monitor has no host scope, i.e. it watches every subdomain.
One of:"""exact""wildcard""regex" - host_includesarray | null
nullor empty means every subdomain of this domain. - host_excludesarray | null
Excludes beat includes.
- path_match_typestring
How the path lists are read.
One of:"wildcard""regex" - path_includesarray of string
Request paths this monitor watches. Defaults to
["/*"]— every path — when you send an empty list. - path_excludesarray of string
Paths dropped from the scope. Excludes beat includes.
- created_atstring (date-time)
- updated_atstring (date-time)
- maxinteger
How many monitors this domain may have. A detection-cost ceiling — every monitor adds one path match per scanned log row per tick — not a plan entitlement, so it is the same number for every plan.
{
"monitors": [
{
"id": 0,
"domain_id": 0,
"name": "string",
"enabled": true,
"host_pattern": "string",
"host_match_type": "",
"host_includes": [
"string"
],
"host_excludes": [
"string"
],
"path_match_type": "wildcard",
"path_includes": [
"string"
],
"path_excludes": [
"string"
],
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z"
}
],
"max": 0
}400The domain query parameter is missing.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "domain is required"
}401Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "invalid API key"
}404No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}429The key exceeded its request budget (300 requests per minute by default).
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "rate limit exceeded"
}Example request
curl -X GET "https://api.nsin.ir/uptime/monitors?domain=example.com" \
-H "Authorization: Bearer $NSIN_API_KEY"