Billing
Read-only wallet endpoints — balance, lots, ledger, usage. Available even when org is suspended.
Get billing summary
Returns the wallet snapshot for the authenticated user's organization: credit balance, billing status, threshold, and project quota. Available even on suspended orgs.
Get billing summary › Responses
Billing summary
org_idbilling_statuscredit_balance_centsDenormalized cache of SUM(ledger). Source of truth is credit_ledger_entries.
low_credit_threshold_centsBelow this balance the org transitions to low_credit_warned then suspended. Default 500.
project_quotaproject_countActive (non-deleted) projects in this org.
low_credit_warned_atList active credit lots
Returns all credit lots for the org (consumed and active). Used to show the user where their balance comes from (promo, plan-included, manual, topup) and when each lot expires. Lots are consumed in priority order (promo → plan_included → manual → topup) then by earliest expiry.
List active credit lots › Responses
List of credit lots
idorganization_idlot_typeinitial_amount_centsremaining_amount_centsconsumption_priority1=promo, 2=plan_included, 3=manual, 4=topup. Lower priority is consumed first.
expires_atcreated_atList ledger entries (paginated)
Daily usage totals (chart-ready)
Returns one row per UTC day with the sum of billable usage in cents — convenient for usage charts. Default window is the last 30 days.
query Parameters
fromRFC3339, default = now − 30 days
toRFC3339, default = now. Must be strictly after from.
Daily usage totals (chart-ready) › Responses
Daily usage rollup
dayUTC start-of-day timestamp.
total_centsSum of metered usage for the day, in cents.
List metering runs over a window
Hourly usage rollup from metering_runs. Default window is the last
30 days. Use this to render usage charts.
query Parameters
fromRFC3339, default = now − 30 days
toRFC3339, default = now. Must be strictly after from.
List metering runs over a window › Responses
List of metering runs
hour_bucketproject_idorganization_idbillable_secondsSeconds the project was running during the hour (clamped to 3600).
vm_sizeprice_cents_per_hour_snapshottotal_cost_centsprocessed_at