Get event metrics
Changed onAggregate what the events carry beyond their count, per time bucket and over the whole window.
Ingestion volume (files, chunks, tokens, bytes, timings), searches by kind (semantic, reranked, rewritten, agentic, grep) with latency percentiles and agentic token usage, and chat completions with their prompt, cached, and completion tokens, hosted tool calls, and turn durations. Embedding and reranking requests come with their tokens, reranked documents, and latency percentiles. Buckets with no events are omitted; the totals' percentiles span every event in the window.
Request
- Base URLhttps://api.mixedbread.com
- URLhttps://api.mixedbread.com/v1/events/metrics
- AuthHTTP bearer
Query parameters
Maximum number of items to return per page (1-100)
Cursor for forward pagination - get items after this position. Use last_cursor from previous response.
Cursor for backward pagination - get items before this position. Use first_cursor from previous response.
Whether to include total count in response (expensive operation)
Split every bucket and total per store, carrying its store_id, for one page of the busiest stores by queries then files; the other stores share rows with a null store_id, and events with no store are left out.
Also aggregate the window of the same length that ends at start_time.
Request body
Response
Usage aggregates of the organization's events per time bucket
Example response
{
"pagination": {
"has_more": true,
"first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ==",
"last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMFQyMzo1OTo1OS4wMDBaIiwiaWQiOiJ4eXo3ODkifQ==",
"total": 42
}
}Changes
- info
added the new optional
queryrequest parameterafter - info
added the new optional
queryrequest parameterbefore - info
added the new optional
queryrequest parameterinclude_total - info
added the new optional
queryrequest parameterlimit - info
added the optional property
to the response with the status
- info
- info
added the new optional
queryrequest parameterinclude_previous - info
added the optional property
///to the response with the status - info
added the optional property
to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
to the response with the status
- info