Analytics
Usage
GET
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Start date for the time range (inclusive). If not provided, defaults to the first day of the current month.
End date for the time range (exclusive). If not provided, defaults to the last day of the current month.
Time granularity for grouping (minute, hour, day, month, year)
Available options:
minute
, hour
, day
, month
, year
Fields from event_metadata to include and sum
Examples:
["completion_tokens", "total_tokens"]
Fields from tags to group by
Examples:
["model", "project.name"]
Response
200
application/json
Successful Response
The response is of type GetUsageResultItem · object[]
.