Get Master Keys Spend Trend
Per-day spend trend for the workspace, optionally scoped to one master key.
Success data: { "window", "rows": [{ "bucket", "cost_sum", "request_count", ... }] }
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
preset
Calendar preset; default 30d without start+end.
start
YYYY-MM-DD with end.
end
YYYY-MM-DD with start.
masterKeyId
Optional UUID. If sent non-empty it must be valid; filters to that key. Omit for workspace-wide trend.
Response
code
message
data