Data Connections

Connecting a Cloudflare account

Connect your Cloudflare account to DigiUsher with an Account ID and a read-only Billing API token to track usage-based spend across Cloudflare products.

Overview

To onboard your Cloudflare account to DigiUsher, you create a scoped API token with Billing: Read permission in the Cloudflare dashboard, then provide it along with the Account ID to DigiUsher. This document describes exactly what access is requested, why it is needed, and what credentials to provide.

Self-serve Cloudflare accounts only

A Cloudflare self-serve account is required. DigiUsher does not currently support Cloudflare Enterprise contract accounts. If you are on an Enterprise contract, this integration is not available for your account at this time.


Summary of Access Required

ComponentDetails
IdentityCloudflare API Token — scoped read-only, programmatic access only
Access levelRead-only — account-level billing and usage data
DataDaily billable usage per product per billing period
ScopeA single Cloudflare account (identified by Account ID)
CapabilityWhat It Provides
Spend by productWorkers, R2, D1, Workers AI, Vectorize, Images, Stream, and others
Usage quantitiesRequests, duration, storage, and bandwidth (product-dependent)
Credit rowsNegative-value rows captured as credits

DigiUsher cannot send traffic, modify DNS records, alter zones, or change any Cloudflare configuration.


Prerequisites

Information to Gather

ItemHow to FindDigiUsher Field
Account IDShown on the token confirmation page after creating the API token (Manage Account → API Tokens → Create Token → confirmation page)account_id
API TokenCloudflare dashboard → Manage Account → API Tokens → Create Token → Custom token → Permission: Account > Billing > Read → include your account under Account Resources (shown once at creation — store securely)api_token

Roles Required by the Person Performing Setup

Role / PermissionWhy
Account Administrator or Super AdministratorOnly these roles can create API tokens on a Cloudflare account.

Network & Email Access (For Regulated Environments)

If your organization restricts outbound internet access or email domains, ensure the following are in place before starting:

  • Domain allowlist: Add *.digiusher.com to your network/firewall allowlist so that users in your organization can access the DigiUsher platform from their browsers.
  • Email allowlist: Add digiusher.com as an approved sender domain in your email security gateway. DigiUsher sends onboarding confirmations, alerts, and reports from @digiusher.com addresses.

Setup

Create an API Token

Create a dedicated, scoped API token for DigiUsher.

  1. In the Cloudflare dashboard, open Manage Account → API Tokens.

    Cloudflare Account API Tokens page

  2. Click Create Token → choose Custom token.

  3. Give the token a recognizable name, for example digiusher-billing-read.

  4. Under Permissions, add: AccountBillingRead. Do not select Edit — Read is sufficient and is the minimum required.

    Billing Read scope selected

  5. Under Account Resources, select Include → Specific account → <your account> (or Include → All accounts if you prefer).

  6. Optionally set an expiration date or IP address filter for additional security.

    Select key name and expiration

  7. Click Continue to summary, then Create Token.

  8. On the confirmation page, copy both the API token and the Account ID shown on the same page — the token is shown only once.

    Copy and save the token

Save your credential

The API token is shown only once at creation and cannot be retrieved again. Copy and store it securely — you will enter it into DigiUsher in the next section.

Confirm What You Have

Before moving on, verify:

  • You have the Account ID (starts with cfat_).
  • You have the API token created with Account > Billing > Read permission.

Connect in DigiUsher

After completing the steps above, enter the following into DigiUsher to complete the connection:

FieldWhere to Find
Connection NameAny label you prefer, for example Cloudflare Production
Account IDFrom Step 1
API TokenFrom Step 2

When you connect, DigiUsher validates the token against your account and begins importing billing data. The first sync covers the current billing period and recent history. After that, DigiUsher ingests new usage data daily.


Verification Checklist

  • Paid Cloudflare self-serve account (Enterprise contracts not supported)
  • Account Administrator or Super Administrator role
  • Account ID located and copied
  • API token created with Account > Billing > Read (not Edit)
  • API token saved securely
  • Account ID and API token entered in DigiUsher
  • *.digiusher.com allowlisted in your network/firewall (if applicable)
  • digiusher.com allowlisted as an approved sender domain in your email security gateway (if applicable)

Security

What DigiUsher CAN Access (Read-Only)

  • Billable usage data per product, per billing period
  • Usage quantities by product (requests, storage, bandwidth, duration)

What DigiUsher CANNOT Do

  • Send traffic, modify DNS records, zones, Workers, or any Cloudflare resource
  • Create, rotate, or delete API tokens
  • Access log content, request payloads, or user PII
  • View or modify payment methods, plan settings, or billing contacts
  • Make purchases or any changes to your account

The API token is stored encrypted at rest and is never returned in DigiUsher API responses.

Monitoring

Review tokens at Manage Account → API Tokens. Confirm which tokens exist and when they were last used. Remove any tokens you no longer recognize.

Review API tokens list

Credential Rotation

  1. In the Cloudflare dashboard, create a new API token with Account > Billing > Read.
  2. Update the token in DigiUsher immediately.
  3. Delete the old token from the Cloudflare dashboard.

Avoid ingestion gaps

Always create the new token and update DigiUsher before deleting the old one to avoid an interruption in data ingestion.

Revocation

Delete the API token at Manage Account → API Tokens. This immediately invalidates the token and stops all access. DigiUsher will no longer be able to ingest billing data until a new token is provided.


Troubleshooting

403 / invalid token

Confirm the token has Account > Billing > Read permission (not Edit, and not a different permission category). Re-create the token in the Cloudflare dashboard and re-enter it in DigiUsher.

Account ID not recognized

Confirm you copied the Account ID (a 32-character hex string), not a Zone ID. Zone IDs look similar but are scoped to a single domain. Retrieve the Account ID using one of the three methods in Step 1.

No billing data or incomplete data

Cloudflare billing data is finalized per billing period. Usage mid-period may not yet be reflected. DigiUsher syncs daily and backfills as data is finalized.

Token restricted by IP filter

If you set an IP address filter on the token, confirm DigiUsher's egress IPs are included. Contact DigiUsher support for the current egress IP list.


Need Help?

If you encounter any issues not covered above, contact DigiUsher support at support@digiusher.com and the team will help you get set up.