{"openapi":"3.1.0","info":{"title":"MapMyLot","version":"0.1.0"},"paths":{"/api/analytics/pending":{"get":{"tags":["analytics"],"summary":"Get Pending Events","description":"Return all confirmed, unconsumed analytics events for this user.\n\nAlso detects login (first authenticated load of the day) and inlines it.\nUses a single atomic UPDATE ... RETURNING to claim rows - concurrency-safe.","operationId":"get_pending_events_api_analytics_pending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/parcel":{"get":{"summary":"Get Parcel At Point","description":"Return the parcel containing (lat, lon), or 404 if none found.\n\nq: original search query (passed by frontend search flow). Analytics-only - the daily\n   gate dedups on the resolved parcel identity, not on this string.","operationId":"get_parcel_at_point_api_parcel_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","title":"Lon"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parcel/by-id":{"get":{"summary":"Get Parcel By Id","description":"Return the parcel identified by (parcel_id, jurisdiction) directly - no geocoding.\n\nUsed to reload a saved property from its stored identifiers instead of re-geocoding the\nstored address string, which a metro-form label may not match back to the same lot.\nSame payload shape as /parcel plus top-level lat/lon for a\nguaranteed-interior point (ST_PointOnSurface, not ST_Centroid - centroid can fall\noutside an L-shaped/multipart parcel).","operationId":"get_parcel_by_id_api_parcel_by_id_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"parcel_id","in":"query","required":true,"schema":{"type":"string","title":"Parcel Id"}},{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parcel/elevation":{"get":{"summary":"Get Parcel Elevation","description":"Elevation, slope and contours for one lot (app/elevation.py), for Pro only.\n\nThe first request for a lot asks the state's elevation service for a height grid\nand stores the summary, the contour lines and the high and low points; later\nrequests read them. Not a lookup: nothing is counted. Returns\n{\"elevation\": null} where there is no figure (region not covered in this\nenvironment, or the service had no answer), never an error for that case.","operationId":"get_parcel_elevation_api_parcel_elevation_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"parcel_row_id","in":"query","required":true,"schema":{"type":"integer","title":"Parcel Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parcel/dev-geometry":{"get":{"summary":"Get Parcel Dev Geometry","description":"Lazy, on-demand recompute of the two proximity geometries that are NOT\nstored on the parcel row: frontage open-segments and the buildable\npolygon (I5 click-to-locate). Same-connection, single-parcel. Returns\n{\"target\": ..., \"geom\": <GeoJSON|None>} (200) - geom: null means \"no\ngeometry to show\" (uncovered jurisdiction, incomplete precondition, or a\ngenuinely empty recompute), never an error for the covered-but-empty case.\n\ntarget is a strict enum, never interpolated into SQL; parcel_id/jurisdiction\nare asyncpg params, never string-formatted. Not called on a normal /parcel\nlookup - only on an explicit frontage/buildable click, so the GEOS-crash-\nsensitive recompute below stays off the hot path.","operationId":"get_parcel_dev_geometry_api_parcel_dev_geometry_get","parameters":[{"name":"parcel_id","in":"query","required":true,"schema":{"type":"string","title":"Parcel Id"}},{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"target","in":"query","required":true,"schema":{"type":"string","title":"Target"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parcels/filter-options":{"get":{"summary":"Get Filter Options","description":"Exclusion checkboxes offerable for a jurisdiction (stricter than display availability).","operationId":"get_filter_options_api_parcels_filter_options_get","parameters":[{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parcels/percentile":{"get":{"summary":"Get Percentile","description":"Free hook: what % of lots in this suburb are smaller than `area`,\nplus a 50-bin lot-size histogram + median + display bounds for the F4 sparkline.\n\nReturns {\"percentile\": null, \"bins\": null, ...} when the locality has no parcels\nor no locality_code - callers must treat null as \"no ranking available\" (e.g.\nCA parcels, undefined SAL areas).\n\nPercentile is EXACT (a count over the suburb's sorted areas, not approximated\nfrom bins), so the shipped \"84%\" values don't drift. See _suburb_stats.","operationId":"get_percentile_api_parcels_percentile_get","parameters":[{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"locality_code","in":"query","required":true,"schema":{"type":"string","title":"Locality Code"}},{"name":"area","in":"query","required":true,"schema":{"type":"number","title":"Area"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parcels/constraint-score":{"get":{"summary":"Get Constraint Score","description":"Free hook: synthesised 0-100 constraint score for the parcel at (lat, lng).\n\nA non-Pro caller gets the answer layers withheld (withhold_answers).","operationId":"get_constraint_score_api_parcels_constraint_score_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","title":"Lng"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parcels/constraint-breakdown":{"get":{"summary":"Get Constraint Breakdown","description":"Free hook: per-parcel exclusionary/hazard breakdown for the \"reduced by\"\nreadout clause and the hazard coverage clause. Deliberately a separate\nendpoint from /api/parcels/constraint-score, not a field on it - that\nendpoint short-circuits to score: null below MIN_LAYERS_FOR_SCORE, which\nwould suppress the breakdown exactly where naming the exclusion matters,\nand it is keyed by lat/lng rather than parcel_id.","operationId":"get_constraint_breakdown_api_parcels_constraint_breakdown_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"parcel_id","in":"query","required":true,"schema":{"type":"string","title":"Parcel Id"}},{"name":"row_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parcels/filter":{"get":{"summary":"Filter Parcels","description":"Pro-gated bulk parcel filter. Returns a parcel_id list (json) / CSV / GeoJSON, capped.\n\njurisdiction is mandatory (locality_code is only unique per jurisdiction). Exclusion keys\nare validated against filter_exclusions_for(jurisdiction) - non-offerable keys are rejected.","operationId":"filter_parcels_api_parcels_filter_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"locality_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locality Code"}},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"}},{"name":"lon","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lon"}},{"name":"radius_km","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Radius Km"}},{"name":"min_area","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Area"}},{"name":"max_area","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Area"}},{"name":"within_coast_km","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":50.0,"minimum":0},{"type":"null"}],"title":"Within Coast Km"}},{"name":"min_buildable_area","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Min Buildable Area"}},{"name":"min_frontage","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Min Frontage"}},{"name":"within_park_km","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":5.0,"minimum":0},{"type":"null"}],"title":"Within Park Km"}},{"name":"min_park_ha","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Min Park Ha"}},{"name":"min_powerline_standoff_m","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Min Powerline Standoff M"}},{"name":"within_waterway_km","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0},{"type":"null"}],"title":"Within Waterway Km"}},{"name":"within_water_body_km","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0},{"type":"null"}],"title":"Within Water Body Km"}},{"name":"min_water_body_ha","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Min Water Body Ha"}},{"name":"exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclude"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"json","title":"Fmt"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/geocode":{"get":{"summary":"Geocode","description":"Geocode an address query, routing to the best available geocoder. A lot/plan is\nanswered first with {\"lot_plan\": {parcel_id, jurisdiction, label}}, which the app loads\nthrough the quota-gated /api/parcel/by-id; a lot/plan that cannot be answered is a 404\n(or a 503 on a timeout) whose detail carries a code, never an address search. Text with a\nplan inside other words is answered by the lot/plan up to that plan. \"Lot N\" followed by a\nstreet address (no plan) opens lot N at that address when it is there, else the address.","operationId":"geocode_api_geocode_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reverse-geocode":{"get":{"summary":"Reverse Geocode","description":"Reverse-geocode coordinates to a display address label.","operationId":"reverse_geocode_api_reverse_geocode_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","title":"Lon"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/autocomplete":{"get":{"summary":"Autocomplete","description":"Return up to 10 address suggestions for the given partial query. Lot/plan text\n(\"2/236756\", \"11/sp2257\"), and text with a plan inside other words (\"lot 6 sec 8 dp\n758801\"), gets none: an address offered for it is always wrong (\"Unit 2 2367 Gold Coast\nHighway\" for \"2/236756\"), and /api/geocode answers it on Enter. Nor does text without a\nword GNAF can search on (\"216\", \"3 s\"): gnaf_match skips it.\n\nText naming a place outside Australia gets that place's suggestions. A visitor in GB,\nNZ or CA gets their own country's, even for text that reads as Australian. Either way,\nwhen those give none, only exact G-NAF matches are offered, never near misses: place\nwords also name Australian suburbs and streets (\"12 Smith Street Liverpool\"), and an\nAustralian address typed from abroad with its state still matches exactly.","operationId":"autocomplete_api_autocomplete_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Autocomplete Api Autocomplete Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"summary":"Me","description":"Return current user profile.","operationId":"me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/webhooks/clerk":{"post":{"summary":"Clerk Webhook","description":"Receive Clerk webhook events. Creates local user record on user.created.","operationId":"clerk_webhook_api_webhooks_clerk_post","responses":{"204":{"description":"Successful Response"}}}},"/api/properties":{"get":{"summary":"List Properties","operationId":"list_properties_api_properties_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Save Property","description":"Save a lot. Idempotent: saving a lot already on the list returns its existing id with\nalready_saved true. A new lot past the cap is refused with 409 shortlist_full. The count\nand the insert run under a per-account advisory lock, so two saves at once cannot both\npass the count and take an account past the cap.","operationId":"save_property_api_properties_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavePropertyRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/properties/{property_id}":{"delete":{"summary":"Delete Property","operationId":"delete_property_api_properties__property_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["web","extension"],"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/watches":{"get":{"summary":"Get Watches","operationId":"get_watches_api_watches_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Post Watch","operationId":"post_watch_api_watches_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/watches/{watch_id}":{"delete":{"summary":"Delete Watch","operationId":"delete_watch_api_watches__watch_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"integer","title":"Watch Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/segments":{"get":{"summary":"Get Segments","description":"Return boundary segment lengths + midpoint coords for map label overlay.\n\nEdge lengths are Pro-only, decided here from the caller's token: the client's\ncached plan can outlive the session that wrote it (#392).\n\nResolves the same physical parcel row the client is looking at, exactly as\n/export/pdf does (c21d811 added row_id to _get_boundary_segments but left\nthis route calling it without one - a TypeError 500 on every call, so the\nlive segment labels vanished; UAT round 13 retest, 2026-08-29).","operationId":"get_segments_api_export_segments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"parcel_id","in":"query","required":true,"schema":{"type":"string","title":"Parcel Id"}},{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"parcel_row_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parcel Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/boundary":{"get":{"summary":"Export Boundary","description":"The lot's boundary as a DXF, KML or GeoJSON file (app/boundary_export.py).\n\nFor Pro, for the owner of a paid report for this lot, or (signed out) the holder of\nthe paid guest session for it. No new price: it comes with what they already paid\nfor. Nothing is recorded, so a download never counts as a lookup or an export; the\none trace is the boundary_file_exported analytics event, which also covers the\nlisting extension's downloads (posthog-js never runs there). Offered only where the cadastre licence allows handing the boundary over\n(layers_config.boundary_export_available).","operationId":"export_boundary_api_export_boundary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"parcel_id","in":"query","required":true,"schema":{"type":"string","title":"Parcel Id"}},{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"dxf","title":"Fmt"}},{"name":"parcel_row_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parcel Row Id"}},{"name":"guest_session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guest Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/pdf":{"post":{"summary":"Export Pdf","description":"Generate a PDF boundary report. Requires Pro plan, a prior paid export for this\nparcel, or (signed out) a paid guest Checkout Session for this parcel.","operationId":"export_pdf_api_export_pdf_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/pdf-link":{"post":{"summary":"Export Pdf Link","description":"Authorize a report exactly as POST /export/pdf does and return its permanent\nlink (app/report_access.py), the same URL the buyer was emailed. The page shows it\nas a button the buyer taps, which opens the PDF even in in-app browsers that\ncannot save a downloaded file. An existing ref is reused, never re-minted.","operationId":"export_pdf_link_api_export_pdf_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/report/r/{ref}":{"get":{"summary":"Export Report Ref","description":"Serve the report a permanent ref names. Entitlement is checked on every open:\na purchase ref asks Stripe whether its session is paid for this lot, an account's\nreport_link ref asks report_owned. An unknown or revoked ref is a 404.","operationId":"export_report_ref_api_export_report_r__ref__get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"part","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Part"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/report/{token}":{"get":{"summary":"Export Report Link","description":"A short-lived link issued before the permanent ref (app/report_access.py). No\nnew one is issued; one already in a buyer's hands opens until it expires.","operationId":"export_report_link_api_export_report__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reports":{"get":{"summary":"List Reports","description":"The lots this account has reports for, newest first, with each lot's parcel rows\n(a lot can have several parts) so the page can open the report from any device.","operationId":"list_reports_api_reports_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/reports/updates":{"get":{"summary":"Report Updates","description":"What this account's report for the lot has gained since the latest copy the server\nknows they got, as the labels the app lists (app/report_updates.py), and that copy's\ndate (`since`, UTC), which the notice names. Empty without a pdf_exports row for the\nlot, or when nothing newer applies. The elevation check is the report's own call: it\nreads the stored heights, or fetches and stores them once, as the report would.","operationId":"report_updates_api_reports_updates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"parcel_id","in":"query","required":true,"schema":{"type":"string","title":"Parcel Id"}},{"name":"parcel_row_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parcel Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/extension/lot":{"get":{"summary":"Extension Lot","description":"The listing card for the lot at (lat, lon), shaped for the caller's plan.\n\nOne lookup, counted and limited exactly as /api/parcel (429 signup_required for an\nanonymous network over its 5, 402 upgrade_required for a free account over its 5).\nA token that fails verification is anonymous, as everywhere else.\n\nlabel is the address /api/geocode matched for the listing, and (lat, lon) is its point.\nThe card names that address: a lot can hold several (\"30 Glory Street\" and \"491\nWaterworks Road Ashgrove\" are one lot), and the lot's stored address may be another.","operationId":"extension_lot_api_extension_lot_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","title":"Lon"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/extension/lot-map":{"get":{"summary":"Extension Lot Map","description":"The card's minimap for one parcels row, as a PNG.\n\nWithout `layer`: the base map (imagery and the lot), the same for every caller.\nWith `layer`: that layer alone as a transparent PNG in the base map's frame, for the\ncard to stack and toggle. Only when the caller's own token is Pro (403 otherwise: a\nrow id alone never unlocks a layer) and the layer is present on this lot (404\notherwise). 503 when it cannot be drawn; the card then shows no map, or no pill.","operationId":"extension_lot_map_api_extension_lot_map_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"row_id","in":"query","required":true,"schema":{"type":"integer","title":"Row Id"}},{"name":"layer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layer"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/geo":{"get":{"summary":"Geo","description":"The visitor's country (CF-IPCountry, or ?country= for testing), plus the currency\ncheckout will charge them and Stripe's prices in it. Without prices (Stripe\nunreadable or slower than _DISPLAY_PRICES_TIMEOUT) the client keeps its AUD default. Never edge-cached: it is per visitor.","operationId":"geo_api_geo_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"type":"string","default":"","title":"Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/checkout":{"post":{"summary":"Create Checkout","description":"Create a Stripe Checkout session for Pro plan upgrade.","operationId":"create_checkout_api_billing_checkout_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"type":"string","default":"","title":"Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/checkout-pdf":{"post":{"summary":"Create Pdf Checkout","description":"Create a Stripe Checkout session for a single PDF export ($19.99 one-time).\n\nSigned out is a guest checkout: Stripe collects the email, and the paid session\nitself is the credential for that one lot (see _verify_pdf_session). Replays showed\nthe account-first wall losing most one-off buyers (2026-10-06).\n\nA lot the buyer already owns is never sold again: 409 already_owned, and the\nclient opens the report instead (a buyer paid twice on 2026-10-18 because the\nExport button sent owners here).","operationId":"create_pdf_checkout_api_billing_checkout_pdf_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"type":"string","default":"","title":"Country"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/portal":{"post":{"summary":"Customer Portal","description":"Create a Stripe Customer Portal session for subscription management.","operationId":"customer_portal_api_billing_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/webhook/stripe":{"post":{"summary":"Stripe Webhook","description":"Handle Stripe webhook events. MUST receive raw bytes body.","operationId":"stripe_webhook_api_webhook_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/confirm-pdf-purchase":{"post":{"summary":"Confirm Pdf Purchase","description":"Verify a completed Stripe checkout session and record the PDF payment.\nCalled by the frontend upon returning from Stripe, before auto-triggering download.\nIdempotent - safe to call even if the webhook already ran.\n\nSigned out, only a guest session confirms (nothing is recorded; the session is the\nguest's credential). Signed in, the session must be the user's own, or a guest\nsession paid with the account's email.","operationId":"confirm_pdf_purchase_api_billing_confirm_pdf_purchase_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmPdfRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/track":{"get":{"summary":"Track Page View","description":"Record a page view. Called from frontend on load. Returns 204-style empty body.","operationId":"track_page_view_api_track_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/stats":{"get":{"summary":"Admin Stats","description":"Return all stats needed for the admin dashboard.","operationId":"admin_stats_api_admin_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBasic":[]}]}},"/api/admin/users":{"get":{"summary":"Admin Users","description":"List all users with usage stats.","operationId":"admin_users_api_admin_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBasic":[]}]}},"/api/admin/users/{user_id}/plan":{"post":{"summary":"Admin Set Plan","description":"Override a user's plan (free/pro).","operationId":"admin_set_plan_api_admin_users__user_id__plan_post","security":[{"HTTPBasic":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOverride"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/revenue":{"get":{"summary":"Admin Revenue","description":"Revenue summary: user counts, confirmed live purchase history.","operationId":"admin_revenue_api_admin_revenue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBasic":[]}]}},"/api/admin/events":{"get":{"summary":"Admin Events","description":"Paginated, filterable event log.","operationId":"admin_events_api_admin_events_get","security":[{"HTTPBasic":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Per Page"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"user_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"}},{"name":"jurisdiction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jurisdiction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/recent-searches":{"get":{"summary":"Admin Recent Searches","description":"Paginated recent parcel lookups.","operationId":"admin_recent_searches_api_admin_recent_searches_get","security":[{"HTTPBasic":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/queue":{"get":{"summary":"Admin Queue List","description":"List pending community post drafts from marketing_queue.","operationId":"admin_queue_list_api_admin_queue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBasic":[]}]}},"/api/admin/queue/{item_id}/approve":{"post":{"summary":"Admin Queue Approve","description":"Mark a community post draft as approved.","operationId":"admin_queue_approve_api_admin_queue__item_id__approve_post","security":[{"HTTPBasic":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/queue/{item_id}/skip":{"post":{"summary":"Admin Queue Skip","description":"Mark a community post draft as skipped.","operationId":"admin_queue_skip_api_admin_queue__item_id__skip_post","security":[{"HTTPBasic":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/queue/{item_id}/posted":{"post":{"summary":"Admin Queue Posted","description":"Mark a community post draft as posted (human has posted it manually).","operationId":"admin_queue_posted_api_admin_queue__item_id__posted_post","security":[{"HTTPBasic":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/content-briefs":{"get":{"summary":"Admin Content Briefs List","description":"List pending content briefs from content_briefs table.","operationId":"admin_content_briefs_list_api_admin_content_briefs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBasic":[]}]}},"/api/admin/content-briefs/{item_id}/approve":{"post":{"summary":"Admin Content Brief Approve","description":"Approve a content brief.","operationId":"admin_content_brief_approve_api_admin_content_briefs__item_id__approve_post","security":[{"HTTPBasic":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/content-briefs/{item_id}/skip":{"post":{"summary":"Admin Content Brief Skip","description":"Skip a content brief.","operationId":"admin_content_brief_skip_api_admin_content_briefs__item_id__skip_post","security":[{"HTTPBasic":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics":{"get":{"summary":"Admin Analytics Snapshot","description":"Return the latest analytics snapshot from analytics_snapshots.","operationId":"admin_analytics_snapshot_api_admin_analytics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBasic":[]}]}},"/api/admin/config":{"get":{"summary":"Get Admin Config","description":"Return current admin config values.","operationId":"get_admin_config_api_admin_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBasic":[]}]},"post":{"summary":"Set Admin Config","description":"Update admin config values.","operationId":"set_admin_config_api_admin_config_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminConfigUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBasic":[]}]}},"/api/admin/feedback":{"get":{"summary":"Admin Feedback List","description":"List in-app feedback reports (bug/feature).","operationId":"admin_feedback_list_api_admin_feedback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBasic":[]}]}},"/api/admin/feedback/{item_id}/actioned":{"post":{"summary":"Admin Feedback Actioned","description":"Mark a feedback report as actioned.","operationId":"admin_feedback_actioned_api_admin_feedback__item_id__actioned_post","security":[{"HTTPBasic":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback/{item_id}/dismissed":{"post":{"summary":"Admin Feedback Dismissed","description":"Mark a feedback report as dismissed.","operationId":"admin_feedback_dismissed_api_admin_feedback__item_id__dismissed_post","security":[{"HTTPBasic":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/v2/data":{"get":{"summary":"Admin V2 Data","operationId":"admin_v2_data_api_admin_v2_data_get","security":[{"HTTPBasic":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/v2/refresh":{"post":{"summary":"Admin V2 Refresh","operationId":"admin_v2_refresh_api_admin_v2_refresh_post","security":[{"HTTPBasic":[]}],"parameters":[{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/waitlist":{"post":{"summary":"Join Waitlist","description":"Store email + area + coordinates for coverage launch notifications. Silently deduplicates.","operationId":"join_waitlist_api_waitlist_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback":{"post":{"summary":"Submit Feedback","description":"Persist a feedback report. Durable write, best-effort Graph notification.\nA silently dropped bug report is the exact failure this feature exists to\nprevent, so DB failure returns 503 instead of swallowing the error like\n/api/waitlist does.\n\nAuth is optional: anonymous users may report. When a valid bearer token is\npresent the reporter's identity, plan and email come from the token, not the\nrequest body, so the signed-in case needs no reply-address field at all.","operationId":"submit_feedback_api_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/me":{"get":{"summary":"Get Me","description":"Return current user profile metadata.","operationId":"get_me_api_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/profile":{"put":{"summary":"Update Profile","description":"Update company branding. Pro plan only.","operationId":"update_profile_api_users_profile_put","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_update_profile_api_users_profile_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/me/release-notice/claim":{"post":{"summary":"Claim Release Notice","description":"Atomically claim the one-time release notice display slot.\n\nAn expiring lease, not a permanent lock: the claim is only good for\n2 minutes. A claim that never reaches confirm (navigation, DOM error,\ncrashed request) expires and can be re-claimed, so a render failure\ndoes not permanently lock the user out. Within the lease window, a\nsecond concurrent claim still gets show: false - the row lock from the\nfirst UPDATE serialises the second, whose WHERE clause then re-evaluates\nagainst the fresh claimed_at and fails, so two tabs opened together\nstill cannot both be told to show.","operationId":"claim_release_notice_api_users_me_release_notice_claim_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/me/release-notice/confirm":{"post":{"summary":"Confirm Release Notice","description":"Record that the release notice was actually displayed.","operationId":"confirm_release_notice_api_users_me_release_notice_confirm_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/logo":{"get":{"summary":"Get Logo","description":"Return the authenticated user's company logo as image bytes.","operationId":"get_logo_api_users_logo_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/email/unsubscribe":{"get":{"summary":"Unsubscribe Page","operationId":"unsubscribe_page_api_email_unsubscribe_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Unsubscribe","operationId":"unsubscribe_api_email_unsubscribe_post","parameters":[{"name":"t","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/layers/availability":{"get":{"summary":"Get Layers Availability","description":"Return per-layer availability for a jurisdiction.\n\nPer-layer shape is always flat {layer: bool}. Frontend treats unavailable\nlayers identically whether the reason is \"not registered for this\njurisdiction\" or \"registered but the parcel is outside the partial-coverage\nbbox\" - hides the pill, omits the chip. No special UI for out-of-coverage.\n\nWhen lat/lng is provided, each layer is the same layer_covers() check the\nconstraint score uses: partial-coverage layers (LAYER_COVERAGE) whose bbox\ndoesn't contain the point, or whose regions don't include the parcel's region\n(uk nations), fold into available=false. The region needs the parcel row, so\none indexed point lookup runs, and only for jurisdictions with region gates.\nWithout lat/lng, only the jurisdiction membership check runs (preserves\ncallers that don't have a parcel context yet, e.g. auth-state change refresh).\n\nI4 UAT round 9 (item 14): a separate \"partial\" key lists the AVAILABLE\nlayers whose loaded data is geographically sparse for this jurisdiction\n(LAYER_PARTIAL) - deliberately a sibling key, not a change to the per-layer\nbool shape, so existing callers (renderLayerRow, loadOverlayChips) are\nunaffected.","operationId":"get_layers_availability_api_layers_availability_get","parameters":[{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"}},{"name":"lng","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lng"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/layers/metadata":{"get":{"summary":"Get Layers Metadata","description":"Static per-layer metadata for the frontend explainer modal.\n\nReturns label, color, what/why explainer text, and the Pro flag for every\nlayer in LAYER_DISPLAY, plus labels_by_jurisdiction ({jurisdiction: label})\nfor a layer whose lot-specific name differs by region (static/app.html\nlayerLabel). No per-parcel data; safe to cache client-side for the\nduration of a page session.\n\nunserved_sources lists the layer's staging-only `source` values this environment does\nnot read (app/layers_config.py staging_only_sources), so the page credits and names\nonly the data a lot is actually checked against.","operationId":"get_layers_metadata_api_layers_metadata_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/categories":{"get":{"summary":"Get Overlay Categories","operationId":"get_overlay_categories_api_categories_get","parameters":[{"name":"layer","in":"query","required":true,"schema":{"type":"string","title":"Layer"}},{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/overlay/features":{"get":{"summary":"Get Overlay Features","description":"Return GeoJSON features of `layer` that intersect the parcel containing (lat, lng).\n\nUsed by the frontend to render parcel-scoped intersection-style layers\n(easements, coastal_erosion, electricity) instead of the all-features\nPMTile rendering. The full PMTile shows every feature in the jurisdiction,\nwhich is misleading when the user is looking at THEIR property - they see\nevery neighbour's easement too.\n\nParcel lookup is by point-in-polygon (lat/lng), NOT by parcel_id, because\nQLD DCDB ETL stored parcel_id=\"None\" for ~17% of rows (606k parcels) - a\nparcel_id JOIN matches every other \"None\" parcel in the jurisdiction.\n\nGeometry is clipped to the parcel boundary via ST_Intersection so polygons\ndon't bleed onto neighbour land. ST_CollectionExtract(geom, 3) defensively\nstrips any non-polygon parts that ST_Intersection might produce (lines or\npoints from touching-only intersections).\n\nLIMIT 50 caps response size. Pro layers gated identically to /api/overlay.","operationId":"get_overlay_features_api_overlay_features_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"layer","in":"query","required":true,"schema":{"type":"string","title":"Layer"}},{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","title":"Lng"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/overlay/nearby":{"get":{"summary":"Get Overlay Nearby","description":"Return GeoJSON features of `layer` near a point (radius mode) or inside a\nviewport (bbox mode, when all four min/max params are present), unclipped.\n\nGeneralises `/overlay/features` (parcel-clipped, INTERSECTION_LAYERS-only) for\ncategorical non-intersection layers like agri_land_class, where the interactive\nmap render needs the surrounding class MOSAIC (neighbouring polygons included,\nnot clipped to the parcel) rendered as GeoJSON instead of an overzoomed PMTile -\nthe agri PMTile's max-zoom is 12 and cold-loading its heavy z12 tiles at\nparcel-scale zoom (15-16) is slow/unreliable and chops off on zoom-out. GeoJSON\nhas no tile-zoom dependency so it renders reliably at any zoom.\n\nBbox mode drives the client's viewport-driven lazy load (agri iteration 2): the\ncamera, not a parcel-centred disc, defines what's fetched. It drops the radius\nmode's nearest-first KNN ordering - meaningless for a box, since every feature\ninside it is equally wanted, and measured to roughly double query time.","operationId":"get_overlay_nearby_api_overlay_nearby_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"layer","in":"query","required":true,"schema":{"type":"string","title":"Layer"}},{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"}},{"name":"lng","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lng"}},{"name":"radius_m","in":"query","required":false,"schema":{"type":"integer","maximum":3000,"minimum":1,"default":800,"title":"Radius M"}},{"name":"min_lon","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Lon"}},{"name":"min_lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Lat"}},{"name":"max_lon","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Lon"}},{"name":"max_lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Lat"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/overlay/segments":{"get":{"summary":"Get Overlay Segments","description":"Return per-segment boundary lengths for `layer`'s areal intersection with\nthe parcel containing (lat, lng).\n\nI4 UAT round 10 (#6): mirrors `_get_boundary_segments` (app/api/export.py) -\nST_DumpSegments + ST_Length(::geography) + ST_LineInterpolatePoint midpoints -\nbut computed over the SAME ST_Intersection-clipped geometry `/overlay/features`\nreturns, so the map labels and the PDF agree by construction. Restricted to\nthe 'area' kind (a real areal intersection, not a boundary touch or line) -\nsee the `kind` CASE in `/overlay/features` for what that distinction means.","operationId":"get_overlay_segments_api_overlay_segments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"layer","in":"query","required":true,"schema":{"type":"string","title":"Layer"}},{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","title":"Lng"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/overlay/nearest":{"get":{"summary":"Get Overlay Nearest","description":"Return the nearest feature of `layer` to (lat, lng) within `jurisdiction`.\n\nUsed by the frontend \"not in zone\" UX so toggling a layer that doesn't cover\nthe user's property doesn't look like a silent no-op: we tell the user where\nthe nearest feature is and pan the map to it.\n\nKNN ordering uses the PostGIS `<->` operator on the GIST-indexed geom column.\nDistance is computed in metres via geography cast on the matched row only.","operationId":"get_overlay_nearest_api_overlay_nearest_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"layer","in":"query","required":true,"schema":{"type":"string","title":"Layer"}},{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","title":"Lng"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/overlay/answer":{"get":{"summary":"Get Overlay Answer","description":"The yes or no for a locked layer on one lot: whether the layer is on the lot and,\nwhen it is not, roughly how far the nearest one is.\n\nFor ANSWER_LAYERS (flood, bushfire, coastal, electricity, heritage) that yes or no is\nwhat the report sells (owner, 2026-10-27, PR #373: 75 people saw it free and none\nbought), so a caller who is not Pro gets withheld: true and no presence or distance,\nand no query runs. Easements stay answered for everyone: the free constraint score\nnames them whether found or not.\n\nPresence is the report's own row for the layer (app/api/layer_presence.py, shared with\nthe PDF), so the answer and the report cannot disagree. Only the yes or no and a rounded\ndistance leave the server: never the name, category, source or coverage, which the\nreport and Pro sell. Spends no lookup: the lot is already on screen.\n\n{layer, withheld, checked, present, nearest_m}. checked is False where the layer has no\nyes or no (zoning) or no data at this lot; present and nearest_m are then None.","operationId":"get_overlay_answer_api_overlay_answer_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"layer","in":"query","required":true,"schema":{"type":"string","title":"Layer"}},{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"row_id","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/overlay":{"get":{"summary":"Get Overlay","operationId":"get_overlay_api_overlay_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","title":"Jurisdiction"}},{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","title":"Lng"}},{"name":"layers","in":"query","required":true,"schema":{"type":"string","title":"Layers"}},{"name":"parcel_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parcel Id"}},{"name":"parcel_row_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parcel Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guides/":{"get":{"summary":"Guides Hub","operationId":"guides_hub_guides__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"summary":"Guides Hub","operationId":"guides_hub_guides__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/guides/featured":{"get":{"summary":"Featured Guides","description":"The home page Guides cards (static/index.html), from the same set as the hub\nand the sitemap.","operationId":"featured_guides_api_guides_featured_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/guides/{slug}.html":{"head":{"summary":"Guide Page","operationId":"guide_page_guides__slug__html_head","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Guide Page","operationId":"guide_page_guides__slug__html_head","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app":{"head":{"summary":"App Page","operationId":"app_page_app_head","parameters":[{"name":"lot","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lot"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"App Page","operationId":"app_page_app_head","parameters":[{"name":"lot","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lot"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin":{"get":{"summary":"Admin Redirect","operationId":"admin_redirect_admin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/v2":{"get":{"summary":"Admin V2 Redirect","description":"Admin portal v2 (static/admin-v2.html); v1 stays at /admin.html.","operationId":"admin_v2_redirect_admin_v2_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AdminConfigUpdate":{"properties":{"stripe_test_mode":{"type":"boolean","title":"Stripe Test Mode"}},"type":"object","required":["stripe_test_mode"],"title":"AdminConfigUpdate"},"Body_update_profile_api_users_profile_put":{"properties":{"company_name":{"type":"string","title":"Company Name","default":""},"logo":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Logo"},"remove_logo":{"type":"boolean","title":"Remove Logo","default":false}},"type":"object","title":"Body_update_profile_api_users_profile_put"},"ConfirmPdfRequest":{"properties":{"session_id":{"type":"string","maxLength":200,"minLength":1,"title":"Session Id"}},"type":"object","required":["session_id"],"title":"ConfirmPdfRequest"},"ExportRequest":{"properties":{"parcel_id":{"type":"string","title":"Parcel Id"},"jurisdiction":{"type":"string","title":"Jurisdiction"},"parcel_row_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parcel Row Id"},"guest_session_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Guest Session Id"}},"type":"object","required":["parcel_id","jurisdiction"],"title":"ExportRequest"},"FeedbackRequest":{"properties":{"kind":{"type":"string","pattern":"^(bug|feature)$","title":"Kind"},"message":{"type":"string","maxLength":4000,"minLength":1,"title":"Message"},"reply_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Reply Email"},"page_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Page Url"},"jurisdiction":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Jurisdiction"},"parcel_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Parcel Id"},"active_layers":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Active Layers"},"user_agent":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"User Agent"},"viewport":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Viewport"},"is_mobile":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Mobile"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"}},"type":"object","required":["kind","message"],"title":"FeedbackRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PdfCheckoutRequest":{"properties":{"parcel_id":{"type":"string","maxLength":200,"title":"Parcel Id","default":""},"jurisdiction":{"type":"string","maxLength":10,"title":"Jurisdiction","default":""},"parcel_row_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parcel Row Id"},"lat":{"anyOf":[{"type":"number","maximum":90.0,"minimum":-90.0},{"type":"null"}],"title":"Lat"},"lon":{"anyOf":[{"type":"number","maximum":180.0,"minimum":-180.0},{"type":"null"}],"title":"Lon"},"guest_session_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Guest Session Id"},"ph_distinct_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ph Distinct Id"}},"type":"object","title":"PdfCheckoutRequest"},"PlanOverride":{"properties":{"plan":{"type":"string","title":"Plan"}},"type":"object","required":["plan"],"title":"PlanOverride"},"SavePropertyRequest":{"properties":{"parcel_id":{"type":"string","title":"Parcel Id"},"jurisdiction":{"type":"string","title":"Jurisdiction"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"area_m2":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Area M2"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"source":{"anyOf":[{"type":"string","enum":["web","extension"]},{"type":"null"}],"title":"Source"}},"type":"object","required":["parcel_id","jurisdiction"],"title":"SavePropertyRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WaitlistRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"area":{"type":"string","title":"Area","default":""},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lon"}},"type":"object","required":["email"],"title":"WaitlistRequest"},"WatchRequest":{"properties":{"row_id":{"type":"integer","title":"Row Id"},"scope":{"type":"string","enum":["lot","suburb"],"title":"Scope","default":"lot"}},"type":"object","required":["row_id"],"title":"WatchRequest"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"},"HTTPBasic":{"type":"http","scheme":"basic"}}}}