Skip to main content
GET
List charged spend by day and model

Authorizations

Authorization
string
header
required

A workspace API key in an Authorization: Bearer header. A missing header, a scheme other than Bearer, a key of the wrong shape, and a key we reject are all 401.

Query Parameters

from
string

The start of the range, an ISO date or a Unix millisecond timestamp. Defaults to 30 days before to.

to
string

The end of the range, inclusive. A bare date covers the whole UTC day. Defaults to now.

Response

The daily totals.

object
enum<string>
required
Available options:
usage
currency
string
required
Example:

"USD"

from
string<date-time>
required
to
string<date-time>
required
bucketing
string
required

Which day a figure belongs to.

data
object[]
required
as_of
string<date-time>
required