Get Stats
Authentication
Headers
The workspace to act on. Required when your credential is account-level; rejected (not silently ignored) for workspace-scoped API keys, which already carry their workspace and accept no header at all.
Workspace ids (1-50) to aggregate over — platform credential only. Mutually exclusive with RRay-Workspace-Id; sending both is always an error.
Query parameters
Bucket size: day, week (ISO-8601, Monday-start), or month (calendar).
Number of buckets to return, including the current (partial) one. Defaults to 1: the current (partial) bucket only. Hard ceilings depend on group_by: day 90, week 52, month 24.
Response
Stats bucket size (GET /v1/stats, query param group_by): day, ISO-8601
week (Monday-start), or calendar month. Exactly one TIME dimension — entity
dimensions (e.g. per-workspace breakdown) are a separate, not-yet-supported
axis; the name leaves room for those without implying they exist today.
Sum of every StatsSeriesBucket field over the requested window.
When these numbers were computed — realtime today (the request time); will become the last rollup-refresh time if/when a rollup table replaces the on-the-fly aggregation, without changing this field’s meaning.
Sum of every StatsSeriesBucket field over the requested window.