{"openapi":"3.1.0","info":{"title":"AILS Published Inventory","version":"1.0.0","description":"Read-only published snapshots. No authentication required for public reads. Unknown is null, not zero. Rates are never converted across units. No private source documents or drafts. MCP (Streamable HTTP) is at /api/mcp with the same data contract; see /.well-known/mcp.json.","contact":{"name":"AILS","email":"info@ailscre.com"}},"servers":[{"url":"https://ailscre.com"}],"paths":{"/api/mcp":{"post":{"operationId":"mcpStreamableHttp","summary":"Model Context Protocol (Streamable HTTP)","description":"Stateless MCP endpoint (protocol 2025-03-26 / 2026-07-28). Tools: search_spaces (limit≤50; lease-only unless transaction_type sale or both), get_property (includes agents[] and sale terms), get_suite (includes agents[]), get_documents. Same published snapshots and rent rules as REST. Send JSON-RPC over POST with Accept: application/json, text/event-stream. Discovery: /.well-known/mcp.json.","responses":{"200":{"description":"JSON-RPC result or SSE stream"},"400":{"description":"Invalid MCP request"},"405":{"description":"Method not allowed for this transport"}}},"get":{"operationId":"mcpStreamableHttpGet","summary":"MCP transport probe","description":"Legacy session GET answers 405 (stateless). Prefer POST.","responses":{"405":{"description":"Stateless server; use POST"}}}},"/api/v1/search":{"get":{"operationId":"searchPublishedSpaces","summary":"Filter published suites","description":"Lease-only by default: omit transaction_type (or lease) for suites for lease; sale-only buildings never appear. transaction_type=sale returns whole buildings offered for sale (sale or both) and transaction_type=both buildings offered for sale and lease, one row per building (space_id null) with asking_price, price_status (KNOWN | UPON_REQUEST | UNKNOWN; asking_price null unless KNOWN, never 0), price_per_sf, price_per_sf_source (stated | derived = price / building SF), cap_rate, noi, occupancy_pct and tenancy. max_price is sale-only; lease-only filters are rejected on sale searches. Supply an explicit rent_unit with max_rent. include_unknown defaults false. Results are paged: default limit 50, maximum 100. Each page has total, has_more and next_offset; when has_more is true, request the same query with offset=next_offset (or follow the next URL) until has_more is false. Order is stable: confirmed matches first, then property name, then suite label (natural order), then ids. Selected exports should check publication_version. Responses are current snapshots, not guarantees of availability.","parameters":[{"name":"city","in":"query","required":false,"schema":{"type":"string"}},{"name":"use","in":"query","required":false,"schema":{"type":"string"}},{"name":"min_sf","in":"query","required":false,"schema":{"type":"number","minimum":0}},{"name":"max_sf","in":"query","required":false,"schema":{"type":"number","minimum":0}},{"name":"min_offices","in":"query","required":false,"schema":{"type":"integer","minimum":0}},{"name":"available_by","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"max_rent","in":"query","required":false,"schema":{"type":"number","minimum":0}},{"name":"rent_unit","in":"query","required":false,"schema":{"type":"string","enum":["$/SF/month","$/SF/year","$/month","$/year"]}},{"name":"rent_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"project","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","maxLength":200,"description":"Project (campus) slug; only suites in that project's published buildings"}},{"name":"features","in":"query","required":false,"schema":{"type":"string","description":"Comma-separated exact lowercase feature tags; all must match"}},{"name":"transaction_type","in":"query","required":false,"schema":{"type":"string","enum":["lease","sale","both"],"default":"lease","description":"lease (default when omitted): suites for lease, never sale-only buildings. sale: whole buildings offered for sale (sale or both). both: buildings offered for sale and lease. Sale results are one row per building with asking_price, price_status, price_per_sf and investment terms"}},{"name":"max_price","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"Maximum asking price in USD (transaction_type sale or both only). Unknown or upon-request prices never confirm it"}},{"name":"include_unknown","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10000,"default":0}}],"responses":{"200":{"description":"Search page with total, limit, offset, has_more, next_offset (null on the last page), next (URL of the next page or null) and results containing space_id, slug, URL, publication_version, explicit rent units, match_status and unknown_fields"},"400":{"description":"Invalid filters"},"503":{"description":"Upstream unavailable; retry later"}}}},"/api/v1/projects":{"get":{"operationId":"listProjects","summary":"List projects (campuses) that have at least one published building","responses":{"200":{"description":"ails.projects.v1 document: project_count, projects [{slug,name,city,state,building_count,published_at,url,api_url}]"},"503":{"description":"Upstream unavailable"}}}},"/api/v1/projects/{slug}":{"get":{"operationId":"getProject","summary":"Get a project and its published buildings","description":"Project identity, published shared specs and default rent plus its published buildings, each in the same shape as getPublishedListing with an approximate location. Suite rent falls back suite -> building -> project. Human page: /projects/{slug}.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"ails.project.v1 document: project, building_count, suite_count, buildings"},"404":{"description":"No published buildings for this project"},"503":{"description":"Upstream unavailable"}}}},"/api/v1/listings/{slug}":{"get":{"operationId":"getPublishedListing","summary":"Get a property snapshot, published suites, listing brokers and approved media","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ails.public-export.v1 listing envelope with publication version, transaction_type (lease | sale | both), sale {asking_price, price_status, price_per_sf, price_per_sf_source, cap_rate, noi, occupancy_pct, tenancy} when offered for sale (approved terms only; upon request has no amount; unknown is null, never 0), suite URLs, economics, agents[] (name, firm, role, email, optional phone/license, broker slug) and downloadable media. Fallback contact info@ailscre.com when agents is empty."},"404":{"description":"Not published"},"503":{"description":"Upstream unavailable"}}}},"/api/v1/brokers/{slug}":{"get":{"operationId":"getBrokerListings","summary":"Get every active published listing for one broker","description":"Broker name, firm and email plus their active published listings, each in the same shape as getPublishedListing. No phone numbers. Human page: /brokers/{slug}.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"ails.broker.v1 document: broker {slug,name,firm,email,phone,license,url}, listing_count, listings"},"404":{"description":"No active published listings for this broker"},"503":{"description":"Upstream unavailable"}}}}}}