---
title: API · Cloudflare Magic Network Monitoring docs
description: Use Magic Network Monitoring's API to configure your account and rules.
lastUpdated: 2025-11-19T16:38:52.000Z
chatbotDeprioritize: false
source_url:
  html: https://developers.cloudflare.com/magic-network-monitoring/api/
  md: https://developers.cloudflare.com/magic-network-monitoring/api/index.md
---

Use Magic Network Monitoring's API to configure your [account](https://developers.cloudflare.com/api/resources/magic_network_monitoring/subresources/configs/methods/get/) and [rules](https://developers.cloudflare.com/api/resources/magic_network_monitoring/subresources/rules/methods/list/).

## Account configuration

Refer to [account configuration](https://developers.cloudflare.com/api/resources/magic_network_monitoring/subresources/configs/methods/get/) to:

* Create, list, update, and delete Magic Network Monitoring configurations
* List default sampling, router IPs, and rules for an account

## Rules configuration

Refer to [rules configuration](https://developers.cloudflare.com/api/resources/magic_network_monitoring/subresources/rules/methods/list/) to:

* Create, list, update, and delete rules
* Update advertisement for a rule
