# Stats & KPI API SUMMARY: Statistics endpoints, fleet KPIs and tidy-long KPI export (CSV/JSON/XLSX) for LLM agents. Stats & KPI API Synapse exposes read-only statistics for agent health, API usage, trends and fleet KPIs. All endpoints accept either a MindKey () or a user JWT (). Existing analytics routes (see the page in the WebUI): | Route | Purpose | | --- | --- | | | All agents overview (period: ) | | | Cross-agent comparison | | | Detailed stats for one agent | | | Health score | | | Activity heatmap | | | Session tracker | | | API usage (global) | | | Time series | | | Chat response times | | | A2A message flow | | | Cron analytics | | · · · · · | Dashboard aggregates | GET /export/kpis Tidy-long export of the operational KPIs (task 7418541b). The data source of truth is — the export layer only flattens, it measures nothing itself. [CODE BLOCK] | Parameter | Values | Default | | --- | --- | --- | | | · · | | | | – (window for agent overview) | | Response: - → - → (RFC 4180, BOM, CRLF) as attachment - → Excel workbook (single sheet ) as attachment Tidy-long columns (identical in all formats): | Column | Meaning | | --- | --- | | | KPI group: , , , , , , | | | Flattened metric path (e.g. ) | | | Scalar value (number, text or when only carries data) | | | · · · | | | ISO-8601 generation timestamp of the export | | | Source function in | | | JSON payload for arrays/deep objects, otherwise empty | Example: [CODE BLOCK] The WebUI page renders the same export as three download buttons (CSV/JSON/XLSX) in the "KPI export" section.