Skip to main content
GET
Usage

Authorizations

Authorization
string
header
required

A team API key, sk_offstage_…, created in the console. Everything it touches belongs to its team.

Query Parameters

days
integer
default:30

How many UTC days, ending today.

Required range: 1 <= x <= 90

Response

The usage.

period
string
required

This month, YYYY-MM (UTC).

from
integer
required

The first millisecond of the window.

Required range: x >= 0
to
integer
required

Now.

Required range: x >= 0
totals
object
required
daily
object[]
required

One row per UTC day in the window, oldest first, zeros included.

byKey
object[]
required

One row per API key that ran work in the window, most expensive first.