Skip to main content

List billing detail records

GET/v1/billing/detailsTry it
View request and response examples ↓

Returns billing detail records for the authenticated organization.

Each record includes billed amounts and usage information for the selected bucket.

Aggregation behavior is controlled by granularity:

  • month: group by month
  • day: group by day
  • hour or omission: group by hour

Time filters use startTime and endTime, which must be provided together when either is set. If both are omitted, hour and day default to the most recent 30 days, and month defaults to the most recent 3 months.

Retention windows also depend on granularity:

  • hour: startTime must be within the most recent 6 months
  • day: startTime must be within the most recent 1 year
  • month: the month containing startTime must be within the most recent 24 months

Authorization

X-API-Keystring · headerrequired

API key for /v1 requests.

Query parameters

pageinteger

Page number. Defaults to 1.

Minimum1
Default1
sizeinteger

Page size. Defaults to 20. Maximum is 100. Values above 100 will be coerced to 100.

Minimum1
Maximum100
Default20

Restricts results to a single warehouse ID.

clusterIdstring

Restricts results to a single cluster ID.

Filters by a partial cluster name match. When combined with clusterId, the selected cluster must also match this filter.

Resource type filter. compute means non-BYOC compute usage, cache means cache capacity usage, storage means storage usage, byoc means BYOC compute charges, support means support charges, and frontend_compute means frontend compute usage.

Allowed valuescomputecachestoragebyocsupportfrontend_compute

Aggregation level. Use hour, day, or month. Defaults to hour.

Allowed valueshourdaymonth
Exampleday
startTimestring · date-time

Inclusive lower bound of the billing detail window. startTime and endTime must be provided together when either is set. For hour, startTime must be within the most recent 6 months; for day, within the most recent 1 year; for month, the month containing startTime must be within the most recent 24 months. RFC3339 is recommended.

Example2026-04-01T00:00:00Z
endTimestring · date-time

Exclusive upper bound of the billing detail window. startTime and endTime must be provided together when either is set. For month, the month containing endTime is used as the last selected month. RFC3339 is recommended.

Example2026-04-02T00:00:00Z
sortBystring

Primary sort field. Supported values are serviceStartTime and serviceEndTime. Defaults to serviceStartTime.

Allowed valuesserviceStartTimeserviceEndTime
sortOrderstring

Sort direction. Supported values are asc and desc. Defaults to desc.

Allowed valuesascdesc

Response

Billing detail records returned successfully.

application/json
successbooleanrequired

Indicates whether the request succeeded.

Exampletrue
requestIdstringrequired

Request ID returned by the server for tracing.

Examplereq-20260402-001
dataobject[]required
Item fields
idstringrequired

Billing detail row ID.

billingIdstring

Parent billing ID when available.

Warehouse ID.

Resource type for the billed line item.

Undiscounted amount before pricing discounts are applied, represented as a decimal string.

Final billed amount after pricing discounts are applied, represented as a decimal string.

Portion of billedAmount that is pending offset or settlement, represented as a decimal string.

monthstring

Billing month in YYYY-MM format when available.

Organization ID.

serviceStartTimestring · date-time

Aggregated service start time.

serviceEndTimestring · date-time

Aggregated service end time.

createdAtstring · date-time

Earliest creation time among the aggregated rows.

updatedAtstring · date-time

Latest update time among the aggregated rows.

Display label for the billed resource, when available.

Resource ID, when available.

Pricing discount amount, represented as a decimal string. This is typically grossAmount - billedAmount.

usagestring

Human-readable usage quantity for the billed resource.

Cluster name when the billing row is cluster-scoped.

clusterIdstring

Cluster ID when the billing row is cluster-scoped.

pageintegerrequired
sizeintegerrequired
totalinteger · int64required
amountstringrequired

Total billedAmount across the filtered billing detail result set, after pricing discounts are applied, represented as a decimal string.

Example123.456

Enter to send · Shift+Enter for a new line