Skip to content
Load Balancing
Visit Load Balancing on GitHub
Set theme to dark (⇧+D)

For a full list of monitor properties, refer to Create Monitor. If you need help with API authentication, refer to Cloudflare API Quickstart.

curl -X POST \
-H "X-Auth-Email:" \
-H "X-Auth-Key: REDACTED" \
"" \
-H "Content-Type: application/json" \
-d '{
"description":"Login page monitor",
"header": {

The response contains the complete definition of the new monitor.

"success": true,
"errors": [],
"messages": [],
"result": {
"id": ":monitor-id",
"created_on": "2021-01-01T05:20:00.12345Z",
"modified_on": "2021-01-01T05:20:00.12345Z",
"type": "https",
"description": "Login page monitor",
"method": "GET",
"path": "/health",
"header": {
"Host": [
"X-App-ID": [
"port": 8080,
"timeout": 3,
"retries": 0,
"interval": 90,
"expected_body": "alive",
"expected_codes": "2xx",
"follow_redirects": true,
"allow_insecure": true,
"consecutive_up": 3,
"consecutive_down": 2,
"probe_zone": ""