hosting
GET /v1/uptime/monitors/{monitor_id}
One monitored address, with its history.
Автентифікація
Надішліть ключ API як маркер носія (bearer token). Ця кінцева точка не вказує конкретного дозволу в специфікації, тому надайте своєму ключу мінімально необхідні права та перевірте відповідь, замість того щоб припускати.
Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.
Спробувати
Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.
curl -X GET https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
-H "Authorization: Bearer zdk_live_…"Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API
Деталі
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`.
Параметри
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
monitor_id (path) | string | Так | — |
hours (query) | integer | Ні | How many hourly history points to return. |
Відповідь
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
id | string | Так | — |
url | string | Так | — |
name | string | Ні | — |
state | string<unknown, up, down, paused> | Так | ⛔ `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 | Так | — |
expect_text | string | Ні | — |
site_id | string | Ні | 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 | Ні | — |
last_up_at | string | Ні | — |
last_down_at | string | Ні | — |
created_at | string | Так | — |
summary | UptimeSummary | Ні | — |
history | UptimeHistoryPoint[] | Ні | — |
incidents | UptimeIncident[] | Ні | — |
vitals | UptimeVitalsPoint[] | Ні | — |
migration_offer | UptimeMigrationOffer | Ні | — |
Помилки, які може повертати ця кінцева точка
401 · 404