{
  "openapi": "3.1.1",
  "info": {
    "title": "Landosaur API",
    "version": "1.1.0",
    "description": "Official public inventory, direct seller listings, parcel intelligence, saved searches and Land Agent orders. Published figures retain their source definitions. It is not an offer."
  },
  "servers": [
    {
      "url": "https://landosaur.com"
    }
  ],
  "paths": {
    "/api/search/": {
      "get": {
        "operationId": "searchLand",
        "summary": "Search current official and direct land",
        "description": "Search results include agency attribution from the release's inventory. Combined searches return official matches when direct listings cannot be read and counts_by_mode.direct is null. Searches with mode=direct return HTTP 502 for read failures and HTTP 503 when direct storage is unconfigured.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResult"
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Listing keywords or the exact Landosaur listing ID. Address searches can omit intervening words and punctuation.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "buy_now",
                "auction",
                "offer",
                "direct"
              ]
            }
          },
          {
            "name": "min_price",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "max_price",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "min_acres",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "max_acres",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 1200,
              "description": "3\u201340 longitude,latitude vertices joined by semicolons."
            }
          },
          {
            "name": "include_closed",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "recommended",
                "price_asc",
                "price_desc",
                "ppa_asc",
                "acres_desc",
                "deadline"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ]
      }
    },
    "/api/xray/": {
      "get": {
        "operationId": "parcelXray",
        "summary": "Read federal parcel and electric utility intelligence",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    { "$ref": "#/components/schemas/Xray" },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": ["utility"],
                      "properties": {
                        "utility": { "$ref": "#/components/schemas/CountyUtility" }
                      }
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "lat",
            "in": "query",
            "schema": {
              "type": "number",
              "minimum": 18,
              "maximum": 72
            }
          },
          {
            "name": "lon",
            "in": "query",
            "schema": {
              "type": "number",
              "anyOf": [{ "minimum": -180, "maximum": -65 }, { "minimum": 172, "maximum": 180 }]
            },
            "description": "Use the positive range for U.S. Aleutian coordinates between 51 and 53.5 degrees north."
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A U.S. place or both lat and lon are required for a full X-Ray."
          },
          {
            "name": "precision",
            "in": "query",
            "schema": { "type": "string", "const": "parcel" },
            "description": "Preserve the supplied coordinates for a drawn parcel reference pin."
          },
          {
            "name": "layer",
            "in": "query",
            "schema": { "type": "string", "const": "utility" },
            "description": "Return only the electric utility data. Supply county_fips."
          },
          {
            "name": "county_fips",
            "in": "query",
            "schema": { "type": "string", "pattern": "^[0-9]{5}$" },
            "description": "Five-digit U.S. county FIPS code for the utility-only lookup. Preserve leading zeros."
          }
        ]
      }
    },
    "/api/listings/": {
      "get": {
        "operationId": "getDirectListings",
        "summary": "Read direct listings or a single listing by ID",
        "description": "The directory excludes ended auctions by default. A listing's available field reflects the current auction cutoff and seller status.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "storage_configured": {
                      "type": "boolean"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "listings": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DirectListing"
                      }
                    },
                    "listing": {
                      "$ref": "#/components/schemas/DirectListing"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            }
          },
          {
            "name": "sale_mode",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "buy_now",
                "auction"
              ]
            }
          },
          {
            "name": "include_bids",
            "in": "query",
            "description": "Set to 0 on directory requests to skip bid totals.",
            "schema": {
              "type": "string",
              "enum": ["0", "1"]
            }
          },
          {
            "name": "include_closed",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ]
      },
      "post": {
        "operationId": "publishDirectListing",
        "summary": "Publish a seller-authorized direct listing",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "id": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "edit_token": {
                      "type": "string"
                    },
                    "listing": {
                      "$ref": "#/components/schemas/DirectListing"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListingInput"
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "editDirectListing",
        "summary": "Update a listing with its seller token",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "listing": {
                      "$ref": "#/components/schemas/DirectListing"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListingPatch"
              }
            }
          }
        },
        "security": [
          {
            "sellerToken": []
          },
          {}
        ]
      }
    },
    "/api/offers/": {
      "get": {
        "operationId": "getListingOffers",
        "summary": "Read public bidding activity or private seller requests",
        "description": "The default response contains public bid activity. With view=seller, authenticate using the edit token for the same listing. The seller view returns up to 25 newest requests and any buyer details the buyer chose to share.",
        "security": [{}, { "sellerToken": [] }],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    { "$ref": "#/components/schemas/BidSummary" },
                    { "$ref": "#/components/schemas/SellerRequests" }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "listing",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "view",
            "in": "query",
            "schema": { "type": "string", "const": "seller" },
            "description": "Select private seller requests. Requires Authorization: Bearer <seller edit token>."
          },
          {
            "name": "before",
            "in": "query",
            "schema": { "type": "string" },
            "description": "Seller view only. Pass next_cursor from the previous page to read older requests."
          }
        ]
      },
      "post": {
        "operationId": "recordListingOffer",
        "summary": "Submit a real bid, Buy It Now reservation request, or written offer",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "confirmation_code": {
                      "type": "string"
                    },
                    "action": {
                      "type": "string"
                    },
                    "amount": {
                      "type": "number"
                    },
                    "summary": {
                      "$ref": "#/components/schemas/BidSummary"
                    },
                    "checkout_url": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uri"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The listing or offer terms changed. A changed Buy It Now price is returned when the request included the buyer-reviewed price.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["error"],
                  "properties": {
                    "error": { "type": "string" },
                    "minimum_next_bid": { "type": "number" },
                    "buy_now_price": { "type": ["number", "null"] }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OfferInput"
              }
            }
          }
        }
      }
    },
    "/api/concierge/": {
      "get": {
        "operationId": "getLandAgentOrder",
        "summary": "Read Land Agent pricing, verify a listed parcel, or track an order",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "storage_configured": {
                      "type": "boolean"
                    },
                    "stripe_checkout_configured": {
                      "type": "boolean"
                    },
                    "initiation_fee_usd": {
                      "type": "number"
                    },
                    "concierge_fee_pct": {
                      "type": "number"
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "order": {
                      "$ref": "#/components/schemas/Order"
                    },
                    "parcel": {
                      "$ref": "#/components/schemas/AcquisitionParcel"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string",
              "pattern": "^AGT-[0-9A-F]{8}$"
            }
          },
          {
            "name": "parcel_id",
            "in": "query",
            "description": "Active Landosaur listing ID. With no order code, returns public listing details and the published price where available.",
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "post": {
        "operationId": "openLandAgentOrder",
        "summary": "Open a dossier and return the separate $20 Stripe checkout link",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderReceipt"
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentRequest"
              }
            }
          }
        }
      }
    },
    "/api/alerts/": {
      "get": {
        "operationId": "getLandAlert",
        "summary": "Read alert metadata or a specific alert feed",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "storage_configured": {
                      "type": "boolean"
                    },
                    "formats": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "alert_id": {
                      "type": "string"
                    },
                    "criteria": {
                      "$ref": "#/components/schemas/AlertInput"
                    },
                    "total_matches": {
                      "type": "integer"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Parcel"
                      }
                    }
                  }
                }
              },
              "application/atom+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "atom",
                "rss",
                "xml"
              ]
            }
          }
        ]
      },
      "post": {
        "operationId": "createLandAlert",
        "summary": "Save filters and obtain live JSON and Atom feeds",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertReceipt"
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlertInput"
              }
            }
          }
        }
      }
    },
    "/data/atlas.json": {
      "get": {
        "operationId": "getLandAtlas",
        "summary": "Read USDA agricultural benchmarks, county values and live supply",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "states": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "counties": {
                      "type": "array",
                      "items": {
                        "type": "array"
                      }
                    },
                    "regions": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "minimum_next_bid": {
            "type": "number"
          }
        },
        "required": [
          "error"
        ]
      },
      "Parcel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "county": {
            "type": "string"
          },
          "apn": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "deal_mode": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "Official listing status. auction_status_unconfirmed means the published auction date or start has arrived and current bidding status needs agency confirmation."
          },
          "available": {
            "type": "boolean"
          },
          "deadline": {
            "type": ["string", "null"],
            "format": "date",
            "description": "Published auction or offer calendar date in the agency's local time when known."
          },
          "deadline_kind": {
            "enum": ["auction_date", "auction_start", "deadline_date", "deadline_time", null],
            "description": "Schedule type and precision. The date variants contain a calendar date without a confirmed clock time."
          },
          "deadline_at": {
            "type": ["string", "null"],
            "format": "date-time",
            "description": "Published clock time in UTC, present only for auction_start or deadline_time."
          },
          "is_direct": {
            "type": "boolean"
          },
          "official_source": {
            "type": ["object", "null"],
            "description": "Agency attribution returned by search. Direct seller listings have a null source.",
            "properties": {
              "id": { "type": "string", "description": "Landosaur source feed identifier." },
              "agency": { "type": "string", "description": "Public agency or its authorized program." },
              "url": { "type": "string", "format": "uri", "description": "Official listing or sale program linked from the Landosaur dossier." },
              "checked_on": { "type": ["string", "null"], "format": "date", "description": "UTC calendar date of the last successful feed check." }
            },
            "required": ["id", "agency", "url", "checked_on"]
          },
          "price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "price_kind": {
            "type": "string"
          },
          "acres": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "usd_per_acre": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "lat": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "lon": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "SearchResult": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "direct_status": {
            "type": "string",
            "enum": ["available", "unavailable", "unconfigured"],
            "description": "Availability of the direct seller catalog."
          },
          "counts_by_mode": {
            "type": "object",
            "properties": {
              "direct": {
                "type": ["integer", "null"],
                "description": "Count of matching direct listings, or null when the catalog cannot be read."
              }
            }
          },
          "total": {
            "type": "integer"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Parcel"
            }
          }
        },
        "required": [
          "ok",
          "total",
          "results"
        ]
      },
      "Xray": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "minimum": 18,
            "maximum": 72
          },
          "lon": {
            "type": "number",
            "anyOf": [{ "minimum": -180, "maximum": -65 }, { "minimum": 172, "maximum": 180 }]
          },
          "checked_at": {
            "type": "string",
            "format": "date-time"
          },
          "usgs": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "fema": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "nwi": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "soil": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "climate": {
            "description": "NASA POWER climatology. Peak sun hours are daily energy-equivalent hours. Temperature bounds are the coldest and warmest monthly means. Missing source values are null.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "status": { "enum": ["ok", "unavailable"] },
                  "annual_sun_hours": { "type": ["number", "null"] },
                  "winter_min_sun_hours": { "type": ["number", "null"] },
                  "summer_max_sun_hours": { "type": ["number", "null"] },
                  "annual_precip_in": { "type": ["number", "null"] },
                  "coldest_month_mean_f": { "type": ["number", "null"] },
                  "warmest_month_mean_f": { "type": ["number", "null"] },
                  "source_url": { "type": "string", "format": "uri" }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "roads": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "public_land": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "hazards": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "county": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "utility": {
            "$ref": "#/components/schemas/CountyUtility"
          },
          "disclaimer": {
            "type": "string"
          }
        },
        "required": [
          "lat",
          "lon",
          "checked_at",
          "utility"
        ]
      },
      "CountyUtility": {
        "type": "object",
        "properties": {
          "status": { "enum": ["ok", "unavailable"] },
          "county_fips": { "type": ["string", "null"], "pattern": "^[0-9]{5}$" },
          "state_code": { "type": ["string", "null"], "pattern": "^[A-Z]{2}$" },
          "year": { "type": ["integer", "null"] },
          "source": { "type": "string", "format": "uri" },
          "state_commission_url": { "type": ["string", "null"], "format": "uri" },
          "state_average_usd_per_kwh": { "type": ["number", "null"], "exclusiveMinimum": 0 },
          "state_average_source": { "type": ["string", "null"], "format": "uri" },
          "state_monthly": {
            "type": ["object", "null"],
            "description": "Statewide residential average price for the latest month in the bundled EIA Electric Power Monthly Table 5.6.A data.",
            "properties": {
              "usd_per_kwh": { "type": "number", "exclusiveMinimum": 0 },
              "period": { "type": "string", "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$" },
              "period_label": { "type": "string" },
              "released_on": { "type": "string", "format": "date" },
              "source": { "type": "string", "format": "uri" }
            },
            "required": ["usd_per_kwh", "period", "period_label", "released_on", "source"]
          },
          "providers": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["id", "name", "ownership", "residential_usd_per_kwh"],
              "properties": {
                "id": { "type": "integer" },
                "name": { "type": "string" },
                "ownership": { "type": ["string", "null"] },
                "residential_usd_per_kwh": {
                  "type": ["number", "null"],
                  "exclusiveMinimum": 0,
                  "description": "EIA-861 bundled residential sales average in the provider's state."
                }
              }
            }
          },
          "note": { "type": "string" }
        },
        "required": ["status", "county_fips", "state_code", "year", "source", "state_commission_url",
                     "state_average_usd_per_kwh", "state_average_source", "state_monthly", "providers", "note"]
      },
      "ListingInput": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "lat": {
            "type": "number",
            "minimum": 18,
            "maximum": 72
          },
          "lon": {
            "type": "number",
            "minimum": -180,
            "maximum": -65
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "county": {
            "type": "string"
          },
          "locality": {
            "type": "string"
          },
          "apn": {
            "type": "string"
          },
          "acres": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "sale_mode": {
            "type": "string",
            "enum": [
              "buy_now",
              "auction"
            ]
          },
          "price": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "starting_bid": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "buy_now_price": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "reserve_price": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "auction_end": {
            "type": "string",
            "format": "date-time"
          },
          "seller_type": {
            "type": "string",
            "enum": [
              "owner",
              "agent"
            ]
          },
          "contact_name": {
            "type": "string"
          },
          "contact_email": {
            "type": "string",
            "format": "email"
          },
          "contact_phone": {
            "type": "string"
          },
          "brokerage": {
            "type": "string"
          },
          "agent_license": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "zoning": {
            "type": "string"
          },
          "road_access": {
            "type": "string"
          },
          "utilities": {
            "type": "string"
          },
          "financing_offered": {
            "type": "boolean"
          },
          "checkout_url": {
            "type": "string",
            "format": "uri"
          },
          "escrow_notes": {
            "type": "string"
          },
          "submitted_by_agent": {
            "type": "string"
          }
        },
        "required": [
          "acres",
          "contact_name",
          "contact_email"
        ]
      },
      "ListingPatch": {
        "type": "object",
        "properties": {
          "edit_token": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "under_contract",
              "sold",
              "withdrawn"
            ]
          },
          "price": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "buy_now_price": {
            "type": ["number", "null"],
            "exclusiveMinimum": 0,
            "description": "Optional auction reservation price. Send null to remove it. For fixed-price listings, use price."
          },
          "checkout_url": {
            "type": "string",
            "description": "HTTPS checkout URL or empty string to remove."
          },
          "escrow_notes": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          }
        }
      },
      "DirectListing": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "available": {
            "type": "boolean",
            "description": "Whether the listing is active and any auction deadline is still in the future."
          },
          "sale_mode": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "lat": {
            "type": "number",
            "minimum": 18,
            "maximum": 72
          },
          "lon": {
            "type": "number",
            "minimum": -180,
            "maximum": -65
          },
          "acres": {
            "type": "number"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "bid_count": {
            "type": ["integer", "null"],
            "description": "Number of bids, or null when bid totals could not be read or were skipped."
          },
          "current_high_bid": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "checkout_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "xray_snapshot": {
            "type": "object"
          }
        }
      },
      "OfferInput": {
        "type": "object",
        "properties": {
          "listing_id": {
            "type": "string"
          },
          "action": {
            "type": "string",
            "enum": [
              "bid",
              "buy_now",
              "offer"
            ]
          },
          "amount": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "expected_buy_now_price": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "The Buy It Now dollar price the buyer reviewed, to two decimal places. For buy_now requests, a different current price returns HTTP 409 before recording the reservation."
          },
          "buyer_name": {
            "type": "string"
          },
          "buyer_email": {
            "type": "string",
            "format": "email"
          },
          "buyer_phone": {
            "type": "string"
          },
          "financing": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "request_key": {
            "type": "string",
            "description": "Reuse the same key for a retry of the same request."
          },
          "share_contact_with_seller": {
            "type": "boolean",
            "default": false,
            "description": "Send true only with the buyer's permission to share their contact details, funding choice, and notes with this listing's seller or agent."
          }
        },
        "required": [
          "listing_id",
          "action",
          "buyer_name",
          "buyer_email"
        ]
      },
      "SellerRequests": {
        "type": "object",
        "required": ["listing_id", "requests", "next_cursor"],
        "properties": {
          "listing_id": { "type": "string" },
          "next_cursor": { "type": ["string", "null"] },
          "requests": {
            "type": "array",
            "maxItems": 25,
            "items": {
              "type": "object",
              "required": ["code", "action", "amount", "created_at", "buyer"],
              "properties": {
                "code": { "type": "string" },
                "action": { "type": "string", "enum": ["bid", "buy_now", "offer"] },
                "amount": { "type": "number" },
                "created_at": { "type": "string", "format": "date-time" },
                "buyer": {
                  "type": ["object", "null"],
                  "description": "Null when the buyer did not authorize sharing these details.",
                  "properties": {
                    "name": { "type": "string" },
                    "email": { "type": "string", "format": "email" },
                    "phone": { "type": ["string", "null"] },
                    "financing": { "type": ["string", "null"] },
                    "notes": { "type": ["string", "null"] }
                  }
                }
              }
            }
          }
        }
      },
      "BidSummary": {
        "type": "object",
        "properties": {
          "listing_id": {
            "type": "string"
          },
          "sale_mode": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "bid_count": {
            "type": "integer"
          },
          "current_high_bid": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "minimum_next_bid": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "reservation_count": {
            "type": "integer"
          },
          "recent_bids": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "bidder": {
                  "type": "string"
                },
                "amount": {
                  "type": "number"
                },
                "created_at": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "AgentRequest": {
        "type": "object",
        "properties": {
          "service_type": {
            "type": "string",
            "enum": [
              "listed_acquisition",
              "unlisted_outreach",
              "auction_proxy",
              "landbank_application",
              "diligence_packet",
              "direct_closing",
              "custom_sourcing"
            ]
          },
          "buyer_name": {
            "type": "string"
          },
          "buyer_email": {
            "type": "string",
            "format": "email"
          },
          "buyer_phone": {
            "type": "string"
          },
          "parcel_id": {
            "type": "string",
            "description": "An active Landosaur listing ID. The server verifies its published price, acreage and coordinates."
          },
          "parcel_title": {
            "type": "string"
          },
          "location": {
            "type": "string",
            "description": "Address or location for an unlisted tract. For a listed parcel, this is a research note. Parcel X-Ray uses the coordinates from the listing."
          },
          "county": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "apn": {
            "type": "string"
          },
          "lat": {
            "type": "number",
            "minimum": 18,
            "maximum": 72,
            "description": "Latitude for an unlisted tract. For a listing without source coordinates, a submitted coordinate pair is saved as an unverified hint."
          },
          "lon": {
            "type": "number",
            "anyOf": [{ "minimum": -180, "maximum": -65 }, { "minimum": 172, "maximum": 180 }]
          },
          "boundary": {
            "type": "array",
            "description": "Drawn boundary for an unlisted tract.",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2,
              "description": "Longitude and latitude."
            }
          },
          "official_price": {
            "type": "number",
            "exclusiveMinimum": 0,
            "deprecated": true,
            "description": "Legacy estimate for an unlisted parcel. Use max_budget for new requests."
          },
          "max_budget": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "acres": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "financing": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "submitted_by_agent": {
            "type": "string"
          }
        },
        "required": [
          "buyer_name",
          "buyer_email"
        ]
      },
      "OrderReceipt": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "confirmation_code": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "initiation_fee_usd": {
            "type": "number"
          },
          "concierge_fee_pct": {
            "type": "number"
          },
          "stripe_checkout_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "tracking_url": {
            "type": "string",
            "format": "uri"
          },
          "xray_summary": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "official_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "seller_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "estimated_base_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "concierge_fee_10pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "estimated_turnkey_total": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_kind": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Order": {
        "type": "object",
        "properties": {
          "confirmation_code": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "parcel_title": {
            "type": "string"
          },
          "paid_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "progress": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "complete",
                    "current",
                    "pending"
                  ]
                },
                "at": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "xray_summary": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "stripe_checkout_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "official_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "seller_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "estimated_base_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "concierge_fee_10pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "estimated_turnkey_total": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_kind": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "AlertInput": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "mode": {
            "type": "string"
          },
          "min_acres": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "max_price": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "q": {
            "type": "string",
            "description": "Uses the same keywords and exact listing IDs as land search."
          },
          "below_benchmark": {
            "type": "boolean"
          },
          "area": {
            "type": "string",
            "maxLength": 1200,
            "description": "3\u201340 longitude,latitude vertices joined by semicolons."
          },
          "label": {
            "type": "string"
          },
          "buyer_email": {
            "type": "string",
            "format": "email"
          }
        }
      },
      "AlertReceipt": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "alert_id": {
            "type": "string"
          },
          "atom_feed_url": {
            "type": "string",
            "format": "uri"
          },
          "json_feed_url": {
            "type": "string",
            "format": "uri"
          },
          "land_agent_url": {
            "type": "string",
            "format": "uri"
          },
          "criteria": {
            "$ref": "#/components/schemas/AlertInput"
          }
        }
      },
      "AcquisitionParcel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "county": {
            "type": [
              "string",
              "null"
            ]
          },
          "apn": {
            "type": [
              "string",
              "null"
            ]
          },
          "acres": {
            "type": [
              "number",
              "null"
            ]
          },
          "lat": {
            "type": [
              "number",
              "null"
            ]
          },
          "lon": {
            "type": [
              "number",
              "null"
            ]
          },
          "price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Current published agency or direct seller amount. Zero denotes a published zero-dollar program price."
          },
          "price_kind": {
            "type": "string"
          },
          "is_direct": {
            "type": "boolean"
          }
        }
      }
    },
    "securitySchemes": {
      "sellerToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "Listing-specific edit token issued at publication. Only listing PATCH also accepts it in the request body."
      }
    }
  }
}
