API

BillingUsage

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/billing/usage/breakdown load Usage breakdown

Fields

Field Type Required Description

load

GET /api/v1/organizations/{organization_id}/billing/usage/breakdown

Operation ID: usage_breakdown_api_v1_organization_billing.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
meter query string No A meter key; without one the series cover every meter and subjects is empty.
window query enum: 24h, 7d, period No

Responses

200: Usage breakdown

application/json

Property Type Required Description
as_of string Yes
by_meter array of object and object Yes
live array of object and object Yes
meter_key string,null Yes
source enum: tinybird, rollup Yes
subjects array of object Yes Empty when no meter was given or the source is rollup.
subjects[].dimension_value string Yes
subjects[].quantity number Yes
subjects[].reading_count integer Yes
subjects[].subject_id integer,null Yes
subjects[].subject_type string Yes
subjects[].unit string Yes
totals array of object Yes
totals[].dimension_value string Yes Empty for meters without a dimension.
totals[].meter_key string Yes
totals[].quantity number Yes
totals[].unit string Yes
window enum: 24h, 7d, period Yes
window_ended_at string Yes
window_started_at string Yes
400: Unknown meter or window
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway