{
  "openapi": "3.1.0",
  "info": {
    "title": "QUANTUM Pinui-Binui Discovery API",
    "version": "1.0.0",
    "description": "Read-only public API for AI agents and Custom GPTs to query QUANTUM's live database of Israeli pinui-binui compounds, mispricing opportunities, and statutory stage tracking.",
    "contact": {
      "name": "QUANTUM",
      "url": "https://u-r-quantum.com"
    },
    "license": {
      "name": "CC-BY-4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://discovery.u-r-quantum.com/api/discovery"
    }
  ],
  "paths": {
    "/opportunities.json": {
      "get": {
        "operationId": "listMispricedCompounds",
        "summary": "List top mispriced Israeli pinui-binui compounds ranked by QUANTUM Mispricing Score",
        "description": "Returns the current top compounds by QUANTUM Mispricing Score (premium_gap × active_listings × statutory_certainty). Use this to find pinui-binui investment opportunities where the market has not yet repriced to the statutory stage.",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter to a single city (Hebrew name, e.g. \"תל אביב\")."
          },
          {
            "name": "min_iai",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 30
            },
            "description": "Minimum IAI score."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 30,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunitiesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/compound/{slug}": {
      "get": {
        "operationId": "getCompoundDetails",
        "summary": "Full details for a single pinui-binui compound",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/changelog.json": {
      "get": {
        "operationId": "listStatutoryChanges",
        "summary": "Recent statutory stage changes (last 30 days)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "OpportunitiesResponse": {
        "type": "object",
        "properties": {
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "data_as_of": {
            "type": "string",
            "format": "date-time"
          },
          "opportunities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opportunity"
            }
          }
        }
      },
      "Opportunity": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer"
          },
          "compound_id": {
            "type": "integer"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "statutory_stage": {
            "type": "string",
            "enum": [
              "permit",
              "approved",
              "deposited",
              "construction",
              "declared",
              "planning",
              "pre_deposit",
              "unknown"
            ]
          },
          "scoring": {
            "type": "object",
            "properties": {
              "iai_score": {
                "type": "integer"
              },
              "mispricing_score": {
                "type": "integer"
              },
              "premium_gap_pct": {
                "type": "number"
              }
            }
          },
          "market": {
            "type": "object",
            "properties": {
              "active_listings": {
                "type": "integer"
              },
              "avg_asking_price_nis": {
                "type": "number"
              },
              "avg_price_per_sqm_nis": {
                "type": "number"
              }
            }
          },
          "detail_url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  },
  "x-quantum-version": "1.0.0",
  "x-generated-at": "2026-05-26T14:54:03.761Z"
}