Skip to main content
The Healthchecks API allows you to configure and manage health checks for your origin servers. Health checks monitor your origins and can detect when they become unhealthy.

Create health check

Create a new health check for a zone.
string
required
Zone identifier
string
required
The hostname or IP address of the origin server to run health checks on
string
required
A short name to identify the health check. Only alphanumeric characters, hyphens, and underscores are allowed
string
The protocol to use for the health checkOptions: HTTP | HTTPS | TCP
string[] | null
A list of regions from which to run health checks. Null means Cloudflare will pick a default regionOptions: WNAM, ENAM, WEU, EEU, NSAM, SSAM, OC, ME, NAF, SAF, IN, SEAS, NEAS, ALL_REGIONS (Business and Enterprise only)
string
A human-readable description of the health check
number
The interval between each health check in seconds. Shorter intervals may give quicker notifications but will increase load on the origin
number
The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately
number
The timeout (in seconds) before marking the health check as failed
number
The number of consecutive fails required from a health check before changing the health to unhealthy
number
The number of consecutive successes required from a health check before changing the health to healthy
boolean
If suspended, no health checks are sent to the origin
object | null
Parameters specific to an HTTP or HTTPS health check
object | null
Parameters specific to TCP health check

Response fields

string
Health check identifier
string
The hostname or IP address of the origin server
string
Health check name
string
The current status of the origin server according to the health checkOptions: unknown | healthy | unhealthy | suspended
string
The current failure reason if status is unhealthy
string
The protocol used for the health check
string[] | null
Regions from which health checks are run
string
When the health check was created
string
When the health check was last modified
number
Interval between health checks in seconds
number
Number of retries before marking as unhealthy
number
Timeout in seconds
number
Consecutive fails required to mark as unhealthy
number
Consecutive successes required to mark as healthy
boolean
Whether health checks are suspended
object | null
HTTP/HTTPS health check configuration
object | null
TCP health check configuration

List health checks

List all configured health checks for a zone.

Get health check

Retrieve a single configured health check.

Update health check

Update all properties of a configured health check.

Edit health check

Patch specific properties of a configured health check.

Delete health check

Delete a health check.
string
ID of the deleted health check