DNS Zones
Set record health check
/dns/zones/{zone_uuid}/records/{record_uuid}/health-checkAdd or update the health check on a DNS record. When the target stops responding, the record is automatically removed from DNS answers until it recovers. Billed at $10/month per health check.
Authorization
Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.
Path parameters
Request body
Create or update the health check attached to a DNS record (1 per record).
Friendly name
length ≤ 128"http""https""tcp""ping"Host/IP to probe; defaults to the record's own value
length ≤ 255Port (required for TCP)
1 ≤ value ≤ 65535Path for HTTP/HTTPS checks
length ≤ 255Expected HTTP status code
100 ≤ value ≤ 599Default200Seconds between checks (min 10)
10 ≤ value ≤ 3600Default60Per-check timeout in seconds
1 ≤ value ≤ 60Default5Successes before marking healthy
1 ≤ value ≤ 10Default2Failures before marking unhealthy
1 ≤ value ≤ 10Default3Whether the check is active (billed while enabled)
trueResponses
Successful Response
application/json
"http""https""tcp""ping""healthy""unhealthy""unknown"date-timedate-timedate-timeCurrent status combined across every location; null while unavailable.
Properties (3)
healthy: every reporting location sees the target up; unhealthy: every one sees it down; degraded: some locations see it down; unknown: no location is reporting yet; paused: the check is disabled or the zone is not active.
"healthy""degraded""unhealthy""unknown""paused"Properties (2)
Location code, e.g. ams01
unhealthy when the location sees the target down, unknown while it is not reporting yet.
"healthy""unhealthy""unknown""paused"Last status change seen by any location (ISO 8601 UTC)
Percentage of the last 24 hours the target was seen up; null without data.