Costs
Multi-dimension cost breakdown (agents, departments, master keys) as USD floats.
Success data: { "period", "breakdown": [{ "dimension", "items": [...] }] }
Headers
Authorization
Optional. Bearer JWT, Virtual Key, or PAT. Server also accepts Cookie alephant_token; not modeled as a header here.
X-Workspace-Id
Optional in the spec; required for authenticated analytics. Omit for unauthenticated GET /v1/analytics/health.
Query parameters
dateFrom
Inclusive start YYYY-MM-DD.
dateTo
Inclusive end YYYY-MM-DD.
departmentId
Optional department UUID scope for the query.
Response
code
message
data