Usage
Per-day spend over a trailing window (compute + inference segments)
Display aggregation for the dashboard spend chart. Buckets the org's usage-record cost (clamped per UTC day) and drained inference debits by calendar day, with per-product segments. Read-only: rides the same pricing iterator as settlement and the deploy gate, never re-prices.
Authorization
apiKey AuthorizationBearer <token>
OpenRelay API key. Send it as Authorization: Bearer vl_….
In: header
Path Parameters
orgId*string
Query Parameters
days?integer
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/orgs/string/usage/daily"{
"daily": [
{
"date": "string",
"cents": 0,
"segments": [
{
"key": "string",
"cents": 0
}
]
}
],
"previousCents": 0,
"previousSegments": [
{
"key": "string",
"cents": 0
}
]
}{
"error": "string",
"code": "string"
}{
"error": "string",
"code": "string"
}{
"error": "string",
"code": "string"
}Command line
The orl CLI wraps this endpoint:
orl usage daily get