hosting
GET /v1/uptime/monitors/{monitor_id}
One monitored address, with its history.
Authenticatie
Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X GET https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
-H "Authorization: Bearer zdk_live_…"Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
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`.
Parameters
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
monitor_id (path) | string | Ja | — |
hours (query) | integer | Nee | How many hourly history points to return. |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
id | string | Ja | — |
url | string | Ja | — |
name | string | Nee | — |
state | string<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. |
enabled | boolean | Ja | — |
expect_text | string | Nee | — |
site_id | string | Nee | 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 | Nee | — |
last_up_at | string | Nee | — |
last_down_at | string | Nee | — |
created_at | string | Ja | — |
summary | UptimeSummary | Nee | — |
history | UptimeHistoryPoint[] | Nee | — |
incidents | UptimeIncident[] | Nee | — |
vitals | UptimeVitalsPoint[] | Nee | — |
migration_offer | UptimeMigrationOffer | Nee | — |
Fouten die dit eindpunt kan retourneren
401 · 404