Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
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.

Command line

The orl CLI wraps this endpoint:

orl usage daily get
GET
/v1/orgs/{orgId}/usage/daily
AuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

In: header

Path Parameters

orgId*string

Query Parameters

days?integer
Range1 <= value <= 90
Default7

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    }  ]}