hosting

GET /v1/uptime/monitors/{monitor_id}

One monitored address, with its history.

Alle hosting Endpunkte

Authentifizierung

Senden Sie einen API-Schlüssel als Bearer-Token. Dieser Endpunkt gibt in der Spezifikation keine spezifische Berechtigung an. Versehen Sie Ihren Schlüssel daher mit den minimal erforderlichen Rechten und prüfen Sie die Antwort, anstatt Annahmen zu treffen.

Dieser Endpunkt erfordert keine Organisations-ID. Ihr Schlüssel identifiziert bereits die zugehörige Organisation, und die Antwort ist entsprechend eingeschränkt.

Ausprobieren

Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.

curl -X GET https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
  -H "Authorization: Bearer zdk_live_…"

Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole

Details

The monitor, its hourly uptime and response-time history, its incidents, its Core Web Vitals readings, and — when its measured health warrants one — a migration offer. ⛔ Unknown ids answer **404, never 403**: a 403 would confirm the id exists and belongs to somebody else. Gated on `sites.view`.

Parameter

NameTypErforderlichWas es ist
monitor_id (path)stringJa
hours (query)integerNeinHow many hourly history points to return.

Antwort

NameTypErforderlichWas es ist
idstringJa
urlstringJa
namestringNein
statestring<unknown, up, down, paused>Ja⛔ `unknown` is a real state and is not a synonym for `up` — it means "not checked yet" and is excluded from every uptime percentage.
enabledbooleanJa
expect_textstringNein
site_idstringNeinSet only when the address happens to be one of this organisation's own sites. Navigation only — the monitor works identically without it, and must, because the product exists to…
last_result_atstringNein
last_up_atstringNein
last_down_atstringNein
created_atstringJa
summaryUptimeSummaryNein
historyUptimeHistoryPoint[]Nein
incidentsUptimeIncident[]Nein
vitalsUptimeVitalsPoint[]Nein
migration_offerUptimeMigrationOfferNein

Fehler, die dieser Endpunkt zurückgeben kann

401 · 404