Getsaasusage

以 Markdown 格式查看
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.

请求头

Authorizationstring可选

Optional. Bearer JWT, Virtual Key, or PAT. Server also accepts Cookie alephant_token; not modeled as a header here.

X-Workspace-Idstring可选

Optional in the spec; required for authenticated analytics. Omit for unauthenticated GET /v1/analytics/health.

查询参数

dateFromstring必需

Inclusive start YYYY-MM-DD (UTC calendar).

dateTostring必需

Inclusive end YYYY-MM-DD.

agentIdstring可选
Optional agent UUID filter.
memberIdstring可选

Optional member/user UUID filter.

departmentIdstring可选
Optional department UUID filter.

响应

codeinteger
messagestring
dataany