List per-session token usage for a workspace
Per-session LLM token usage for one workspace — the same rows as the workspace usage CSV export, as JSON. Each session yields one row per provider/model/status combination with its token breakdown and billed cost; dry-run (test) sessions are excluded. Pick the window with from/to (UTC dates, inclusive, at most 365 days) or a rolling days. Pages are keyset-paginated newest first: limit counts sessions, and next_cursor is returned while more sessions remain. Requires workspace owner or manager (or Athena admin) permissions.
Authentication
Path parameters
Headers
Query parameters
First UTC day of the window (YYYY-MM-DD); requires to
Last UTC day of the window, inclusive (YYYY-MM-DD); requires from
Rolling window in days ending now; ignored when from/to are given
next_cursor from the previous page
Maximum sessions per page (each may yield several rows)
Response
Pass as cursor to fetch the next page; null when the window is exhausted
