{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scaledthought-com/json-schema/scaledthought-com-topup-input-schema.json",
  "title": "TopupInput",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scaledthought-com-openapi.json#/components/schemas/TopupInput",
  "type": "object",
  "properties": {
    "amount_usd": {
      "default": 20,
      "description": "USD to add, 10 to 2,000 (default 20; at most 2,000 per account per rolling 24 h, auto-reloads included). The human can change it on the funding page",
      "type": "number",
      "minimum": 10,
      "maximum": 2000
    },
    "auto_reload": {
      "description": "Suggest these auto-reload terms: the funding page shows them ticked. Without it the page offers auto-reload (below 5, add 20), unticked. Only the human turns it on",
      "type": "object",
      "properties": {
        "threshold_usd": {
          "type": "number",
          "minimum": 5,
          "maximum": 2000,
          "description": "Reload when the credit balance drops below this (at least 5)"
        },
        "amount_usd": {
          "type": "number",
          "minimum": 10,
          "maximum": 2000,
          "description": "How much each reload buys"
        },
        "monthly_limit_usd": {
          "description": "Optional: most auto-reloads may charge per calendar month (UTC). Default: no monthly limit (loads are still limited to 2,000 per rolling 24 h)",
          "type": "number",
          "exclusiveMinimum": 0
        }
      },
      "required": [
        "threshold_usd",
        "amount_usd"
      ],
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}