Get Site Detail
Fetches detailed information about a specific site associated with the authenticated user. The response includes the daily uptime statistics (stat) and the uptimeSummary computed over them; use the optional statDays query parameter to control how many days of statistics are returned (default 30, maximum 90).
state— the monitoring engine’s health verdict (healthy/degraded/unhealthy/unknown). Prefer this for programmatic checks.status— the visitor-facing label derived fromstateand the pause flag (up/down/paused/unknown).
legacyStatus exists only for backwards compatibility and is not updated by
the current pipeline — do not build on it.Uptime statistics window (statDays)
The response embeds daily uptime statistics in the stat array (one entry per
day, with upRate / downRate as fractions between 0 and 1) and an
uptimeSummary aggregated over those days.
By default the last 30 days are returned. Pass the optional statDays
query parameter to widen or narrow that window:
- Default:
30— omitting the parameter (or sending an invalid value) keeps the previous behaviour. - Maximum:
90— larger values are not rejected; the API silently caps them, sostatDays=365returns the last 90 days. uptimeSummaryalways reflects the requested window, and itsdaysCountfield tells you how many days actually had data (a recently added site may have fewer days than requested).
Standing conditions
Theconditions array is the same source the Watchman Tower dashboard reads:
each entry carries a key (e.g. ssl_expiry, domain_expiry,
chronic_performance), a level (ok / warning / critical), and a
human-readable summary produced by the monitoring engine. Thresholds live in
the engine, so the API, the dashboard, and e-mail reminders always agree.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the site to retrieve
Query Parameters
Number of days of daily uptime statistics (stat) to include, counted back from now. Also defines the window the uptimeSummary is calculated over. Defaults to 30 when omitted or invalid. Values above 90 are not rejected — the API silently caps them at 90, so requesting 365 returns the last 90 days. Fractional values are rounded down.
1 <= x <= 9090
