Skip to content

Usage

GET
/api/analytics/usage
curl --request GET \
--url 'http://localhost:8080/api/analytics/usage?days=30' \
--header 'Authorization: Bearer <token>'

Token usage grouped by provider/model (for cost attribution).

days
Days
integer
default: 30
project_id
Any of:
string

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}