Lists hourly usage entries.
Required permission
Account > Billing > General > Read
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.startTime
integerThe Unix timestamp to start from (inclusive).endTime
integerThe Unix timestamp to end at (exclusive). Requires startTime.
Response body
- {object}Response object.
data
{object} requiredResult data.usage
[array]An array of hourly usage entries, sorted by most recent first.- {object}
timestamp
numberThe Unix timestamp of the billing hour.paasUsage
{object}The PaaS usage for this hour.price
{object}total
numberThe total PaaS price, in cents.cpu
numberThe CPU usage price, in cents.memory
numberThe memory usage price, in cents.storage
numberThe storage usage price, in cents.gpu
numberThe GPU usage price, in cents.byocUsage
{object}price
{object}The customer-level BYOC price total. Always reflects the full customer total, regardless of drill-down filters.total
numberThe total BYOC price, in cents.vcpu
numberThe vCPU usage price, in cents.memory
numberThe memory usage price, in cents.gpuMemory
numberThe GPU memory usage price, in cents.cluster
numberThe cluster usage price, in cents.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/billing/usage
GET /v1/teams/{teamId}/billing/usage
Example response
200 OK
A list of hourly usage entries.
JSON
{
"pagination": {
"hasNextPage": false,
"count": 1
}
}