A valid request URL is required to generate request examples{
"total_requests": 123,
"total_tokens": 123,
"total_cost": 123,
"average_latency": 123,
"success_rate": 123,
"user_facing_success_rate": 123,
"user_facing_total_requests": 123,
"cache_hit_rate_total_requests": 123,
"direct_cache_hits": 123,
"semantic_cache_hits": 123,
"has_previous_period": true,
"previous": {
"total_requests": 123,
"total_tokens": 123,
"total_cost": 123,
"average_latency": 123,
"success_rate": 123,
"user_facing_success_rate": 123,
"user_facing_total_requests": 123,
"cache_hit_rate_total_requests": 123,
"direct_cache_hits": 123,
"semantic_cache_hits": 123
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "anthropic",
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "anthropic",
"model_requested": "<string>",
"request_type": "<string>"
}
}Get log statistics
Returns statistics for logs matching the specified filters.
A valid request URL is required to generate request examples{
"total_requests": 123,
"total_tokens": 123,
"total_cost": 123,
"average_latency": 123,
"success_rate": 123,
"user_facing_success_rate": 123,
"user_facing_total_requests": 123,
"cache_hit_rate_total_requests": 123,
"direct_cache_hits": 123,
"semantic_cache_hits": 123,
"has_previous_period": true,
"previous": {
"total_requests": 123,
"total_tokens": 123,
"total_cost": 123,
"average_latency": 123,
"success_rate": 123,
"user_facing_success_rate": 123,
"user_facing_total_requests": 123,
"cache_hit_rate_total_requests": 123,
"direct_cache_hits": 123,
"semantic_cache_hits": 123
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "anthropic",
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "anthropic",
"model_requested": "<string>",
"request_type": "<string>"
}
}Authorizations
Management API authentication for /api/* endpoints. Use the Authorization header
with Bearer <token>, where <token> is one of:
- a Bifrost management API key,
- a dashboard session token issued by
POST /api/session/login, - base64 of
<admin-username>:<admin-password>(legacy equivalent ofBasicAuth).
Virtual keys (sk-bf-*) and the x-api-key header are not accepted on management APIs -
the sole exception is GET /api/governance/virtual-keys/quota, which is virtual-key-only.
Query Parameters
Comma-separated list of providers to filter by
Comma-separated list of models to filter by
Comma-separated list of statuses to filter by
Comma-separated list of object types to filter by
Comma-separated list of selected key IDs to filter by
Comma-separated list of virtual key IDs to filter by
Comma-separated list of project IDs to filter by
Comma-separated list of routing rule IDs to filter by
Comma-separated list of routing engines to filter by (routing-rule, governance, or loadbalancing)
Comma-separated list of function names. Matches requests whose response called any of them, using the persisted tool_call_names metadata on the log row. Names are recorded even when content logging is disabled and stay on the row in hybrid storage mode; the call arguments are not.
Comma-separated list of routing complexity tiers to filter by (SIMPLE, MEDIUM, COMPLEX, or the legacy REASONING tier recorded on historical rows before it was merged into COMPLEX)
Comma-separated list of complexity decision mechanisms to filter by (semantic, llm, session, or skipped)
Exact Bifrost session ID used for key stickiness and request correlation
Start time filter (RFC3339 format)
End time filter (RFC3339 format)
Minimum latency filter
Maximum latency filter
Minimum tokens filter
Maximum tokens filter
Minimum cost filter
Maximum cost filter
Only show logs with missing cost
Search in request/response content
Exact lookup on a log ID (which is the request ID). Takes precedence over the time range — start_time/end_time/period are ignored when it is set. roots_only is ignored too, so an ID naming a fallback child returns that child rather than collapsing it into its root.
When true, also return the same statistics for the immediately preceding window of equal length, so callers can render change-vs-previous-period. Requires a bounded window (start_time and end_time, or period); an unbounded all-time filter has no preceding window, and the response then omits previous with has_previous_period false. A failure to compute the previous period degrades to has_previous_period false rather than failing the request.
Response
Successful response
Log statistics for the requested window. The current period's fields are at the top level, so a request without compare_to_previous returns exactly the LogStats shape.
Percentage of completed provider attempts that succeeded
Percentage of user requests that ultimately succeeded, counting fallback chains as one request
Count of root requests used as the denominator for user_facing_success_rate
Completed requests used as the local-cache hit-rate denominator
Number of direct local-cache hits
Number of semantic local-cache hits
True when previous is populated. False when the comparison was not requested, the window is unbounded, or the previous-period query failed.
The same statistics for the preceding window of equal length, ending immediately before the requested window starts. Present only when compare_to_previous is true and has_previous_period is true.
Show child attributes
Show child attributes
Was this page helpful?

