{
  "openapi": "3.1.0",
  "info": {
    "title": "Grant-Anything Deterministic Eligibility & Application Kit API (W4-C09)",
    "version": "1.0.0",
    "summary": "Deterministic Cloud Startup Credits, US SBIR/STTR, EU/UK/SG/APAC Public R&D, OSS Foundations & 100%-Reconciled Application Kit Engine",
    "description": "Pure Python deterministic eligibility matching, mutual-exclusion cloud credit stacking, statutory US SBIR/STTR screening, EU/UK/SG/APAC co-funding calculators, strict OSI/FSF open-source foundation matching, and 100%-reconciled grant application kit compilation. Flat fixed-price prepaid credits with zero grant split and 0% commission; strictly $0 billed (billed_usd=0.0, charged_micros=0, status_code=422) on invalid entity profiles, unbalanced budgets, or falsification requests. Zero customer data resale.",
    "contact": {
      "name": "grant-anything",
      "email": "ops@grant.fastmesh.dev",
      "url": "https://grant.fastmesh.dev"
    }
  },
  "servers": [
    {
      "url": "https://grant.fastmesh.dev",
      "description": "Production HTTPS Gateway"
    },
    {
      "url": "http://127.0.0.1:9009",
      "description": "Local Upstream Instance"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Service liveness, ArchiveCache stats, and Creem ledger telemetry",
        "responses": {
          "200": {
            "description": "Healthy JSON status envelope"
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApiSpec",
        "summary": "Return this OpenAPI 3.1.0 schema",
        "responses": {
          "200": {
            "description": "OpenAPI JSON document"
          }
        }
      }
    },
    "/v1/cloud-credits": {
      "post": {
        "operationId": "matchCloudCredits",
        "summary": "Global Cloud & AI Startup Credits matcher & optimal USD stacking schedule ($0.15)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "country"
                ],
                "properties": {
                  "company_name": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string",
                    "description": "ISO-2 country code (US, GB, DE, SG, AU, CA, etc.)"
                  },
                  "entity_type": {
                    "type": "string",
                    "default": "for_profit"
                  },
                  "company_age_years": {
                    "type": "number",
                    "minimum": 0
                  },
                  "funding_stage": {
                    "type": "string",
                    "default": "bootstrapped"
                  },
                  "total_funding_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "annual_revenue_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "employees": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "us_citizen_ownership_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "local_shareholding_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "accelerator_affiliated": {
                    "type": "boolean",
                    "default": false
                  },
                  "vc_backed": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_ai_company": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_open_source": {
                    "type": "boolean",
                    "default": false
                  },
                  "license": {
                    "type": "string"
                  },
                  "prior_claimed_programs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "prior_aws_credits_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "trl": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9
                  },
                  "pi_primary_employment_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "has_us_research_partner": {
                    "type": "boolean",
                    "default": false
                  },
                  "small_business_work_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "research_org_work_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "reference_date": {
                    "type": "string",
                    "format": "date"
                  },
                  "tenant_id": {
                    "type": "string",
                    "default": "public"
                  },
                  "bypass_cache": {
                    "type": "boolean",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Optimal non-conflicting cloud credit stack & excluded list"
          },
          "422": {
            "description": "Malformed profile or falsification attempt ($0 billed)"
          }
        }
      }
    },
    "/v1/us-sbir": {
      "post": {
        "operationId": "matchUsSbir",
        "summary": "US Federal Grants.gov / SBIR & STTR statutory eligibility matcher ($0.20)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "country"
                ],
                "properties": {
                  "company_name": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string",
                    "description": "ISO-2 country code (US, GB, DE, SG, AU, CA, etc.)"
                  },
                  "entity_type": {
                    "type": "string",
                    "default": "for_profit"
                  },
                  "company_age_years": {
                    "type": "number",
                    "minimum": 0
                  },
                  "funding_stage": {
                    "type": "string",
                    "default": "bootstrapped"
                  },
                  "total_funding_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "annual_revenue_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "employees": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "us_citizen_ownership_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "local_shareholding_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "accelerator_affiliated": {
                    "type": "boolean",
                    "default": false
                  },
                  "vc_backed": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_ai_company": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_open_source": {
                    "type": "boolean",
                    "default": false
                  },
                  "license": {
                    "type": "string"
                  },
                  "prior_claimed_programs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "prior_aws_credits_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "trl": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9
                  },
                  "pi_primary_employment_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "has_us_research_partner": {
                    "type": "boolean",
                    "default": false
                  },
                  "small_business_work_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "research_org_work_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "reference_date": {
                    "type": "string",
                    "format": "date"
                  },
                  "tenant_id": {
                    "type": "string",
                    "default": "public"
                  },
                  "bypass_cache": {
                    "type": "boolean",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "SBIR/STTR Phase I & II verdicts with zero non-US false positives"
          },
          "422": {
            "description": "Malformed profile or falsification attempt ($0 billed)"
          }
        }
      }
    },
    "/v1/intl-rd": {
      "post": {
        "operationId": "matchIntlRd",
        "summary": "EU / UK / Singapore / APAC public R&D grant & co-funding matcher ($0.20)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "country"
                ],
                "properties": {
                  "company_name": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string",
                    "description": "ISO-2 country code (US, GB, DE, SG, AU, CA, etc.)"
                  },
                  "entity_type": {
                    "type": "string",
                    "default": "for_profit"
                  },
                  "company_age_years": {
                    "type": "number",
                    "minimum": 0
                  },
                  "funding_stage": {
                    "type": "string",
                    "default": "bootstrapped"
                  },
                  "total_funding_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "annual_revenue_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "employees": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "us_citizen_ownership_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "local_shareholding_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "accelerator_affiliated": {
                    "type": "boolean",
                    "default": false
                  },
                  "vc_backed": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_ai_company": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_open_source": {
                    "type": "boolean",
                    "default": false
                  },
                  "license": {
                    "type": "string"
                  },
                  "prior_claimed_programs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "prior_aws_credits_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "trl": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9
                  },
                  "pi_primary_employment_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "has_us_research_partner": {
                    "type": "boolean",
                    "default": false
                  },
                  "small_business_work_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "research_org_work_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "reference_date": {
                    "type": "string",
                    "format": "date"
                  },
                  "tenant_id": {
                    "type": "string",
                    "default": "public"
                  },
                  "bypass_cache": {
                    "type": "boolean",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "International R&D grant eligibility and exact co-funding cash match"
          },
          "422": {
            "description": "Malformed profile or falsification attempt ($0 billed)"
          }
        }
      }
    },
    "/v1/oss-grants": {
      "post": {
        "operationId": "matchOssGrants",
        "summary": "Open-Source & Climate/Public-Goods foundation & OSI license matcher ($0.15)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "country"
                ],
                "properties": {
                  "company_name": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string",
                    "description": "ISO-2 country code (US, GB, DE, SG, AU, CA, etc.)"
                  },
                  "entity_type": {
                    "type": "string",
                    "default": "for_profit"
                  },
                  "company_age_years": {
                    "type": "number",
                    "minimum": 0
                  },
                  "funding_stage": {
                    "type": "string",
                    "default": "bootstrapped"
                  },
                  "total_funding_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "annual_revenue_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "employees": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "us_citizen_ownership_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "local_shareholding_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "accelerator_affiliated": {
                    "type": "boolean",
                    "default": false
                  },
                  "vc_backed": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_ai_company": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_open_source": {
                    "type": "boolean",
                    "default": false
                  },
                  "license": {
                    "type": "string"
                  },
                  "prior_claimed_programs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "prior_aws_credits_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "trl": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9
                  },
                  "pi_primary_employment_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "has_us_research_partner": {
                    "type": "boolean",
                    "default": false
                  },
                  "small_business_work_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "research_org_work_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "reference_date": {
                    "type": "string",
                    "format": "date"
                  },
                  "tenant_id": {
                    "type": "string",
                    "default": "public"
                  },
                  "bypass_cache": {
                    "type": "boolean",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OSI license audit, foundation verdicts, and milestone budget templates"
          },
          "422": {
            "description": "Malformed profile or falsification attempt ($0 billed)"
          }
        }
      }
    },
    "/v1/application-kit": {
      "post": {
        "operationId": "compileApplicationKit",
        "summary": "Application Kit, 100% Budget Reconciliation & Reviewer Rubric Compiler ($0.50)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "target_program"
                ],
                "properties": {
                  "target_program": {
                    "type": "string"
                  },
                  "entity_profile": {
                    "type": "object",
                    "required": [
                      "country"
                    ],
                    "properties": {
                      "company_name": {
                        "type": "string"
                      },
                      "country": {
                        "type": "string",
                        "description": "ISO-2 country code (US, GB, DE, SG, AU, CA, etc.)"
                      },
                      "entity_type": {
                        "type": "string",
                        "default": "for_profit"
                      },
                      "company_age_years": {
                        "type": "number",
                        "minimum": 0
                      },
                      "funding_stage": {
                        "type": "string",
                        "default": "bootstrapped"
                      },
                      "total_funding_usd": {
                        "type": "number",
                        "minimum": 0
                      },
                      "annual_revenue_usd": {
                        "type": "number",
                        "minimum": 0
                      },
                      "employees": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "us_citizen_ownership_pct": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "local_shareholding_pct": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "accelerator_affiliated": {
                        "type": "boolean",
                        "default": false
                      },
                      "vc_backed": {
                        "type": "boolean",
                        "default": false
                      },
                      "is_ai_company": {
                        "type": "boolean",
                        "default": false
                      },
                      "is_open_source": {
                        "type": "boolean",
                        "default": false
                      },
                      "license": {
                        "type": "string"
                      },
                      "prior_claimed_programs": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "prior_aws_credits_usd": {
                        "type": "number",
                        "minimum": 0
                      },
                      "trl": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9
                      },
                      "pi_primary_employment_pct": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "has_us_research_partner": {
                        "type": "boolean",
                        "default": false
                      },
                      "small_business_work_pct": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "research_org_work_pct": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "sectors": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "reference_date": {
                        "type": "string",
                        "format": "date"
                      },
                      "tenant_id": {
                        "type": "string",
                        "default": "public"
                      },
                      "bypass_cache": {
                        "type": "boolean",
                        "default": false
                      }
                    }
                  },
                  "budget": {
                    "type": "object"
                  },
                  "line_items": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "total_requested_usd": {
                    "type": "number"
                  },
                  "project_title": {
                    "type": "string"
                  },
                  "project_summary": {
                    "type": "string"
                  },
                  "milestones": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "documents_ready": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "submission_deadline": {
                    "type": "string"
                  },
                  "tenant_id": {
                    "type": "string",
                    "default": "public"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reconciled budget certificate, outline, rubric scores, checklist & countdown"
          },
          "422": {
            "description": "Unbalanced budget, cap/indirect/match violation, or invalid input ($0 billed)"
          }
        }
      }
    },
    "/v1/match-all": {
      "post": {
        "operationId": "matchAllDomains",
        "summary": "Unified 4-Domain Eligibility + Optimal Stacked Claimable Total USD + Optional Kit ($0.40)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "country"
                ],
                "properties": {
                  "company_name": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string",
                    "description": "ISO-2 country code (US, GB, DE, SG, AU, CA, etc.)"
                  },
                  "entity_type": {
                    "type": "string",
                    "default": "for_profit"
                  },
                  "company_age_years": {
                    "type": "number",
                    "minimum": 0
                  },
                  "funding_stage": {
                    "type": "string",
                    "default": "bootstrapped"
                  },
                  "total_funding_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "annual_revenue_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "employees": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "us_citizen_ownership_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "local_shareholding_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "accelerator_affiliated": {
                    "type": "boolean",
                    "default": false
                  },
                  "vc_backed": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_ai_company": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_open_source": {
                    "type": "boolean",
                    "default": false
                  },
                  "license": {
                    "type": "string"
                  },
                  "prior_claimed_programs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "prior_aws_credits_usd": {
                    "type": "number",
                    "minimum": 0
                  },
                  "trl": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9
                  },
                  "pi_primary_employment_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "has_us_research_partner": {
                    "type": "boolean",
                    "default": false
                  },
                  "small_business_work_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "research_org_work_pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "reference_date": {
                    "type": "string",
                    "format": "date"
                  },
                  "tenant_id": {
                    "type": "string",
                    "default": "public"
                  },
                  "bypass_cache": {
                    "type": "boolean",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Unified cross-domain eligibility, optimal USD stack, and excluded reasons"
          },
          "422": {
            "description": "Malformed profile or falsification attempt ($0 billed)"
          }
        }
      }
    },
    "/v1/batch-match": {
      "post": {
        "operationId": "batchMatchProfiles",
        "summary": "Concurrent batch team/portfolio matching via barbarian_core TableWaterfallEngine & ApprovalBudgetGuard",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "default": "match-all"
                  },
                  "profiles": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "country"
                      ],
                      "properties": {
                        "company_name": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string",
                          "description": "ISO-2 country code (US, GB, DE, SG, AU, CA, etc.)"
                        },
                        "entity_type": {
                          "type": "string",
                          "default": "for_profit"
                        },
                        "company_age_years": {
                          "type": "number",
                          "minimum": 0
                        },
                        "funding_stage": {
                          "type": "string",
                          "default": "bootstrapped"
                        },
                        "total_funding_usd": {
                          "type": "number",
                          "minimum": 0
                        },
                        "annual_revenue_usd": {
                          "type": "number",
                          "minimum": 0
                        },
                        "employees": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "us_citizen_ownership_pct": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "local_shareholding_pct": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "accelerator_affiliated": {
                          "type": "boolean",
                          "default": false
                        },
                        "vc_backed": {
                          "type": "boolean",
                          "default": false
                        },
                        "is_ai_company": {
                          "type": "boolean",
                          "default": false
                        },
                        "is_open_source": {
                          "type": "boolean",
                          "default": false
                        },
                        "license": {
                          "type": "string"
                        },
                        "prior_claimed_programs": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "prior_aws_credits_usd": {
                          "type": "number",
                          "minimum": 0
                        },
                        "trl": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9
                        },
                        "pi_primary_employment_pct": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "has_us_research_partner": {
                          "type": "boolean",
                          "default": false
                        },
                        "small_business_work_pct": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "research_org_work_pct": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "sectors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "reference_date": {
                          "type": "string",
                          "format": "date"
                        },
                        "tenant_id": {
                          "type": "string",
                          "default": "public"
                        },
                        "bypass_cache": {
                          "type": "boolean",
                          "default": false
                        }
                      }
                    }
                  },
                  "rows": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "country"
                      ],
                      "properties": {
                        "company_name": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string",
                          "description": "ISO-2 country code (US, GB, DE, SG, AU, CA, etc.)"
                        },
                        "entity_type": {
                          "type": "string",
                          "default": "for_profit"
                        },
                        "company_age_years": {
                          "type": "number",
                          "minimum": 0
                        },
                        "funding_stage": {
                          "type": "string",
                          "default": "bootstrapped"
                        },
                        "total_funding_usd": {
                          "type": "number",
                          "minimum": 0
                        },
                        "annual_revenue_usd": {
                          "type": "number",
                          "minimum": 0
                        },
                        "employees": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "us_citizen_ownership_pct": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "local_shareholding_pct": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "accelerator_affiliated": {
                          "type": "boolean",
                          "default": false
                        },
                        "vc_backed": {
                          "type": "boolean",
                          "default": false
                        },
                        "is_ai_company": {
                          "type": "boolean",
                          "default": false
                        },
                        "is_open_source": {
                          "type": "boolean",
                          "default": false
                        },
                        "license": {
                          "type": "string"
                        },
                        "prior_claimed_programs": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "prior_aws_credits_usd": {
                          "type": "number",
                          "minimum": 0
                        },
                        "trl": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9
                        },
                        "pi_primary_employment_pct": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "has_us_research_partner": {
                          "type": "boolean",
                          "default": false
                        },
                        "small_business_work_pct": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "research_org_work_pct": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "sectors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "reference_date": {
                          "type": "string",
                          "format": "date"
                        },
                        "tenant_id": {
                          "type": "string",
                          "default": "public"
                        },
                        "bypass_cache": {
                          "type": "boolean",
                          "default": false
                        }
                      }
                    }
                  },
                  "budget_cap_micros": {
                    "type": "integer"
                  },
                  "max_workers": {
                    "type": "integer",
                    "default": 8
                  },
                  "tenant_id": {
                    "type": "string",
                    "default": "public"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ordered concurrent batch results with per-row $0 error shield"
          },
          "422": {
            "description": "Empty batch or budget guard rejection ($0 billed)"
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "Native MCP JSON-RPC 2.0 endpoint exposing 7 flat grant tools + 4 DualMcpFacade meta-tools",
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response"
          }
        }
      }
    },
    "/webhooks/creem": {
      "post": {
        "operationId": "creemWebhook",
        "summary": "HMAC-SHA256 verified idempotent Creem.io prepaid credit fulfillment webhook",
        "responses": {
          "200": {
            "description": "Webhook processed idempotently"
          },
          "401": {
            "description": "Invalid creem-signature digest"
          }
        }
      }
    }
  }
}