Enable and Disable Monitors

Individual monitors can be enabled or disabled to control DNS checking without losing configuration or event history.

Disabling a Monitor

Send a POST request to /monitors/{uuid}/disable:

curl -X POST https://api.dnsradar.dev/monitors/mon_abc123/disable \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The monitor immediately stops checking DNS and won't trigger webhooks.

Enabling a Monitor

Send a POST request to /monitors/{uuid}/enable:

curl -X POST https://api.dnsradar.dev/monitors/mon_abc123/enable \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The monitor resumes DNS checking according to its frequency setting.

API Response

Both endpoints return the updated monitor:

{
  "uuid": "mon_abc123",
  "domain": "piedpiper.com",
  "record_type": "A",
  "is_active": false,
  "frequency": 15,
  ...
}

Bulk Operations

For bulk enable/disable, use group-level updates:

curl -X PATCH https://api.dnsradar.dev/groups/customer-123/monitors \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "is_active": false
}'

This disables all monitors in the group at once. See bulk updates documentation.

Monitoring State

You can check whether a monitor is currently active by retrieving its details.

Check Single Monitor Status

Get the monitor details to inspect the is_active field:

curl -X GET https://api.dnsradar.dev/monitors/mon_abc123 \
  -H "X-API-Key: YOUR_API_KEY"

The response includes the is_active parameter:

{
  "uuid": "mon_abc123",
  "domain": "piedpiper.com",
  "subdomain": "www",
  "record_type": "A",
  "expected_value": ["1.2.3.4"],
  "is_active": true,
  "frequency": 15,
  "last_checked": "2026-01-09T10:30:00Z",
  "created": "2026-01-01T08:00:00Z"
}

Monitor State Field

ValueStateDescription
trueActiveMonitor is checking DNS and triggering webhooks
falseDisabledMonitor is paused and not performing checks

List Monitors with State

Get all monitors to see their active status:

curl -X GET https://api.dnsradar.dev/monitors \
  -H "X-API-Key: YOUR_API_KEY"

Filter for only active monitors:

curl -X GET https://api.dnsradar.dev/monitors?is_active=true \
  -H "X-API-Key: YOUR_API_KEY"

Filter for only disabled monitors:

curl -X GET https://api.dnsradar.dev/monitors?is_active=false \
  -H "X-API-Key: YOUR_API_KEY"

Next Steps