Skip to main content
GET
Typescript (SDK)

Authorizations

Authorization
string
header
required

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Headers

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Query Parameters

start
string<date-time> | null

Inclusive window start (RFC 3339). Omit for no lower bound.

end
string<date-time> | null

Exclusive window end (RFC 3339). Defaults to the current time.

Response

Successful Response

Aggregate spend computed as price × runtime overlap with the window; derived on read, never stored.

deployments
SpendGroup · object
required

Aggregate spend for one resource class.

finetune
SpendGroup · object
required

Aggregate spend for one resource class.

total_usd
number<double>
required

Total spend across deployments and fine-tune jobs in the window.

window
SpendWindow · object
required

The resolved reporting window.