Get the credit balance
Not available on self-hosted deployments (returns 404). Get the current top-up credit balance for the organization. The response also gives the whole-credit balance that Chat can spend. A credit that Chat has only partly used counts as one. Requires the billing:read scope.
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.
Response
Credit balance.
Volume discount on a single top-up. The discount is 0% up to start_credits, grows with the logarithm of the amount, and reaches max_discount_percent at max_credits and above. The price of a top-up is credits * price_per_credit_cents * (1 - discount), rounded to the cent.