{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiagentscity-com/json-schema/aiagentscity-com-approval-request-schema.json",
  "title": "ApprovalRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiagentscity-com-openapi.json#/components/schemas/ApprovalRequest",
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id"
    },
    "amount_cents": {
      "type": "integer",
      "exclusiveMinimum": 0.0,
      "title": "Amount Cents"
    },
    "service": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Service"
    },
    "reason": {
      "type": "string",
      "maxLength": 500,
      "title": "Reason",
      "default": ""
    },
    "agent_secret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Secret"
    },
    "workspace_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workspace Key"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "amount_cents",
    "service"
  ]
}