Skip to content

Trends

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

Daily pass/fail/error counts and token totals, zero-filled across the window.

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