Get chat credit usage
Not available on self-hosted deployments (returns 404). Get the credits that Chat can spend and the cost of a typical chat in the organization. Give chat_id to also get what that chat has used and what automatic top-up bought for it. A chat uses part of a credit for each agent step. Requires the chat: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.
Query Parameters
Chat id. The response then includes the usage of this chat.
Response
Chat credit usage.
Credits that Chat can still spend, in microcredits. One credit is 1,000,000 microcredits.
Credits that the chat given with chat_id has used so far, in microcredits. Zero when no chat_id is given.
Credits that automatic top-up bought for the chat given with chat_id. Zero when no chat_id is given.
True when an admin lifted the per-chat automatic top-up limit for the chat given with chat_id. False when no chat_id is given.
Median total cost of the organization's recent chats, in microcredits. Null when the organization has no charged chat in the last 90 days.
Number of recent chats behind typical_chat_microcredits. At most 50.