Skip to main content
GET
Get Usage

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Query Parameters

end
string

End of the range, in the same formats as start. Defaults to now.

start
string

Start of the range: a relative offset such as -5m, -1h or -30d, or an ISO 8601 timestamp (UTC if no offset is given). Defaults to -30d.

Response

buckets
object[]
required

Buckets with usage, oldest first.

end
string<date-time>
required

End of the range.

granularity
enum<string>
required

Bucket size, chosen from the requested range.

Available options:
5m,
1h,
1d
sources
object
required

Usage by source code over the whole range.

start
string<date-time>
required

Start of the range.

total
object
required

Usage summed over sources and the whole range.