Open docs
Reference

Usage and billing API

Read storage and usage, and manage prepaid balances and invoices.

Free, Personal and Team plans include pooled storage and activity; data transfer is free. Current prices are on the pricing page. See usage, billing and storage and upgrades for how they work in the Console.

These routes require a signed-in user's access token; API keys cannot use them (billing_session_required or human_session_required). Organization owners and admins manage billing and storage. Other workspace members can read their workspace's storage. Amounts in US dollars are strings with six decimal places, such as "12.500000", and byte counts are decimal strings.

See authentication for request headers, and errors and recovery for failed requests.

Usage

GET /v1/organizations/{organization_id}/usage

Read the organization's metered usage for a period. Requires organization owner or admin.

QueryMeaning
fromFirst UTC date, YYYY-MM-DD, inclusive.
toLast UTC date, YYYY-MM-DD, exclusive. The period is 1 to 90 days; the default is the last 30 days including today. Other ranges return 400 invalid_reporting_period.
workspace_id, key_idOptional filters: a workspace, and an API key UUID or session for signed-in activity.

200: period (from and to) and lines, one per metered item:

FieldMeaning
lineWhat was metered, such as storage, reads or writes.
quantityHow much: operations counted, or GB-months for storage.
unitThe unit of quantity.
unit_price_usdThe price per price_per.
price_perWhat one price covers, such as GB-month, read or 1,000 reads.
cost_usdThe metered cost for the period, at each day's price.

filter_options lists the workspaces and API keys you can filter by. The response can carry other fields; ignore those you do not use.

GET /v1/workspaces/{workspace_id}/overview

Read a workspace's drives and stored bytes. 200: workspace_id, drives_count, documents_count (files), source_bytes (bytes stored) and drives, each with id, name, status (creating, ready or failed), documents_count and source_bytes. Organization and workspace totals are batched and may lag recent changes.

Credits

GET /v1/organizations/{organization_id}/billing/wallet

Read the organization's prepaid balance. Historical credit-source fields may remain for compatibility; they do not describe current plan allowances.

FieldMeaning
currencyusd.
balance_usdTotal balance.
reserved_usdCredits held for work in progress.
available_usdCredits you can spend now.
purchased_credits_usdCredits from purchases.
auto_topup_credits_usdCredits from auto-topup, available until used.
subscription_credits_usdAll subscription-sourced credits.
expiring_subscription_credits_usdCredits left from earlier plans that expire.
subscription_credits_expire_atWhen those expire, or null.
promotional_credits_usdAvailable promotional credits.
promotional_grantsEach grant's id, amount_usd, description, created_at and expires_at.
storage_allowanceeffective_storage_bytes, used_storage_bytes and reserved_storage_bytes.
statusBilling state.

POST /v1/organizations/{organization_id}/billing/purchases

Buy credits. Requires Idempotency-Key. Body: amount_usd, a whole number of dollars, at least $10, within the amounts the Console offers; another amount returns 400 invalid_credit_amount. 200: id, state and checkout_url.

Open checkout_url to pay, then read the purchase. A browser redirect alone does not confirm payment. Reuse the same key to retry the same purchase.

GET /v1/organizations/{organization_id}/billing/purchases/{purchase_id}

Read a purchase: id, state (pending, paid, expired or failed) and amount_usd.

GET /v1/organizations/{organization_id}/billing/activity

List credit activity, newest first. Requires organization owner or admin.

QueryMeaning
limit, cursor1 to 100, default 50. Keep the same filter while you page.
activity_typeOptional filter, such as purchase, subscription, storage, promotional, refund, dispute or expiration.

Each entry has id, type, description, amount_usd (positive adds credit, negative uses it), occurred_at and ongoing (true while a daily entry is still adding up).

Automatic top-up

Automatic top-up is not available at launch. Add prepaid credit with a one-time purchase when needed.

Invoices and payment methods

GET /v1/organizations/{organization_id}/billing/invoices

List invoices, newest first. Requires organization owner or admin. Query: limit (1 to 100, default 50) and cursor (it works only for the user who received it). Each entry has id, number, issued_at, description, currency (such as usd), total_cents (a decimal string), status (such as paid or open), hosted_url and pdf_url.

POST /v1/organizations/{organization_id}/billing/portal

Open the payment portal to manage payment methods. Requires Idempotency-Key; send {}. 200: portal_url.

Storage allowances

Storage pools across the organization. Free includes 10 GB, Personal 500 GB, and Team 1 TB per paid seat. Add storage in 500 GB blocks in Billing. A drive still has its own 1 TB and 500,000-file ceilings. See billing and limits.

Paid plans include guaranteed activity capacity, then unlimited activity subject to platform capacity. We will not bill you extra without contacting you first.

Copyright © 2026