hosting

GET /v1/uptime/monitors/{monitor_id}

One monitored address, with its history.

Todos os endpoints de hosting

Autenticação

Envie uma chave de API como um token bearer. Este endpoint não especifica uma permissão específica na documentação, portanto, conceda à sua chave o mínimo necessário e verifique a resposta em vez de assumir.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

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

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

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`.

Parâmetros

NomeTipoObrigatórioO que é
monitor_id (path)stringSim
hours (query)integerNãoHow many hourly history points to return.

Resposta

NomeTipoObrigatórioO que é
idstringSim
urlstringSim
namestringNão
statestring<unknown, up, down, paused>Sim⛔ `unknown` is a real state and is not a synonym for `up` — it means "not checked yet" and is excluded from every uptime percentage.
enabledbooleanSim
expect_textstringNão
site_idstringNãoSet 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_atstringNão
last_up_atstringNão
last_down_atstringNão
created_atstringSim
summaryUptimeSummaryNão
historyUptimeHistoryPoint[]Não
incidentsUptimeIncident[]Não
vitalsUptimeVitalsPoint[]Não
migration_offerUptimeMigrationOfferNão

Erros que este endpoint pode retornar

401 · 404