hosting
GET /v1/uptime/monitors/{monitor_id}
One monitored address, with its history.
Autentificare
Trimiteți o cheie API ca token de tip bearer. Acest punct final nu specifică o permisiune anume în specificație, așa că acordați cheii cele mai puține drepturi necesare și verificați răspunsul în loc să faceți presupuneri.
Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.
Încearcă
Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.
curl -X GET https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
-H "Authorization: Bearer zdk_live_…"Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API
Detalii
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`.
Parametri
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
monitor_id (path) | string | Da | — |
hours (query) | integer | Nu | How many hourly history points to return. |
Răspuns
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
id | string | Da | — |
url | string | Da | — |
name | string | Nu | — |
state | string<unknown, up, down, paused> | Da | ⛔ `unknown` is a real state and is not a synonym for `up` — it means "not checked yet" and is excluded from every uptime percentage. |
enabled | boolean | Da | — |
expect_text | string | Nu | — |
site_id | string | Nu | Set 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_at | string | Nu | — |
last_up_at | string | Nu | — |
last_down_at | string | Nu | — |
created_at | string | Da | — |
summary | UptimeSummary | Nu | — |
history | UptimeHistoryPoint[] | Nu | — |
incidents | UptimeIncident[] | Nu | — |
vitals | UptimeVitalsPoint[] | Nu | — |
migration_offer | UptimeMigrationOffer | Nu | — |
Erori pe care le poate returna acest punct final
401 · 404