Skip to main content
PUT
Error

Authorizations

Authorization
string
header
required

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.

Body

application/json
enabled
boolean
required

When true, Strix buys credits automatically when a scan needs more.

topup_credits
integer
required

Number of credits to buy on each automatic top-up.

Required range: 1 <= x <= 10000
monthly_cap_credits
integer | null

Maximum automatically purchased credits per calendar month. An omitted field keeps the stored cap. An explicit null removes the cap.

Required range: 1 <= x <= 2147483647
chat_cap_credits
integer | null

Maximum credits that automatic top-up buys for one chat. An omitted field keeps the stored limit. An explicit null removes the limit.

Required range: 1 <= x <= 2147483647

Response

Updated settings.

enabled
boolean
required

True when automatic top-up is active.

topup_credits
integer
required

Credits purchased for each automatic top-up.

Required range: 1 <= x <= 10000
monthly_cap_credits
integer | null
required

Maximum automatically purchased credits per calendar month. Null removes the cap.

Required range: 1 <= x <= 2147483647
chat_cap_credits
integer | null
required

Maximum credits that automatic top-up buys for one chat. Null removes the limit. Manual purchases and scans are not affected. An admin can lift the limit for one chat with PUT /chat/{chatId}/auto-topup-limit.

Required range: 1 <= x <= 2147483647
used_this_month
integer
required

Credits already purchased automatically this month.