Get Kpi Snapshots
const url = 'https://api.ultimateteam.ai/api/v1/kpi/snapshots?start_date=2026-04-15&end_date=2026-04-15';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.ultimateteam.ai/api/v1/kpi/snapshots?start_date=2026-04-15&end_date=2026-04-15' \ --header 'X-API-Key: <X-API-Key>'Query KPI daily snapshots for the current tenant.
Returns snapshots within the date range, optionally filtered by category. Annotations are included inline when present.
Args: start_date: Start of date range (inclusive). end_date: End of date range (inclusive). category: Optional category filter. user: Authenticated user context. db: Async database session.
Returns: List of KPISnapshotResponse objects.
Raises: HTTPException: 400 if start_date > end_date.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Responses
Section titled “ Responses ”Successful Response
Response model for a single KPI daily snapshot.
Used by the /api/kpi/snapshots endpoint and consumed by the briefing page and KPI trend charts.
object
A single AI-generated annotation on a KPI metric.
Created by the CEO agent during the morning brief think() step. Each annotation explains a notable change in a specific metric and suggests a follow-up action.
object
object
Example
[ { "annotations": [ { "change_direction": "up" } ] }]Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}