---
title: List Health Checks
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api)

[Smart Shield](https://developers.cloudflare.com/api/resources/smart_shield)

[Health Checks](https://developers.cloudflare.com/api/resources/smart_shield/subresources/health_checks)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# List Health Checks

GET/zones/{zone\_id}/smart\_shield/healthchecks

List configured health checks.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Health Checks Write``Health Checks Read`

##### P ath ParametersExpand Collapse

zone\_id: string

Identifier.

maxLength32

[Link to this property](<#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20zone_id%20%3E%20(schema)>)

##### Q uery ParametersExpand Collapse

page: optional number

Page number of paginated results.

minimum1

[Link to this property](<#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20page%20%3E%20(schema)>)

per\_page: optional number

Maximum number of results per page. Must be a multiple of 5.

maximum1000

minimum5

[Link to this property](<#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20per_page%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

errors: array of <a href="https://developers.cloudflare.com/api/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)">ResponseInfo</a> { code, message, documentation\_url, source }

</summary>

code: number

minimum1000

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: optional string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: optional object {pointer }

</summary>

pointer: optional string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors>)

<details>

<summary>

messages: array of <a href="https://developers.cloudflare.com/api/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)">ResponseInfo</a> { code, message, documentation\_url, source }

</summary>

code: number

minimum1000

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: optional string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: optional object {pointer }

</summary>

pointer: optional string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages>)

<details>

<summary>

result: array of object {id, address, check\_regions, 15 more }

</summary>

id: optional string

Identifier.

maxLength32

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

address: optional string

The hostname or IP address of the origin server to run health checks on.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20address">Link to this property</a>

<details>

<summary>

check\_regions: optional array of "WNAM"or "ENAM"or "WEU"or 11 more

A list of regions from which to run health checks. Null means Cloudflare will pick a default region.

</summary>

One of the following:

"WNAM"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"ENAM"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"WEU"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"EEU"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"NSAM"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"SSAM"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

"OC"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

"ME"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%207">Link to this property</a>

"NAF"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%208">Link to this property</a>

"SAF"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%209">Link to this property</a>

"IN"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%2010">Link to this property</a>

"SEAS"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%2011">Link to this property</a>

"NEAS"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%2012">Link to this property</a>

"ALL\_REGIONS"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions%20%3E%20(items)%20%3E%20(member)%2013">Link to this property</a>

</details>

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20check_regions">Link to this property</a>

consecutive\_fails: optional number

The number of consecutive fails required from a health check before changing the health to unhealthy.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20consecutive_fails">Link to this property</a>

consecutive\_successes: optional number

The number of consecutive successes required from a health check before changing the health to healthy.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20consecutive_successes">Link to this property</a>

created\_on: optional string

formatdate-time

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

description: optional string

A human-readable description of the health check.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

failure\_reason: optional string

The current failure reason if status is unhealthy.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20failure_reason">Link to this property</a>

<details>

<summary>

http\_config: optional object {allow\_insecure, expected\_body, expected\_codes, 5 more }

Parameters specific to an HTTP or HTTPS health check.

</summary>

allow\_insecure: optional boolean

Do not validate the certificate when the health check uses HTTPS.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20http_config%20%3E%20(property)%20allow_insecure">Link to this property</a>

expected\_body: optional string

A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20http_config%20%3E%20(property)%20expected_body">Link to this property</a>

expected\_codes: optional array of string

The expected HTTP response codes (e.g. “200”) or code ranges (e.g. “2xx” for all codes starting with 2) of the health check.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20http_config%20%3E%20(property)%20expected_codes">Link to this property</a>

follow\_redirects: optional boolean

Follow redirects if the origin returns a 3xx status code.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20http_config%20%3E%20(property)%20follow_redirects">Link to this property</a>

header: optional map\[array of string]

The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The User-Agent header cannot be overridden.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20http_config%20%3E%20(property)%20header">Link to this property</a>

<details>

<summary>

method: optional "GET"or "HEAD"

The HTTP method to use for the health check.

</summary>

One of the following:

"GET"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20http_config%20%3E%20(property)%20method%20%3E%20(member)%200">Link to this property</a>

"HEAD"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20http_config%20%3E%20(property)%20method%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20http_config%20%3E%20(property)%20method">Link to this property</a>

path: optional string

The endpoint path to health check against.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20http_config%20%3E%20(property)%20path">Link to this property</a>

port: optional number

Port number to connect to for the health check. Defaults to 80 if type is HTTP or 443 if type is HTTPS.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20http_config%20%3E%20(property)%20port">Link to this property</a>

</details>

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20http_config">Link to this property</a>

interval: optional number

The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20interval">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: optional string

A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

retries: optional number

The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20retries">Link to this property</a>

<details>

<summary>

status: optional "unknown"or "healthy"or "unhealthy"or "suspended"

The current status of the origin server according to the health check.

</summary>

One of the following:

"unknown"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"healthy"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"unhealthy"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

"suspended"

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

suspended: optional boolean

If suspended, no health checks are sent to the origin.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20suspended">Link to this property</a>

<details>

<summary>

tcp\_config: optional object {method, port }

Parameters specific to TCP health check.

</summary>

method: optional "connection\_established"

The TCP connection method to use for the health check.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20tcp_config%20%3E%20(property)%20method">Link to this property</a>

port: optional number

Port number to connect to for the health check. Defaults to 80.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20tcp_config%20%3E%20(property)%20port">Link to this property</a>

</details>

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20tcp_config">Link to this property</a>

timeout: optional number

The timeout (in seconds) before marking the health check as failed.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20timeout">Link to this property</a>

type: optional string

The protocol to use for the health check. Currently supported protocols are ‘HTTP’, ‘HTTPS’ and ‘TCP’.

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(model)%20health_check_list_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result>)

success: true

Whether the API call was successful.

[Link to this property](<#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20success>)

<details>

<summary>

result\_info: optional object {count, page, per\_page, total\_count }

</summary>

count: optional number

Total number of results for the requested service

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20count">Link to this property</a>

page: optional number

Current page within paginated list of results

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20page">Link to this property</a>

per\_page: optional number

Number of results per page of results

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20per_page">Link to this property</a>

total\_count: optional number

Total results available without any search parameters

<a href="#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20total_count">Link to this property</a>

</details>

[Link to this property](<#(resource)%20smart_shield.health_checks%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info>)

### List Health Checks

HTTP

HTTPTypeScriptPythonGoTerraform

```
curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/smart_shield/healthchecks \
    -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": [
    {
      "id": "023e105f4ecef8ad9ca31a8372d0c353",
      "address": "www.example.com",
      "check_regions": [
        "WEU",
        "ENAM"
      ],
      "consecutive_fails": 0,
      "consecutive_successes": 0,
      "created_on": "2014-01-01T05:20:00.12345Z",
      "description": "Health check for www.example.com",
      "failure_reason": "",
      "http_config": {
        "allow_insecure": true,
        "expected_body": "success",
        "expected_codes": [
          "2xx",
          "302"
        ],
        "follow_redirects": true,
        "header": {
          "Host": [
            "example.com"
          ],
          "X-App-ID": [
            "abc123"
          ]
        },
        "method": "GET",
        "path": "/health",
        "port": 0
      },
      "interval": 0,
      "modified_on": "2014-01-01T05:20:00.12345Z",
      "name": "server-1",
      "retries": 0,
      "status": "healthy",
      "suspended": true,
      "tcp_config": {
        "method": "connection_established",
        "port": 0
      },
      "timeout": 0,
      "type": "HTTPS"
    }
  ],
  "success": true,
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": [
    {
      "id": "023e105f4ecef8ad9ca31a8372d0c353",
      "address": "www.example.com",
      "check_regions": [
        "WEU",
        "ENAM"
      ],
      "consecutive_fails": 0,
      "consecutive_successes": 0,
      "created_on": "2014-01-01T05:20:00.12345Z",
      "description": "Health check for www.example.com",
      "failure_reason": "",
      "http_config": {
        "allow_insecure": true,
        "expected_body": "success",
        "expected_codes": [
          "2xx",
          "302"
        ],
        "follow_redirects": true,
        "header": {
          "Host": [
            "example.com"
          ],
          "X-App-ID": [
            "abc123"
          ]
        },
        "method": "GET",
        "path": "/health",
        "port": 0
      },
      "interval": 0,
      "modified_on": "2014-01-01T05:20:00.12345Z",
      "name": "server-1",
      "retries": 0,
      "status": "healthy",
      "suspended": true,
      "tcp_config": {
        "method": "connection_established",
        "port": 0
      },
      "timeout": 0,
      "type": "HTTPS"
    }
  ],
  "success": true,
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000
  }
}
```