Get an organisation's usage
Returns what an organisation used hour by hour and what each hour cost in US dollars, with the totals and a line for each package. Only hours that have ended are here. For the month as it stands, read the billing summary.
/_luna/orgs/{org}/usageAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
billing:readorgstringrequiredThe organisation, by its slug.
sinceinteger<int64>Usage from this moment on, in milliseconds since the Unix epoch. 31 days before until when left out.
untilinteger<int64>Usage up to this moment, in milliseconds since the Unix epoch. Now when left out.
The organisation's usage.
organisationstringrequiredThe organisation's slug.
hoursOrgUsageHour[]requiredEach hour that has ended, oldest first.
Show propertiesHide properties
OrgUsageHourhourinteger<int64>requiredThe hour's number, counted from the Unix epoch.
startMsinteger<int64>requiredWhen the hour starts, in milliseconds since the Unix epoch.
usageobjectrequiredWhat was used in the hour, as raw counts by meter.
costUsdnumber<double>requiredWhat the hour cost, in US dollars.
totalsobjectrequiredEvery hour added up, as raw counts by meter.
costUsdnumber<double>requiredWhat the hours cost together, in US dollars.
packagesobjectrequiredA line for each package the organisation uses, by package.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.