Usage
Daily usage series for the workspace over **`dateFrom`–`dateTo`** (inclusive calendar days).
**At most one** of `agentId`, `memberId`, `departmentId` may be set → `40020` if more than one.
**Success `data`:** `{ "period", "series": [{ "date", "requests", "cost", "tokens" }] }` — `cost` is USD float from storage units.
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 (UTC calendar).
dateTo
Inclusive end YYYY-MM-DD.
agentId
Optional agent UUID filter.
memberId
Optional member/user UUID filter.
departmentId
Optional department UUID filter.
Response
code
message
data