Skip to main content

Link health

Every link carries a health verdict from destination probing, so a dashboard — or an integration — can find rot before visitors do.

Values​

ValueMeaning
healthyThe last probe resolved the destination successfully
brokenThe last probe failed; health_reason says why
unknownNever probed — including every link on a free plan

unknown is the honest default, not a gap: scheduled checking is a paid feature, so links on free plans are never probed and stay unknown.

The fields​

FieldNotes
healthThe verdict above
health_reasonWhy the last probe called it broken (connection refused, …). Empty unless health is broken
last_status_codeHTTP status from the last probe; 0 when never checked or when the probe failed before receiving a response (DNS, TLS, timeout)
last_checked_atWhen the last probe ran; absent when never probed
broken_sinceWhen the link first started failing, so an alert can say how long it has been down; unset once it recovers

All five ride the link object on every REST response — no separate call needed.

Filtering by health​

curl "https://lsg.bio/api/v1/links?health=broken" \
-H "Authorization: Bearer lsgbio_YOUR_TOKEN"

health=healthy, health=broken, or health=unknown narrows the list to that verdict. Anything else is 400 / validation_failed.

Rechecking​

The dashboard's ↻ action on a broken row probes the destination immediately instead of waiting for the scheduled sweep. That is RecheckLink on the Connect RPC transport — there is no REST route for it. It answers the full link with fresh health, health_reason, last_checked_at, last_status_code, and broken_since.