Usage & Analytics
Monitor system utilization, track session performance, and analyze interaction traces. These endpoints provide granular visibility into how your application consumes resources.
Analytics Scope
/api/analytics/usage/summary
Retrieve aggregated usage statistics broken down by event type (e.g., LLM calls, DB operations). Useful for building internal dashboards or monitoring system load.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
start_date | string | No | Filter start date (ISO 8601) |
end_date | string | No | Filter end date (ISO 8601) |
user_id | string | No | Filter by specific user ID |
tenant_id | string | No | Filter by tenant ID (multi-tenant setups) |
/api/analytics/usage/sessions
Get high-level analytics for user sessions, including duration, turn count, and total token consumption.
/api/analytics/trace/{trace_id}
Retrieve the full "waterfall" of events for a specific request trace. This includes every sub-step (LLM call, DB query, Agent action) associated with a single API request.
/api/benchmarks/run
Trigger a synchronous A/B benchmark to measure the impact of the memory system on a specific query. Runs the query with and without memory context and compares the results using LLM-as-a-Judge.