Connect a source

Connect DigitalOcean

Paste a personal access token of your DigitalOcean team, and Costfluent imports the team's daily cost by SKU, resource and region from DigitalOcean's Billing Insights.

Costfluent reads your DigitalOcean spend from the team's Billing Insights, through DigitalOcean's API, with a personal access token you create for it. One connection is one DigitalOcean team, and the cost of everything that team runs.

How Costfluent connects

You give Costfluent the token, nothing else. Costfluent stores it encrypted and uses it for two reads only, and never for a request that changes anything: the account the token was created in, which names its team, and the team's Billing Insights, a range of days at a time. The team becomes the connection's identity, and the token is only ever used for that team. The account answer also carries the email address of the user who created the token; Costfluent reads past it and keeps the team's ID and name only.

The token needs two custom scopes, both read only:

  • billing:read, to read the team's Billing Insights, the cost itself.
  • account:read, to read which team the token belongs to, so you never type the team's ID.

DigitalOcean does not show Costfluent which scopes a token holds, so a token with full access would also connect. Create a token with only the two custom scopes, for Costfluent alone, so it can read nothing else and you can delete it without touching anything else.

Prerequisites

  1. The Owner or Integration owner organization role in Costfluent.
  2. A DigitalOcean team, and a role in it that offers the billing:read scope. DigitalOcean offers only the scopes your role in the team allows (How to create a personal access token, read 2026-11-24).
  3. Cost on or after 1 December 2025, the first day DigitalOcean serves Billing Insights for.

Connect

Create the token in DigitalOcean

  1. Sign in to the DigitalOcean control panel and switch to the team whose cost you want to see. A token belongs to the team it is created in.
  2. Open “Account”, then “API”. On the “Tokens” tab, under “Personal access tokens”, select “Generate New Token”.
  3. Name it for Costfluent, such as Costfluent, and choose an expiration.
  4. Under “Scopes”, choose “Custom Scopes” and select only billing:read and account:read.
  5. Select “Generate Token” and copy the token. DigitalOcean shows it only once.

Connect in Costfluent

  1. Open Settings, then Integrations, select DigitalOcean, and open the Connect tab.
  2. Select "Add access token", keep the suggested Display name or enter your own, and paste the token into Personal access token.
  3. Select "Test connection" to see each check, or "Connect" to save.

Costfluent reads the token's team and a day of the team's Billing Insights before storing anything, so a connection that saves can read your cost. A token of a team your organization has already connected is refused.

A DigitalOcean organization that groups several teams is not read as one. Connect each team with a token created in that team.

Data and freshness

Connecting imports as far back as your plan's backfill reaches, and at most six months (Manage connections), but never before 1 December 2025: DigitalOcean serves no Billing Insights for earlier days. Cost arrives by day, in US dollars.

Each day's cost is DigitalOcean's nightly estimate of that day, not an invoice. DigitalOcean notes that the days may not add up to the month's invoice, so a closed month's total in Costfluent can differ from the invoice by a small amount. Costfluent does not read the invoice itself. Each sync reads the running month again, and the previous month until the 15th, so a day DigitalOcean revises is replaced, not counted twice.

Reporting dimensions

  • Service is the DigitalOcean product named in the SKU, such as Droplets or Kubernetes, with its Service category; a product Costfluent does not recognize yet has the service DigitalOcean and the category Other.
  • SKU is DigitalOcean's SKU, such as 1-DO-DROP-0109.
  • Resource is the item as DigitalOcean describes it on an invoice. DigitalOcean serves no resource ID, so the description names and identifies it.
  • Region is the region the item runs in.
  • Sub-account is the team, by its URN, do:team:<id>.
  • Tag digitalocean:group names the invoice group an item belongs to, such as a Kubernetes cluster, where DigitalOcean names one. Costfluent writes this tag itself, so it does not count a row as tagged.
  • DigitalOcean's API serves none of your own tags, so DigitalOcean rows carry none.
  • The billing account is the team, and the billing period is the calendar month.

Update or disconnect

After connecting

The Manage tab lists the connection by its display name. Open the gear icon beside it to see whether the Billing Insights are still readable, which workspaces the connection feeds, and which months have been imported. Run checks runs the checks again on request.

Rotating or removing access

A token's scopes cannot be changed once it exists. To rotate it, or before it expires, create a new token in the same team with the same two scopes, select Update credentials on the connection page and paste it; then delete the old token on the “Tokens” tab. A token of another team is refused, because the connection's history belongs to its team: connect that team as a new connection instead.

To retire the connection, remove it in Costfluent and delete its token in DigitalOcean. Removing it erases the cost it imported (Remove a connection).

Troubleshooting

The check's messages say what DigitalOcean answered:

  • DigitalOcean refused this token. The token is wrong, has expired or was deleted. Create a personal access token with both custom scopes in the team, as described above, and paste it.
  • DigitalOcean refused to name the team of this token … Give the token the account scope. The token was created without account:read. A token's scopes cannot be changed, so create a new token with both custom scopes.
  • Create the token in the DigitalOcean team whose cost Costfluent should read. DigitalOcean named no team for the token. Switch to the team in the control panel and create the token there.
  • DigitalOcean refused the billing insights for this token … Give the token the billing scope. The token was created without billing:read, or your role in the team does not allow it. Create a new token with both custom scopes, as a team member whose role offers billing:read.
  • The supplied DigitalOcean team does not match the one the token was validated against. Shown when updating credentials: the token belongs to another team. Connect that team as a new connection.
  • DigitalOcean could not be reached to verify these credentials. DigitalOcean did not answer, or answered with an error of its own. Select Run checks later; a connection saved meanwhile is checked again automatically.