Get LLM usage for a run
Self-hosted (on-prem) only — returns 404 on SaaS. Cost, token, and request totals recorded for a single scan, PR review, or chat run. usage is null until the run has reported cost. Requires an unrestricted token (tokens limited by rbac scopes are rejected).
Authorizations
API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.
Path Parameters
Kind of run to look up.
scan, pr_review, chat ID of the scan, PR review, or chat run.
Response
Per-run LLM usage (null when not yet recorded).