Get LLM usage for a run
Self-hosted installs and hosted organizations that run on their own LLM keys; returns 404 elsewhere. 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.