Skip to main content
GET
Read a virtual key's spend

Authorizations

X-Auth-Token
string
header
required

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Path Parameters

id
string
required

Query Parameters

from
integer
Required range: -9007199254740991 <= x <= 9007199254740991
to
integer
Required range: -9007199254740991 <= x <= 9007199254740991

Response

Spend summary for the key

virtual_key_id
string
required
spent_usd
string
required

Spend over the window, summed from the cost path. Decimal string, up to 9 fractional digits, trailing zeros trimmed, never exponent notation.

requests
integer
required
window
object
required