Part 1: Cloudflare Data Ingestion
Set up a Cloudflare app so ConfigView can pull your Cloudflare data into the dashboard.Step 1: Create an API Token
- Open the API Tokens page directly: https://dash.cloudflare.com/profile/api-tokens (in the dashboard this is the user menu in the top-right → My Profile → API Tokens).
- Click the blue Create Token button.
- Scroll to the bottom of the template list to Create Custom Token and click Get started.
-
Give the token a Token name you’ll recognize, e.g.
ConfigView. -
Under Permissions, add one row per item below. Each row is three dropdowns —
Group, then Permission, then Access level. Click + Add more to add another row.
Group Permission Access Account Account Settings Read Account Access: Organizations, Identity Providers, and Groups Read Account Workers Scripts Read Account API Tokens Read Account Billing Read Account Registrar Read Zone Zone Read - Under Account Resources, choose Include → your account. Under Zone Resources, choose Include → All zones from an account → your account.
- Click Continue to summary, then Create Token.
- Copy the token value now — Cloudflare shows it only once. If you lose it you’ll have to roll it (see below).
Editing an existing token
If aConfigView token already exists but some scripts fail their health check, it most likely has too few permissions. You cannot view an existing token’s secret value, but you can change its permissions:
- Go to https://dash.cloudflare.com/profile/api-tokens.
- Find the token in the list, click the ⋯ (or Edit) action on its row.
- Add any missing rows from the permissions table above, then Continue to summary → Save.
- Saving permission changes does not change the token value, so you do not need to update the secret in ConfigView.
- If you don’t have the original token value (e.g. it was never saved), use Roll to generate a new value, then update
CLOUDFLARE_API_TOKENin ConfigView (Step 2).
Find your Account ID
Open https://dash.cloudflare.com, select your account, and copy the Account ID from the right-hand sidebar (also visible in the address bar:dash.cloudflare.com/<account_id>).
Step 2: Add the Token to ConfigView
- Go to your ConfigView dashboard:
https://{companyname}.configview.com/admin/secret/ - Click Add Secret
- Create the following secrets:
CLOUDFLARE_API_TOKEN: The API token you just createdCLOUDFLARE_ACCOUNT_ID: Your Cloudflare Account ID
- Click Save
Step 3: Enable the Cloudflare App in ConfigView
- Go to:
https://{companyname}.configview.com/admin/cron/ - You should see Cloudflare in the list of available apps
- Select the scripts you want to run.
- Click Save
Step 4: Verify
- Go to:
https://{companyname}.configview.com/admin/status/ - Run the Cloudflare health check.
- All checks should pass.
Available Scripts
| Script | Table | Description |
|---|---|---|
| Domains | cloudflare_domains | Zones / domains, plan, status, and activation dates |
| Members | cloudflare_members | Account members, their status, roles, and 2FA |
| Workers | cloudflare_workers | Worker scripts with size, usage model, and deploy metadata |
| API Tokens | cloudflare_api_tokens | Account-owned API tokens, status, and last-used dates |
| Roles | cloudflare_roles | Account roles and their permission scopes |
| Subscriptions | cloudflare_subscriptions | Products, licenses, and billing (rate plan, price, frequency, state) |
Note: Cloudflare exposes products, licenses, and billing through a single subscriptions endpoint — each subscription’srate_planis the product/license tier and theprice,currency,frequency, andstatefields describe the billing.
Data Tables
Once the scripts run, the corresponding Cloudflare tables will be created in your database. All tables include arun_at column for historical tracking and a raw JSON column with the full Cloudflare object.