# Cloudflare

> Connect a Cloudflare API token scoped to Billing Read to LevelFour.

Source: https://docs.levelfour.ai/connectors/cloudflare


## Prerequisites

* A Cloudflare pay-as-you-go account.
* Access to create an account-scoped API token with the Billing Read permission.

## Connect

### Create an API token in Cloudflare

In the Cloudflare dashboard, create a custom API token with **Account > Billing > Read** for the account you want to connect. Copy the token and your 32-character Account ID from the dashboard URL.

### Add it to LevelFour

Open **Connect Providers**, select **Cloudflare**, and paste the token and Account ID. Click **Add API token**.

## Confirming it worked

The connection moves to **Connected**. Your first data appears within a day.

## Rotating or removing access

### Rotating the credential

Create a new API token in Cloudflare, paste it into **Connect Providers**, then revoke the old token.

### Removing access

Disconnect Cloudflare under **Connect Providers**, then revoke the token from Cloudflare's dashboard.

## Troubleshooting

| Symptom                                            | What to do                                                                                            |
| -------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| The connection is refused                          | Enterprise contract accounts are not supported. Confirm the account is pay-as-you-go                  |
| Reported spend is much lower than your invoice     | Fixed plan subscription fees are not included. Only usage overage is covered                          |
| One account in a multi-account setup shows nothing | Each account needs its own token and connection. A token scoped to one account does not cover another |

## Next

* [Connect Providers](/connectors) lists every provider you can connect
