---
title: API · Cloudflare Magic Network Monitoring docs
description: Use Magic Network Monitoring's API to configure your account and rules.
lastUpdated: 2024-12-16T22:33:26.000Z
source_url:
  html: https://a651cb56.preview.developers.cloudflare.com/magic-network-monitoring/api/index.md
  md: https://a651cb56.preview.developers.cloudflare.com/magic-network-monitoring/api/
---

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
