Skip to main content
GET
Get LLM-spend breakdown

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Query Parameters

from
string<date-time>

Window start, ISO-8601 with offset. Defaults to 30 days before to.

to
string<date-time>

Window end, ISO-8601 with offset. Defaults to now.

groupBy
enum<string>
default:agent

Dimension to group spend by.

Available options:
agent,
model,
conversation
limit
integer
default:50

Maximum rows returned (top-N by cost).

Response

200 - application/json

Top-N spend groups for the window plus window-wide totals used as the share-of-cost denominator.

The response is of type object.