Getbydepartment

以 Markdown 格式查看

Departments ranked by cost in the window; names enriched from Postgres when available.

Success data: { "window", "rows": [{ "department_id", "department_name", ... }] }

请求头

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.

查询参数

presetstring可选

Calendar preset; default 30d.

startstring可选

YYYY-MM-DD with end.

endstring可选

YYYY-MM-DD with start.

limitinteger可选

Max rows (default 50, max 200).

响应

codeinteger
messagestring
dataany