billing

Grant Ai Credit

Comp an organization AI credit. Platform admin only.

Not reachable by an org's own admins, and not exposed over MCP at all. Now that customers can buy credit themselves, this is the comp path: credit nobody paid for, which is why it stays deliberate and attributable rather than merely privileged. Every call writes an ai_credit_grants row naming the granting user.

LogtoAdminUser and not AdminUser: the in-app admin role can be set in the database independently of the Logto scope, and minting money is not something a row in a table should be able to authorize.

post/api/billing/ai-balance/grant

Request

  • Base URL: https://softkiln.com (the document declares no server; this is the origin it was published from)
  • URL: https://softkiln.com/api/billing/ai-balance/grant
  • Auth: none declared

Query parameters

orgstring required

Request body

amount_usdnumber required
reasonstring

Response

Successful Response

balance_microcentsinteger required
reserved_microcentsinteger required
available_microcentsinteger required
auto_refill_enabledboolean required
low_balance_threshold_microcentsinteger nullable required
auto_refill_amount_microcentsinteger nullable required
has_payment_methodboolean required

Changes

No recorded changes to this operation across all 2 revisions of this API.