The tenant's usage per UTC day or month, and its storage
GET
/v1/usage
const url = 'https://example.com/v1/usage?by=day';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/usage?by=day' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”from
string
A UTC day (2026-11-01) or date and time; the start of the month by default.
to
string
Until (not including) this day or time; now by default.
by
string
Totals per UTC day or month.
Responses
Section titled “Responses”The answer.
Media typeapplication/json
object
metering
required
string
timezone
required
string
from
required
string
to
required
string
by
required
string
periods
required
Array<object>
object
period
required
string
renders
required
integer
outcomes
required
object
kinds
required
object
pages
required
integer
bytes
required
integer
batches
required
integer
storage
required
object
now
required
object
fonts
required
object
images
required
object
outputs
required
object
records
required
object
profiles
required
object
resources
required
object
templates
required
object
total
required
object
daily
required
Example generated
{ "metering": "example", "timezone": "example", "from": "example", "to": "example", "by": "example", "periods": [ { "period": "example", "renders": 1, "outcomes": {}, "kinds": {}, "pages": 1, "bytes": 1, "batches": 1 } ], "storage": { "now": { "fonts": {}, "images": {}, "outputs": {}, "records": {}, "profiles": {}, "resources": {}, "templates": {}, "total": {} }, "daily": "example" }}The request is malformed (bad-request).
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}No key, or not a valid one.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}The key lacks the scope, or its tenant is suspended or deleted.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}