---
title: API
description: API endpoints for managing Network Flow configurations.
image: https://developers.cloudflare.com/core-services-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/network-flow/llms.txt  
> Use this file to discover all available pages before exploring further.

[Skip to content](#%5Ftop) 

# API

Use Network Flow's (formerly Magic Network Monitoring) API to configure your account and rules.

## Account configuration

Refer to [Account configuration API methods](https://developers.cloudflare.com/api/resources/magic%5Fnetwork%5Fmonitoring/subresources/configs/methods/get/) to:

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

## Rules configuration

Refer to [Rules configuration API methods](https://developers.cloudflare.com/api/resources/magic%5Fnetwork%5Fmonitoring/subresources/rules/methods/list/) to:

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

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/network-flow/","name":"Network Flow"}},{"@type":"ListItem","position":3,"item":{"@id":"/network-flow/api/","name":"API"}}]}
```
