Get usage summary
Get the usage and cost of one billing window, with totals per usage type and, on request, per day and per service. Without period_start and period_end it covers the current billing period. For an earlier period, copy both values from an item of the usage periods endpoint. The amounts of a billing period are calculated the way its invoice is, at the current prices, so they are an estimate of the invoice and not a copy of it. All amounts are before tax, credits and discounts. The current period is still open, so its amounts can change until it closes. A window over several billing periods is priced period by period, and a window that covers only a part of a period uses the prices of that whole period. The totals of a window over several periods can differ by a few cents from adding up the single periods, because each billing period is rounded on its own. Usage is counted in the window it was billed in, which is several hours after it happened, so days can start with a day before the window. Days are UTC days. Returns 404 when the company has no active subscription. Send usage requests one after another: while another usage request of the company is still running, a request can get a 429 with a retry-after header.
Authorizations
Query Parameters
Start of the window in ISO 8601 format, normally the period_start of an item of the usage periods endpoint. Send it together with period_end, or leave both out to get the current billing period.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$"2026-10-14T09:23:11.000Z"
End of the window in ISO 8601 format, normally the period_end of an item of the usage periods endpoint. It cannot be before period_start and the window can cover at most 366 days.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$"2026-11-14T09:23:11.000Z"
Count only the usage of the services that are in this project now. Usage of a service that was deleted or moved out of the project is not counted, and a project without services gives zero usage. Returns 404 when the company has no such project.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Comma-separated identifiers of the services to count: applications, databases, static sites, object storage buckets and load balancers. Up to 100 identifiers. Together with project_id, only the listed services that are in the project are counted. An identifier without usage adds nothing.
"fb5e5168-4281-4bec-94c5-0d1584e9e657,0b9b4e3c-6a0f-4d53-9a55-6f0f4d0f1c2e"
Comma-separated usage types to count. By default every type is counted. appCompute - running time of application processes. appStorage - persistent disks of applications. appBuild - build time of applications. appBandwidth - bandwidth of applications. staticSiteBuild - build time of static sites. staticSiteBandwidth - bandwidth of static sites. db - running time of databases. objectStorage - data stored in object storage buckets. loadBalancer - running time of load balancers. loadBalancerBandwidth - bandwidth of load balancers.
"appCompute,db"
Response
Default Response
Start of the window the usage is counted for, in ISO 8601 format
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$"2026-10-14T09:23:11.000Z"
End of the window the usage is counted for, in ISO 8601 format. For a range of days it is the last millisecond of the last day.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$"2026-11-14T09:23:11.000Z"