{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentry-com/json-schema/agentry-com-budget-control-request-schema.json",
  "title": "BudgetControlRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentry-com-openapi.json#/components/schemas/BudgetControlRequest",
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id",
      "description": "Agent ID to set budget controls for"
    },
    "max_per_invocation_sats": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Max Per Invocation Sats",
      "default": 1000
    },
    "max_per_day_sats": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Max Per Day Sats",
      "default": 10000
    },
    "max_per_month_sats": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Max Per Month Sats",
      "default": 100000
    },
    "whitelist_agents": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Whitelist Agents",
      "description": "Only allow calls to these agents (empty = allow all)"
    },
    "blacklist_agents": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Blacklist Agents",
      "description": "Block calls to these agents"
    },
    "require_approval_above_sats": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Require Approval Above Sats",
      "description": "Require approval for invocations above this cost",
      "default": 500
    },
    "enabled": {
      "type": "boolean",
      "title": "Enabled",
      "default": true
    }
  },
  "type": "object",
  "required": [
    "agent_id"
  ]
}