{"openapi":"3.1.0","info":{"title":"AfriGIS Deeds Triangle API","description":"\n**AfriGIS Deeds Triangle** — South African **property, company (CIPC), cadastre and\nbanking** intelligence over a licensed ~25 GB dataset (16.5M transfers · 13.7M bonds ·\n6.2M current owners · 13.7M CIPC directors · 9.4M companies · 9.4M parcels · 8.3M addresses).\n\n### Authentication\nEvery `/api/*` route needs an **`X-API-Key`** header (issued in the `/admin` console).\n- **Internal keys** (issued to an `@afrigis.co.za` customer) get **full, unredacted** access to every scope.\n- **External keys** are **scoped**, **POPIA-redacted**, and **rate / volume-capped** (max 10,000 records per response).\n\n### Same data from an AI assistant (MCP)\nPoint Claude (web / desktop / iPhone) at the connector and ask in plain English:\n`https://mcp.afrigis.ai/mcp`\n\n### Endpoints\n| Route | Does |\n|---|---|\n| `GET /api/lookup` | Owner + property record by **LPI**, **lat/lng**, or **address** |\n| `GET /api/geocode` | Address → coordinate + nearest parcel **LPI** |\n| `GET /api/deeds/transactions` | Mappable property **transfers** by town + date range (+ interactive map URL) |\n| `GET /api/cipc/directors` | Directors + cross-directorships (by name or CIPC reg no) |\n| `GET /api/fraud/flip` | Title-flip / fraud signal for a property |\n| `GET /api/banking/share` | Bank mortgage market share by town |\n| `GET /api/whoami` | Validate a key — see its scopes + tier |\n\n_Read-only. Deny-by-default. Every call audited._\n","contact":{"name":"AfriGIS Intellect","email":"info@intellect.afrigis.ai"},"license":{"name":"Commercial — AfriGIS General Terms"},"version":"v275"},"paths":{"/account":{"get":{"tags":["account"],"summary":"Account Page","operationId":"account_page_account_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/account/code":{"post":{"tags":["account"],"summary":"Request Code","description":"Send a 6-digit code. Rate limiting and validity live in wardfall_auth,\nwhich already carries the per-address hourly cap.","operationId":"request_code_api_account_code_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/verify":{"post":{"tags":["account"],"summary":"Verify Code","description":"Verify the code, then create the account on first sight.\n\nThe plaintext key is returned exactly once, here, because the keystore\nstores only its hash. The UI must tell the user that plainly.","operationId":"verify_code_api_account_verify_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/logout":{"post":{"tags":["account"],"summary":"Logout","operationId":"logout_api_account_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/account/me":{"get":{"tags":["account"],"summary":"Me","operationId":"me_api_account_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/ms":{"get":{"tags":["account"],"summary":"Account Ms","description":"Complete a Microsoft sign-in by minting the account session.\n\nWHY THIS EXISTS. v94 added \"Continue with Microsoft\" pointing at\n/.auth/login/aad?post_login_redirect_uri=/account. EasyAuth authenticated the\nuser, set its own cookie and returned them to /account — where NOTHING read\nthe EasyAuth identity. _set_session had exactly one call site, the email-code\npath, so /api/account/me answered 401 and the page called showSignIn(). The\nbutton returned you to the screen you started on; it never worked.\n\nWHY THE PATH IS /account/ms. excludedPaths is EXACT-match on this deployment,\nverified against production: /account and /terms return 404 (they reach\nFastAPI) while /account/ms, /account/anything, /terms/x and /privacyx all\nreturn 401 (EasyAuth holds them). So this route is EasyAuth-PROTECTED and the\nprincipal here is set by the platform after a real tenant sign-in — it cannot\nbe supplied by a client.\n\nThat distinction IS the security argument. Reading the same header on /account\nwould have been a header-spoofing hole, because /account is excluded and\nnothing would have authenticated the claim. Do not move this handler to an\nexcluded path, and do not add another caller of ensure_account(\nverified_by=\"easyauth\") without checking the same way.\n\nrequire_afrigis_user enforces the tenant domain and lowercases the UPN.","operationId":"account_ms_account_ms_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/accept-terms":{"post":{"tags":["account"],"summary":"Accept Terms","description":"Re-acceptance for an existing account — used when the terms version moves,\nand to capture billing details for the tax invoice after the fact.","operationId":"accept_terms_api_account_accept_terms_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy":{"get":{"tags":["account"],"summary":"Privacy Page","description":"The privacy notice, always reachable.\n\nDeliberately NOT behind _require_public(), unlike /terms. A licence is part of\nthe commercial surface and can reasonably 404 while that surface is closed; a\nprivacy notice is a statement about personal information we already process —\nfor people who never signed up and cannot sign up — so it should not depend on\nwhether we happen to be selling today.\n\nIt is also a hard requirement of the Claude Connectors Directory: a missing or\nunreachable privacy policy is an immediate rejection, and a reviewer may look\nbefore INTELLECT_PUBLIC is ever set.","operationId":"privacy_page_privacy_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/terms":{"get":{"tags":["account"],"summary":"Terms Page","description":"The licence text, at a stable URL, carrying its version.\n\nServed from a template so Legal can edit wording without a code change —\nbut the VERSION lives in accounts.TERMS_VERSION and must be bumped\ndeliberately, because bumping it re-asks every existing customer.","operationId":"terms_page_terms_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/terms/access-software-2026":{"get":{"tags":["account"],"summary":"Terms Access Software 2026","description":"The AfriGIS 2026 Terms of Use of Access Software (public PDF).","operationId":"terms_access_software_2026_terms_access_software_2026_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/terms/content-2026":{"get":{"tags":["account"],"summary":"Terms Content 2026","description":"The AfriGIS 2026 Terms and Conditions of Use of Content (public PDF).","operationId":"terms_content_2026_terms_content_2026_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/account/rotate":{"post":{"tags":["account"],"summary":"Rotate","description":"Replace the key, carrying the unspent balance across. Anyone who can\nprove control of the mailbox can do this — that is the whole security model,\nand it is also the recovery path for a leaked key.","operationId":"rotate_api_account_rotate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/account/free":{"get":{"tags":["account"],"summary":"Free Asks","description":"What the landing page shows an anonymous visitor: how many questions are\nleft before signing up. Signed-in users get their real balance instead.","operationId":"free_asks_api_account_free_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ask":{"post":{"tags":["ask"],"summary":"Ask Post","operationId":"ask_post_api_ask_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"tags":["web"],"summary":"Home","description":"The landing page: one box, then the products. Submits a plain GET to\n/search, so it degrades to a working form without JavaScript.","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/v2":{"get":{"tags":["web"],"summary":"V2 Home","description":"The Intellect 2 preview: one search bar + per-persona example queries.","operationId":"v2_home_v2_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/v3":{"get":{"tags":["web"],"summary":"V3 Landing","description":"Intellect 3 (simplified) landing — one search bar, sign-in, pricing, connect.","operationId":"v3_landing_v3_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/v3/workspace":{"get":{"tags":["web"],"summary":"V3 Workspace","description":"Intellect 3 workspace — signed-in balance, key and the ask box.","operationId":"v3_workspace_v3_workspace_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/v2/feedback":{"post":{"tags":["web"],"summary":"V2 Feedback Post","description":"Store one /v2 preview feedback row. Validates types/lengths and rejects any\nunknown field (app.services.v2_feedback.validate), rate-limits by IP, keeps the\noptional email nowhere but the durable v2_feedback table, and always returns\n204 on accept. Under /api/* so it needs no EasyAuth change.","operationId":"v2_feedback_post_api_v2_feedback_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pricing-lab":{"get":{"tags":["web"],"summary":"Pricing Lab","description":"Staff-only index of the draft pricing models.","operationId":"pricing_lab_pricing_lab_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pricing-lab/rates":{"get":{"tags":["web"],"summary":"Pricing Lab Rates","description":"The ONE calibrated price source every lab sheet reads at load, so a price change\nis a single edit to pricing.py / credit_topup.py and every model re-anchors itself —\nno per-sheet edit, no drift. (Declared before the {slug} route so \"rates\" is not\nmistaken for a page slug.)","operationId":"pricing_lab_rates_pricing_lab_rates_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pricing-lab/{slug}":{"get":{"tags":["web"],"summary":"Pricing Lab Page","description":"Staff-only: serve one draft pricing-model page by its known slug.","operationId":"pricing_lab_page_pricing_lab__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/densification":{"get":{"tags":["web"],"summary":"Densification National","description":"National densification explorer (all 4,468 2020 wards, rank-by-metric, municipality\npicker). Staff-only; self-contained. The AfriGIS basemap key, the search box and the VD\nsidecar URL are all injected HERE at serve time so the DeltaReport build file stays\nunedited/versioned in their pipeline.\n\nThe AfriGIS map authkey comes from the container env (AFRIGIS_MAP_AUTHKEY) and is NEVER\nin code or git. It is injected into the page the staff member receives — the same way\nAfriGIS's own leaflet plugin puts the key in tile URLs — which is acceptable only\nbecause this route is behind EasyAuth + require_afrigis_user. If the env var is unset,\nthe page stays on OpenStreetMap. Use a referrer-restricted key for this.","operationId":"densification_national_densification_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/densification/worcester":{"get":{"tags":["web"],"summary":"Densification Worcester","description":"Breede Valley (WC025) imagery swipe deep-dive. Staff-only; self-contained.\nDeep-link via #w=<ward>&s=<slider> is handled client-side.","operationId":"densification_worcester_densification_worcester_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/densification/vd.txt":{"get":{"tags":["web"],"summary":"Densification Vd","description":"Gated voting-district sidecar — the national explorer lazy-fetches it (same-origin,\nso the EasyAuth cookie rides along) the first time the 2026 wards/VD overlay is ticked.","operationId":"densification_vd_densification_vd_txt_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/densification/geocode":{"get":{"tags":["web"],"summary":"Densification Geocode","description":"Staff-gated address→coordinate for the explorer search box (AfriGIS-first geocode).\nReturns only {found, lat, lng, label}; no parcel/owner PII.","operationId":"densification_geocode_densification_geocode_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/horizons":{"get":{"tags":["web"],"summary":"Horizons Screen","description":"The big-screen progress page: commentary left, result right, Next/Prev. Polls\n/api/horizons/state every 2s. Staff-only (EasyAuth + this guard).","operationId":"horizons_screen_horizons_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/horizons/state":{"get":{"tags":["web"],"summary":"Horizons State","description":"Public read (under EasyAuth-excluded /api/*) — the screen polls it. Carries no\nsecrets, only the demo commentary/results the agent has posted.","operationId":"horizons_state_api_horizons_state_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/horizons/event":{"post":{"tags":["web"],"summary":"Horizons Event","operationId":"horizons_event_api_horizons_event_post","parameters":[{"name":"X-Horizons-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Horizons-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/horizons/result":{"post":{"tags":["web"],"summary":"Horizons Result","operationId":"horizons_result_api_horizons_result_post","parameters":[{"name":"X-Horizons-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Horizons-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/horizons/reset":{"post":{"tags":["web"],"summary":"Horizons Reset","operationId":"horizons_reset_api_horizons_reset_post","parameters":[{"name":"X-Horizons-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Horizons-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/horizons/enter-story":{"get":{"tags":["web"],"summary":"Horizons Enter Story","description":"Staff entry (EasyAuth). Issues the story cookie from the authenticated identity,\nthen redirects to the page. Deliberately NOT under /horizons/story so it keeps its\nEasyAuth challenge (the excludedPaths prefix never reaches it).","operationId":"horizons_enter_story_horizons_enter_story_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/horizons/story":{"get":{"tags":["web"],"summary":"Horizons Story","operationId":"horizons_story_horizons_story_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/horizons/story/view":{"get":{"tags":["web"],"summary":"Horizons Story View","operationId":"horizons_story_view_horizons_story_view_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/horizons/story/link":{"post":{"tags":["web"],"summary":"Horizons Story Link","description":"Guest self-service link. ALLOWLIST-ONLY: a uniform reply either way (no mail\noracle), only an allowlisted address is actually emailed, and rate-capped.","operationId":"horizons_story_link_horizons_story_link_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_horizons_story_link_horizons_story_link_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/horizons/story/clips/{name}":{"get":{"tags":["web"],"summary":"Horizons Story Clip","description":"Gated media under /api/* (EasyAuth-excluded) but cookie-gated here, so the clips\nnever sit on the public /static mount. Basename-only, no traversal.","operationId":"horizons_story_clip_api_horizons_story_clips__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/horizons/story/comments":{"get":{"tags":["web"],"summary":"Horizons Story Comments Get","operationId":"horizons_story_comments_get_api_horizons_story_comments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["web"],"summary":"Horizons Story Comments Post","operationId":"horizons_story_comments_post_api_horizons_story_comments_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/horizons/story/comments/{cid}/resolve":{"post":{"tags":["web"],"summary":"Horizons Story Comments Resolve","operationId":"horizons_story_comments_resolve_api_horizons_story_comments__cid__resolve_post","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"string","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/horizons/story/comments/all":{"get":{"tags":["web"],"summary":"Horizons Story Comments All","description":"Key-gated (X-Horizons-Key) collection read for the publishing window — includes\nauthor_email so comments can be acted on.","operationId":"horizons_story_comments_all_api_horizons_story_comments_all_get","parameters":[{"name":"X-Horizons-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Horizons-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tv1":{"get":{"tags":["web"],"summary":"Tv1","description":"Auto-paging tour of the public Intellect pages with a one-line caption each.","operationId":"tv1_tv1_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tv2":{"get":{"tags":["web"],"summary":"Tv2","description":"Room big screen — the OPEN property-activity layer in 3D over Sandton, slowly\norbiting, with a QR to the phone. The room sees property only; the protected layer\nis never rendered here.","operationId":"tv2_tv2_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tv2/phone":{"get":{"tags":["web"],"summary":"Tv2 Phone","description":"PUBLIC guest phone — the SAME open property layer, interactive (tilt/pan). No\nprotected data ever reaches this page (it is in EasyAuth excludedPaths).","operationId":"tv2_phone_tv2_phone_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tv2/lens":{"get":{"tags":["web"],"summary":"Tv2 Lens","description":"AUTHORISED glass (staff, EasyAuth). The magnifier reveals the PROTECTED synthetic\nsafe-house network, injected here ONLY. Move the glass to see what the room and any\nguest phone cannot — the governed-access demonstration. Data is illustrative/\nsynthetic (lens_demo), never a real safe-house location.","operationId":"tv2_lens_tv2_lens_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tv3":{"get":{"tags":["web"],"summary":"Tv3","operationId":"tv3_tv3_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tv4":{"get":{"tags":["web"],"summary":"Tv4","operationId":"tv4_tv4_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tv3/phone":{"get":{"tags":["web"],"summary":"Tv3 Phone","operationId":"tv3_phone_tv3_phone_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tv4/phone":{"get":{"tags":["web"],"summary":"Tv4 Phone","operationId":"tv4_phone_tv4_phone_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tv3/link":{"post":{"tags":["web"],"summary":"Tv3 Link","operationId":"tv3_link_tv3_link_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_tv3_link_tv3_link_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tv4/link":{"post":{"tags":["web"],"summary":"Tv4 Link","operationId":"tv4_link_tv4_link_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_tv4_link_tv4_link_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tv3/view":{"get":{"tags":["web"],"summary":"Tv3 View","operationId":"tv3_view_tv3_view_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tv4/view":{"get":{"tags":["web"],"summary":"Tv4 View","operationId":"tv4_view_tv4_view_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/horizons/admin":{"get":{"tags":["web"],"summary":"Horizons Admin","description":"Staff-only control panel for the big screen — drives it from the operator's own\nEasyAuth session (no X-Horizons-Key needed): reset the board, post a commentary\nline, or set a result by hand. For rehearsal and as a live fallback if the\nmail-driven agent stalls.","operationId":"horizons_admin_horizons_admin_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/horizons/admin/post":{"post":{"tags":["web"],"summary":"Horizons Admin Post","operationId":"horizons_admin_post_horizons_admin_post_post","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_horizons_admin_post_horizons_admin_post_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/for/grip":{"get":{"tags":["web"],"summary":"For Grip","description":"GRiP developer onboarding for the Property Search API — public, noindex.\nDeclared BEFORE /for/{slug} so the literal path wins (FastAPI matches in\ndefinition order); otherwise the magic-link gate below would swallow it.\nNeeds /for/grip in the EasyAuth excludedPaths to load without AfriGIS SSO.","operationId":"for_grip_for_grip_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/for/{slug}":{"get":{"tags":["web"],"summary":"Industry Brief","description":"MAGIC-LINK GATED. The domain-personalised brief.\n\nWas public; now behind a self-service magic link so the briefs (which name a\nreal prospect and our pitch to them) are not readable by anyone who guesses a\nslug, and so /for/<x> stops being an enumeration oracle for our prospect list.\nOpen allowlist: any address can request a link for any slug (FOR_DOMAIN_CHECK\ntightens that to a domain match when turned on). A valid token in ?t or the\nper-slug cookie renders the brief; otherwise the visitor gets an email prompt.\nAn unknown slug still 404s regardless of token, so the oracle stays closed.","operationId":"industry_brief_for__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/for/{slug}/link":{"post":{"tags":["web"],"summary":"Industry Brief Link","description":"Self-service magic-link issuance for a /for brief. Open allowlist. Mints a\nstateless signed token scoped to this slug and emails the link. The POST is\nwhat an email scanner will not perform, so issuance is never triggered by a\npre-fetch; the link it sends is multi-use so the human's later click works.","operationId":"industry_brief_link_for__slug__link_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_industry_brief_link_for__slug__link_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/proposal/{page}":{"get":{"tags":["web"],"summary":"Proposal","description":"Per-prospect proposal pages (ArchiTracker / Harcourts). Unlike /for these\nare NOT self-service: a link is issued per prospect, so a missing/invalid token\n404s (fail-closed, no email prompt). The token's scope is per-page, so a\nHarcourts link cannot open ArchiTracker. The card button on these pages is\ninert until pricing is signed off.","operationId":"proposal_proposal__page__get","parameters":[{"name":"page","in":"path","required":true,"schema":{"type":"string","title":"Page"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fleischerei":{"get":{"tags":["web"],"summary":"Fleischerei","description":"The per-person landing page: the swipe study, the three deck downloads\n(Model 3 flagged confidential) and the phone-only revenue reveal. 404s\nwithout a valid token (no email prompt — this is issued per named person).\n\nA token minted with once=true is SINGLE-USE: redeemed on first open and bound\nto that browser for the 14 days; a later open from any other device is\nredirected to the free first-look teaser (Unlock/pay), never the full study.\nEvery click — first redeem, bound-device return, and reuse — is counted.","operationId":"fleischerei_fleischerei_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fleischerei/deck":{"get":{"tags":["web"],"summary":"Fleischerei Deck","operationId":"fleischerei_deck_fleischerei_deck_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fleischerei/dl/{model}":{"get":{"tags":["web"],"summary":"Fleischerei Download","description":"Gated download of a study PowerPoint, streamed from a PRIVATE blob after\nthe cookie check. The blob name is chosen from a fixed table (no user input\nreaches the blob path); a missing asset fails closed (404).","operationId":"fleischerei_download_fleischerei_dl__model__get","parameters":[{"name":"model","in":"path","required":true,"schema":{"type":"string","title":"Model"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fleischerei/revenue":{"get":{"tags":["web"],"summary":"Fleischerei Revenue","description":"PHONE-ONLY revenue lens. A desktop/shared-screen UA gets a \"open on your\nphone\" page with no figures; a phone gets the lens. Content is slotted in\nlater — the route and the phone-only wall are live now.","operationId":"fleischerei_revenue_fleischerei_revenue_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fleischerei/first-look":{"get":{"tags":["web"],"summary":"Fleischerei First Look","description":"FREE-tier teaser + first-look panel. Gated by a first-look OR full token;\na first-look link can reach this but NOT the deck/downloads/revenue. 404s\nwithout a valid token. Served verbatim from the image (no confidential data\nin it — the trailer build fails if a hidden site name leaks).","operationId":"fleischerei_first_look_fleischerei_first_look_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fleischerei/results":{"get":{"tags":["web"],"summary":"Fleischerei Results","description":"FULL cut: names every site and links the study outputs. Gated by the\nSTRICT full-study token (_fl_claims, scope 'fleischerei' only) — a first-look\nlink 404s here. Served verbatim from the image; every open logged.","operationId":"fleischerei_results_fleischerei_results_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fleischerei/cards":{"get":{"tags":["web"],"summary":"Fleischerei Cards","description":"Client site-decision cards. FULL scope only — shows Model 3 turnover, so a\nfirst-look token 404s here. Served from the PRIVATE blob (turnover never sits\nin the image).","operationId":"fleischerei_cards_fleischerei_cards_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fleischerei/cards-internal":{"get":{"tags":["web"],"summary":"Fleischerei Cards Internal","description":"Internal site-decision cards (Esri imagery, internal-only, + QA notes).\nRestricted to a SINGLE identity: full scope AND an allow-listed internal\nemail. Every other token — including other full-scope holders — 404s. Served\nfrom the private blob.","operationId":"fleischerei_cards_internal_fleischerei_cards_internal_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fleischerei/api/feedback":{"post":{"tags":["web"],"summary":"Fleischerei Feedback","description":"Store a comment left on the first-look page, attributed to the signed\nrecipient and durable (blob snapshot). Gated identically to the page. Accepts\nJSON {comment, context?} or a form with the same fields. Does NOT send mail —\nthe comment is read back by the staff/Graph side, which emails Magnus (he\nsends; we never do from here). Fail-closed: no token -> 404; empty -> 422.","operationId":"fleischerei_feedback_fleischerei_api_feedback_post","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{brand}/first-look":{"get":{"tags":["web"],"summary":"Brand First Look","operationId":"brand_first_look__brand__first_look_get","parameters":[{"name":"brand","in":"path","required":true,"schema":{"type":"string","title":"Brand"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{brand}/results":{"get":{"tags":["web"],"summary":"Brand Results","operationId":"brand_results__brand__results_get","parameters":[{"name":"brand","in":"path","required":true,"schema":{"type":"string","title":"Brand"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{brand}/lab":{"get":{"tags":["web"],"summary":"Brand Lab","description":"Specialist Model Lab — explains Models 1/2/3 for the brand. FULL scope\nonly (same bearer-token gate as /results); a first-look token 404s. Read-only\nin this build (interactive rerun is a later step). The model data bundle\n(lab_data.json) is PUBLIC benchmark data for the demo brands (KFC, HL).","operationId":"brand_lab__brand__lab_get","parameters":[{"name":"brand","in":"path","required":true,"schema":{"type":"string","title":"Brand"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{brand}/api/feedback":{"post":{"tags":["web"],"summary":"Brand Feedback","operationId":"brand_feedback__brand__api_feedback_post","parameters":[{"name":"brand","in":"path","required":true,"schema":{"type":"string","title":"Brand"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{brand}/unlock":{"get":{"tags":["web"],"summary":"Brand Unlock","description":"Redeem a brand voucher (R0) and email the full-scope study link to the\nvoucher's BOUND email. The link is never shown on this page — only the masked\ndestination — so a leaked code can't bypass the email binding.","operationId":"brand_unlock__brand__unlock_get","parameters":[{"name":"brand","in":"path","required":true,"schema":{"type":"string","title":"Brand"}},{"name":"v","in":"query","required":false,"schema":{"type":"string","title":"V"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/s/{code}":{"get":{"tags":["web"],"summary":"Short Link","description":"Resolve a short code to its full tokenised URL and 302 there. Exists because\nchat apps (WhatsApp) wrap a long ?t= token and linkify only part of it, handing\nthe recipient a broken URL. 404 for unknown/expired — no oracle. Must stay in\nEasyAuth excludedPaths (/s/*) so recipients reach it without a Microsoft login;\nthe TARGET it redirects to carries the token and is itself excluded.","operationId":"short_link_s__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{brand}/buy":{"get":{"tags":["web"],"summary":"Brand Buy","description":"Anonymous checkout for a brand study. Public (brand paths are EasyAuth-\nexcluded); the money is handled by PayGate, and a settled payment mints+emails\nthe full link. 404 for a brand with no buyable product.","operationId":"brand_buy__brand__buy_get","parameters":[{"name":"brand","in":"path","required":true,"schema":{"type":"string","title":"Brand"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{brand}/pay/start":{"post":{"tags":["web"],"summary":"Brand Pay Start","description":"Create the order and hand the browser the PayGate redirect form (auto-POST\nto PayGate's card page). The money is only ever granted by the checksummed\n/pay/notify ITN; this just gets the buyer to PayGate.","operationId":"brand_pay_start__brand__pay_start_post","parameters":[{"name":"brand","in":"path","required":true,"schema":{"type":"string","title":"Brand"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_brand_pay_start__brand__pay_start_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/for/resolve":{"post":{"tags":["web"],"summary":"Industry Resolve","description":"Server-side domain->slug resolve + magic-link issuance. Replaces the public\n/for.json map, which — once the briefs were gated — had become the ONLY thing\ndisclosing our prospect list (one GET returned all 47 slugs). Now the address is\nresolved server-side and used transiently to send a link; it is never stored or\nlogged, and the map never ships.\n\nUNIFORM RESPONSE either way (password-reset pattern): the reply does not reveal\nwhether a brief exists for the domain, so it is not an enumeration oracle. The\nsend is fired as a background task, so the known-domain path doesn't take longer\nthan the unknown one — the latency can't leak membership either. Capped per\naddress (one link/day, so we can't be used to repeatedly mail a prospect) and per\nIP (so one actor can't walk a domain list).","operationId":"industry_resolve_for_resolve_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_industry_resolve_for_resolve_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions":{"get":{"tags":["web"],"summary":"Solutions","description":"PUBLIC. The five agent flows, with the endpoints each one calls and what it\ncosts. Public deliberately: it is the page the ribbon's \"Solutions\" points at,\nand a landing page whose nav walks an anonymous visitor into a Microsoft login\nis worse than no nav. No guard, per this file's convention.","operationId":"solutions_solutions_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/site-selection":{"get":{"tags":["web"],"summary":"Site Selection","description":"PUBLIC. Self-serve site-selection plans (Pre-flight / Second opinion /\nInvestment committee) plus the once-off 'find me sites' regional search —\nthe Fleischerei/QSR study turned into a storefront. Same visual system as\n/pricing and /solutions, and public for the same reason (its nav must not\nwalk an anonymous visitor into a Microsoft login).\n\nPHASE 1 is this page only: prices are static copy in the template (these are\nsubscription PLANS, not credit bundles, so NOT rendered from\ncredit_topup.bundles()). The Start buttons open /account with the plan in the\nquery string; live subscription billing and the site-check engine are phase 2.\nMust stay OUT of promising a self-serve checkout that does not exist yet.\n\nNeeds /site-selection added to EasyAuth excludedPaths to be reachable by the\npublic (Magnus's go).","operationId":"site_selection_site_selection_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/harcourts":{"get":{"tags":["web"],"summary":"Harcourts","description":"Harcourts: reconcile-first proposal + the illustrative diff summary.\n\nSame gating choice as /architracker — kept OUT of excludedPaths so the Entra ID\ngate admits AfriGIS addresses only. Internal proposal content naming a real\nprospect and real pricing; it should not be publicly reachable.","operationId":"harcourts_harcourts_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/architracker":{"get":{"tags":["web"],"summary":"Architracker","description":"ArchiTracker proposal + the illustrative enriched-property report.\n\nDELIBERATELY NOT in EasyAuth excludedPaths. That means the existing Entra ID\ngate admits AfriGIS tenant addresses only, which is exactly what is wanted here\n— Antonie and Annelize sign in with their normal work account and nobody outside\nthe tenant can reach it. No auth-config change was needed to achieve that, which\nafter 2026-10-05 is a feature rather than an omission.","operationId":"architracker_architracker_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/models":{"get":{"tags":["web"],"summary":"Models","description":"\"For the models\" — the agent-facing page. Terse, no marketing, and it LEADS with\nthe known failure modes of each dataset, because those are what make a model\nconfidently wrong and are the one thing a schema cannot convey. /llms.txt carries\nthe same content as plain text and is the form an agent should actually fetch.","operationId":"models_models_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/enterprise":{"get":{"tags":["web"],"summary":"Enterprise","description":"Enterprise: sovereign data, own model, own cloud — with an on-page contact form\n(POST /api/enterprise/enquiry). Replaces the old mailto: link, which popped the\nvisitor's mail client instead of sending.","operationId":"enterprise_enterprise_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pricing":{"get":{"tags":["web"],"summary":"Pricing","description":"PUBLIC pricing page — the three-tier storefront over the credit wallet.\n\nEvery figure is rendered from credit_topup.bundles() at request time. Nothing on\nthe page is a hardcoded price, so it CANNOT drift from what the checkout charges.\nThat matters more than it sounds: INTELLECT_BUNDLES is overridden in the production\nenvironment, so the ladder in credit_topup.py's source is NOT what customers pay,\nand any page built from the source defaults would have advertised the wrong price.\n\nTiers are picked by size rather than by name, so adding or retuning a bundle via\nINTELLECT_BUNDLES reshapes this page with no code change:\n  starter  = the cheapest bundle\n  pro      = the next one up (the everyday tier, badged \"most popular\")\n  volume   = everything above it that is still a live checkout\nEnterprise is a static card, because contact_sales bundles are a conversation.","operationId":"pricing_pricing_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/sasdi":{"get":{"tags":["web"],"summary":"Sasdi","description":"SASDI: authoritative, SASDI-aligned SA spatial data + a trial request form\n(reuses POST /api/enterprise/enquiry with topic='SASDI trial request').","operationId":"sasdi_sasdi_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/connect":{"get":{"tags":["web"],"summary":"Connect","description":"How to connect: get a key, load Intellect as a live connector in\nClaude / ChatGPT / Gemini, and what you can and cannot ask.","operationId":"connect_connect_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/connect/it":{"get":{"tags":["web"],"summary":"Connect It","description":"PUBLIC, forwardable page for a visitor's IT / security team: what the\nconnector is, what is and isn't sent, POPIA, and the admin setting that allows\nit in Claude / ChatGPT / Gemini. Unblocks IT-managed clients (e.g. a Claude\nEnterprise that disallows custom connectors by default).","operationId":"connect_it_connect_it_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/connect/{tool}":{"get":{"tags":["web"],"summary":"Connect Tool","description":"PUBLIC per-tool walk-through. Unknown tool -> 404 (registry-gated).","operationId":"connect_tool_connect__tool__get","parameters":[{"name":"tool","in":"path","required":true,"schema":{"type":"string","title":"Tool"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/concierge":{"get":{"tags":["web"],"summary":"Concierge","description":"Concierge: the done-for-you service — ask one question, we do the rest.\nPUBLIC — no member gate, like the landing page (and it is in EasyAuth\nexcludedPaths). Intake form reuses POST /api/enterprise/enquiry with\ntopic='Concierge request'.","operationId":"concierge_concierge_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/concierge/plato":{"get":{"tags":["web"],"summary":"Concierge Plato","description":"STAFF-GATED — the Platō trade-area pilot one-pager (Concierge deliverable).\nGuarded in-app with require_afrigis_user AND kept out of EasyAuth excludedPaths\n(defense in depth): it names a real prospect and carries illustrative pricing,\nso per PILOT_SPEC_plato_gated §7 it stays behind AfriGIS staff SSO until Magnus\nauthorises a public or gated-pilot go-live. Static one-pager — no payment path.","operationId":"concierge_plato_concierge_plato_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/concierge/plato/pilot":{"get":{"tags":["web"],"summary":"Concierge Plato Pilot","description":"STAFF-GATED — the interactive gated pilot (PILOT_SPEC_plato_gated §3): type a\nsite, get the site-vs-footprint answer against Platō's live footprint. Staff-first,\nMERCHANT OFF (no payment path yet) until Magnus authorises the real-money go-live\n(§7). Posts to /concierge/plato/run.","operationId":"concierge_plato_pilot_concierge_plato_pilot_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/concierge/plato/run":{"post":{"tags":["web"],"summary":"Concierge Plato Run","description":"STAFF-GATED — run the free site-vs-footprint analysis for the pilot. Body:\n{\"q\": \"<address or place>\"}. Fail-CLOSED resolution gate; degrades to\n{found:false, blocked:true, reason} rather than a misleading single-catchment.","operationId":"concierge_plato_run_concierge_plato_run_post","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/concierge/plato/where-to-open":{"post":{"tags":["web"],"summary":"Concierge Plato Where To Open","description":"STAFF-GATED — the PAID 'where to open' unlock (the inverse of the free\n'where not to open'). Reuses the LIVE credit system: check entitlement\n(may_spend), run the analysis, and consume the cost ONLY on a successful,\nnon-empty result — a failed or empty run is free, per the meter rules. Top-ups\ngo through the existing /account flow; there is NO new payment rail here.","operationId":"concierge_plato_where_to_open_concierge_plato_where_to_open_post","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plato/footprint":{"get":{"tags":["web"],"summary":"Plato Footprint Status","description":"PUBLIC diagnostic (under excludedPaths /api/*): live count of Platō's filtered\nfootprint (name~Platō + ZA + Published) from the Stockist feed, + 3 samples. Lets\nus verify the loader post-deploy. Public store data only — nothing sensitive.","operationId":"plato_footprint_status_api_plato_footprint_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/faq":{"get":{"tags":["web"],"summary":"Faq","description":"FAQ — PUBLIC (no member gate, in EasyAuth excludedPaths). Draft starter\nanswers for marketing to refine; contact points to info@intellect.afrigis.ai.","operationId":"faq_faq_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/gautrain":{"get":{"tags":["web"],"summary":"Gautrain","description":"Gautrain concept demo (draft). Restricted to GAUTRAIN_ALLOW — the named\nreviewers only — NOT the general member set. require_member gives the signed-in\nemail (via the emailed-code session or AfriGIS SSO); the allowlist narrows it.","operationId":"gautrain_gautrain_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/samples/weather":{"get":{"tags":["web"],"summary":"Sample Weather","description":"PUBLIC industry sample site — AfriGIS Weather Intelligence (demand-led demo;\nWeather is the #1 requested capability, 130 enquiries in 24 months). Illustrative\ndata until the live Weather API is wired. In EasyAuth excludedPaths (/samples/*).","operationId":"sample_weather_samples_weather_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/samples/property":{"get":{"tags":["web"],"summary":"Sample Property","description":"PUBLIC industry sample site — Property & Deeds Intelligence (2nd most-requested,\n57 enquiries/24mo). Features ID-number search returning AGGREGATED + HASHED results\n(POPIA-safe: counts/bands/municipalities/risk flags, never raw ID/address/name).\nIllustrative data until wired to the live deeds & CIPC APIs.","operationId":"sample_property_samples_property_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/samples/core":{"get":{"tags":["web"],"summary":"Sample Core","description":"PUBLIC industry sample site — Core APIs (Address/Geocoding 43, Maps 25,\nBoundaries 23 = 91 enquiries/24mo). The developer building blocks + self-serve\non-ramp. Buy-credits CTA + pricing. Illustrative responses until wired live.","operationId":"sample_core_samples_core_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/weather/scopes":{"get":{"tags":["web"],"summary":"Weather Scopes","description":"PUBLIC diagnostic (under excludedPaths /api/*): reports whether our AfriGIS\nclient gets DATA for each weather scope CF supplied (2026-09-22) — a real probe\ncall per scope, cached. Booleans only — never a token or secret. Behind the same\nper-IP / origin guard as /live so it cannot be used to fan out to upstreams.","operationId":"weather_scopes_api_weather_scopes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/weather/live":{"get":{"tags":["web"],"summary":"Weather Live","description":"PUBLIC: live weather near a coordinate for /samples/weather — national SAWS\nwarnings, nearby storm cells, nearby lightning strokes, and the daily forecast.\nServer-side cached (~10 min per rounded coordinate) so a scripted loop cannot\nmultiply onto our licensed weather credentials; per-IP brake + cross-origin\nblock on top. Degrades to a per-layer {error} on any upstream failure.","operationId":"weather_live_api_weather_live_get","parameters":[{"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/enterprise/enquiry":{"post":{"tags":["web"],"summary":"Enterprise Enquiry","description":"Public: emails an enterprise enquiry to the sales inbox. Fixed recipient (never\ncaller-controlled), a honeypot field, and length caps keep it from being an open\nrelay. Reuses the app's Graph mailer (wardfall_auth.send_html).","operationId":"enterprise_enquiry_api_enterprise_enquiry_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/trust":{"get":{"tags":["web"],"summary":"Trust","description":"PUBLIC. The vendor-risk page: residency, access control, audit, sub-processors,\nmeasured availability, and an explicit section on what we do NOT have.\n\nPublic on purpose and NOT behind _require_public(): a procurement analyst reads\nthis before there is any question of an account, and the same reasoning v95\napplied to /privacy applies here — a statement about how we handle other\npeople's data should not depend on whether we are selling today.","operationId":"trust_trust_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/developers":{"get":{"tags":["web"],"summary":"Developers","description":"PUBLIC. MCP + REST documentation, the endpoint/credit table and the limits.\n\nNOT /docs — that is FastAPI's Swagger UI, which is EasyAuth-gated and stays\nthat way. This is the human-facing documentation for someone who has not got\na key yet, which is precisely the person Swagger cannot serve.","operationId":"developers_developers_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/explorer":{"get":{"tags":["web"],"summary":"Explorer","description":"The original map-driven parcel lookup. Was / until 2026-08-11; still\nlinked from the Property & owner card and kept for anyone with a bookmark.","operationId":"explorer_explorer_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/suggest":{"get":{"tags":["web"],"summary":"Ui Suggest","description":"Address suggestions as you type.\n\nDeliberately NOT metered. It fires on keystrokes, so charging it would bill a\nuser several times for one question and push them back to typing blind — which\nis the behaviour this exists to remove. The lookup the suggestion leads to is\nthe billable event; finding the address is not.\n\nNever raises: address_search.suggest degrades to an empty list on any failure,\nso a dead upstream costs the user their dropdown, not their search.\n\nReturns the typed shape deeds-mcp's /demo/suggest settled on —\n{type, label, sub, value, ref} — so the two surfaces stay consistent. No\nconfidence floor is applied: address_search.suggest passes everything the\nupstream returns, and for a typeahead a labelled low-confidence row beats an\nempty list. An empty dropdown reads as \"this address does not exist\", and the\nuser retypes a correct address several times before giving up.","operationId":"ui_suggest_ui_suggest_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"partial address, 3+ characters","default":"","title":"Q"},"description":"partial address, 3+ characters"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":6,"title":"Limit"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/search":{"get":{"tags":["web"],"summary":"Search Page","description":"Single search — one box that routes any input to the right lookup and\nthen shows every surface that answer can be taken to. Behind the same\nEasyAuth (Microsoft) gate as the rest of the human UI.","operationId":"search_page_search_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/search":{"get":{"tags":["web"],"summary":"Ui Search","description":"JSON behind /search. Runs on the staff EasyAuth session — same services,\nsame audit trail as /api, no key needed in the browser.","operationId":"ui_search_ui_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Anything: address, name, company, SG code, coordinate","default":"","title":"Q"},"description":"Anything: address, name, company, SG code, coordinate"},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/overview":{"get":{"tags":["web"],"summary":"Overview","description":"Plain-language landing page for the Deeds Triangle — non-technical folks\nland here; developers click through to the Swagger/ReDoc technical docs.","operationId":"overview_overview_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/welcome":{"get":{"tags":["web"],"summary":"Welcome","description":"The AfriGIS Deeds Triangle marketing site (humans + AI as customers).","operationId":"welcome_welcome_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/llms.txt":{"get":{"tags":["web"],"summary":"Llms Txt","description":"PUBLIC. Machine-readable capability summary for AI agents. Ungated 2026-10-05:\nan agent cannot sign in, so a gated llms.txt serves nobody. Kept SHORT and\nlink-rich on purpose — the failure modes and vintages live on /models as the\nsingle source, and duplicating them here was already drifting within hours.","operationId":"llms_txt_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/agents.json":{"get":{"tags":["web"],"summary":"Agents Json","description":"PUBLIC. Structured sibling of /llms.txt, ungated 2026-10-05 for the same reason.","operationId":"agents_json_agents_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/robots.txt":{"get":{"tags":["web"],"summary":"Robots Txt","description":"AI-crawler-friendly robots.txt pointing at /llms.txt. No auth gate in-app.","operationId":"robots_txt_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/demo/whatsapp":{"get":{"tags":["web"],"summary":"Whatsapp Demo","operationId":"whatsapp_demo_demo_whatsapp_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/transactions":{"get":{"tags":["web"],"summary":"Map Transactions","description":"Interactive transactions map (OpenStreetMap / Esri-satellite toggle).\nStaff EasyAuth session — fetches its data from /ui/transactions.geojson.","operationId":"map_transactions_map_transactions_get","parameters":[{"name":"town","in":"query","required":false,"schema":{"type":"string","default":"","title":"Town"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","default":"","title":"From"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","default":"","title":"To"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/transactions.geojson":{"get":{"tags":["web"],"summary":"Ui Transactions Geojson","description":"GeoJSON transactions for the map page (staff EasyAuth session — the\nbrowser can't carry the /api X-API-Key, same pattern as /ui/lookup).","operationId":"ui_transactions_geojson_ui_transactions_geojson_get","parameters":[{"name":"town","in":"query","required":true,"schema":{"type":"string","title":"Town"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","default":"","title":"From"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","default":"","title":"To"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/lookup":{"get":{"tags":["web"],"summary":"Ui Lookup","description":"Property lookup for the signed-in Explorer UI. Uses the staff EasyAuth\nsession (no API key needed) — the browser can't carry the /api X-API-Key.\nSame data + response shape as /api/lookup; POPIA redaction applied.","operationId":"ui_lookup_ui_lookup_get","parameters":[{"name":"sgcode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sgcode"}},{"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":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/explore":{"get":{"tags":["web-explore"],"summary":"Explore","operationId":"explore_explore_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/brand-voucher":{"get":{"tags":["admin"],"summary":"Brand Voucher Form","operationId":"brand_voucher_form_admin_brand_voucher_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Brand Voucher Create","description":"Create the voucher as the single writer (the live app). Returns its unlock\nURL for Magnus to hand to the recipient.","operationId":"brand_voucher_create_admin_brand_voucher_post","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_brand_voucher_create_admin_brand_voucher_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/shortlink":{"get":{"tags":["admin"],"summary":"Shortlink Form","operationId":"shortlink_form_admin_shortlink_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Shortlink Create","operationId":"shortlink_create_admin_shortlink_post","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_shortlink_create_admin_shortlink_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/funnel":{"get":{"tags":["admin"],"summary":"Funnel View","description":"Connect-funnel counts by source: visited -> asked -> signed up, from the\nfunnel_events store. first_call is derived from the keystore (keys with usage;\nno source attribution), and OAuth completions live in the MCP gateway, not here\n— both are noted rather than faked.","operationId":"funnel_view_admin_funnel_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/":{"get":{"tags":["admin"],"summary":"Console","operationId":"console_admin__get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/mcp-status":{"get":{"tags":["admin"],"summary":"Mcp Status","description":"Server-side ping of the MCP server's /healthz (avoids browser CORS).\nReturns reachability + the version it reports + its configured image tag.","operationId":"mcp_status_admin_api_mcp_status_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/reconciliation":{"get":{"tags":["admin"],"summary":"Reconciliation","description":"Money taken vs value delivered vs accounting posted.\n\nThis exists because the previous reconciliation query had ZERO callers and\nqueried a table the payment module never writes — so \"PayGate says paid, Xero\ndoes not know\" was structurally undetectable. A query nobody calls is not a\nsafety net, so this route is its caller, and the admin console renders it.\n\napproved_not_credited is the urgent one: the card was charged and the credits\nnever landed. credited_not_in_xero is the accounting gap — the customer has\nwhat they paid for, but the sale is not in the books.","operationId":"reconciliation_admin_api_reconciliation_get","parameters":[{"name":"older_than_seconds","in":"query","required":false,"schema":{"type":"integer","default":600,"title":"Older Than Seconds"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/keys":{"get":{"tags":["admin"],"summary":"List Keys","operationId":"list_keys_admin_api_keys_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Key","operationId":"create_key_admin_api_keys_post","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/keys/{key_id}/revoke":{"post":{"tags":["admin"],"summary":"Revoke Key","operationId":"revoke_key_admin_api_keys__key_id__revoke_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/keys/{key_id}/topup":{"post":{"tags":["admin"],"summary":"Topup Key","description":"Add credits to a key's allowance.","operationId":"topup_key_admin_api_keys__key_id__topup_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyTopup"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ask":{"post":{"tags":["admin"],"summary":"Ask","description":"Live demo: send a question to the MCP server's concierge (afrigis_assistant)\nand return the answer, so the console can show the real round-trip. Uses the\ninternal key as the MCP bearer (forwarded to /api).","operationId":"ask_admin_api_ask_post","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskQ"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/test-key":{"post":{"tags":["admin"],"summary":"Test Key","description":"Test whether a key would be accepted by /api (and the MCP) — mirrors exactly\nhow require_api_principal resolves a credential: full internal key, scoped env\nkey, or an issued keystore key. Returns the resolved scopes/limits.","operationId":"test_key_admin_api_test_key_post","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyTest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/opens":{"get":{"tags":["admin"],"summary":"Deck Opens Report","description":"Admin-only engagement view: for every gated customer link (the Fleischerei\nstudy + its teaser, and each client brand), who opened it, how many times, and\nwhen they were last seen. Answers 'how many clicks' without an exec, and shows\nquiet customers at a glance. Counts only — no IP/UA, no content.","operationId":"deck_opens_report_admin_opens_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audit":{"get":{"tags":["admin"],"summary":"Audit Report","description":"Admin-only post-incident counts for the C1/C2 review (v256).\n\nC1 — POPIA exposure: every external (non-staff) account, and which of them\nreached /api/ask. We never logged a per-call PII-row count, so this is the\nrecoverable upper bound on who could have been served owner/director PII\nbefore v256; it is NOT an exact row count.\nC2 — test-mode unlocks: every brand unlock via='pay' — the links to review\nand revoke now that v256 has closed the free-unlock path. No IP/UA/card data.","operationId":"audit_report_admin_audit_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboards/":{"get":{"tags":["dashboards"],"summary":"Index","operationId":"index_dashboards__get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboards/risk/":{"get":{"tags":["dashboards"],"summary":"Risk Index","operationId":"risk_index_dashboards_risk__get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboards/risk/{path}":{"get":{"tags":["dashboards"],"summary":"Risk File","operationId":"risk_file_dashboards_risk__path__get","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboards/gapminder/":{"get":{"tags":["dashboards"],"summary":"Gapminder Index","operationId":"gapminder_index_dashboards_gapminder__get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboards/gapminder/{file}":{"get":{"tags":["dashboards"],"summary":"Gapminder File","description":"The page's JSON. Gated identically to the page — a dashboard whose DATA is\nopen is not gated, it is decorated. _safe() blocks traversal, and that matters\nmore now than it did: this is reachable by someone outside the tenant.","operationId":"gapminder_file_dashboards_gapminder__file__get","parameters":[{"name":"file","in":"path","required":true,"schema":{"type":"string","title":"File"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboards/address":{"get":{"tags":["dashboards"],"summary":"Address","description":"AfriGIS Address Search proxy (server-side OAuth) for the dashboards' search\nbox — keeps the client_id/secret off the browser.\n\nMoved onto the open router with the SAME narrow gate as Gapminder, because the\nsearch box lives on the Gapminder page: leaving it staff-only would hand a named\nreviewer a dashboard with one visibly broken control. It is still a paid\nupstream lookup, so the gate is the allowlist and not require_member — the blast\nradius is exactly the names in GAPMINDER_ALLOW.","operationId":"address_dashboards_address_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lens":{"get":{"tags":["lens"],"summary":"Lens Page","description":"The page itself. Carries geometry and no figures — see the module docstring.\n\nrequire_member, NOT require_afrigis_user, and the difference is the whole point\nof this change: /lens goes into the EasyAuth excludedPaths so a named external\nreviewer can reach it through the emailed-code (OTP) door, and the moment a path\nis excluded the platform edge stops being the gate. require_member is then the\nonly thing between an anonymous visitor and this page, which is why it returns an\nidentity or raises and never falls through.\n\nIt is deliberately NOT narrowed to _LENS_ALLOW. This page carries ward numbers,\nboundary geometry and area — Municipal Demarcation Board open data, worth nothing\non its own. Every figure comes from /lens/data, which is checked separately. A\nmember who is not a named reviewer sees the map and is asked to pay for the\nnumbers, which is the funnel working, not a leak.","operationId":"lens_page_lens_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lens/data":{"get":{"tags":["lens"],"summary":"Lens Data","description":"The figures for one metro sheet.\n\n402 carries the same shape the client renders directly: a message and, where\nthere is something the reader can do about it, a URL and a label for the button.","operationId":"lens_data_lens_data_get","parameters":[{"name":"muni","in":"query","required":false,"schema":{"type":"string","minLength":3,"maxLength":3,"default":"CPT","title":"Muni"}},{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lookup":{"get":{"tags":["lookup"],"summary":"Lookup","description":"Resolve an input to an owner record.\n\nResolution order:\n    1. sgcode (direct lookup)\n    2. lat/lng (spatial chain)\n    3. address (NAD geocode)\n    4. name (owner-name search — the REVERSE direction: every parcel an\n       owner holds). Same `deeds_property` scope, same redaction and cap;\n       the gate is key issuance, not a separate scope.\nReturns {\"found\": bool, \"record\"?: OwnerRecord, \"matches\"?: [...],\n         \"message\"?: str, \"resolution_source\"?: str}","operationId":"lookup_api_lookup_get","parameters":[{"name":"sgcode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"21-char LPI","title":"Sgcode"},"description":"21-char LPI"},{"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":"address","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text address (NAD path)","title":"Address"},"description":"Free-text address (NAD path)"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Owner name — returns every parcel that owner holds","title":"Name"},"description":"Owner name — returns every parcel that owner holds"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/geocode":{"get":{"tags":["lookup"],"summary":"Geocode","description":"Resolve a street address OR a coordinate to a coordinate + nearest parcel LPI.\n\nCoordinate inputs (DMS / decimal degrees / degrees-decimal-minutes /\nGoogle Maps link / geo: URI) are reverse-geocoded to the nearest cadastral\nparcel. Address inputs use the NAD street matcher. `geocode_only` scope\n(non-PII): returns the LPI/parcel + place — pass the LPI to deeds_owner_lookup\nfor the registered owner.","operationId":"geocode_api_geocode_get","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","description":"Street address (e.g. '123 Church St, Pretoria') OR a coordinate — decimal degrees '-25.75,28.19', DMS '25°44\\'46\"S 28°11\\'17\"E', a Google Maps link, or a geo: URI.","title":"Address"},"description":"Street address (e.g. '123 Church St, Pretoria') OR a coordinate — decimal degrees '-25.75,28.19', DMS '25°44\\'46\"S 28°11\\'17\"E', a Google Maps link, or a geo: URI."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whoami":{"get":{"tags":["lookup"],"summary":"Whoami","description":"Validate a key/credential and return its principal, ITS LIMITS AND ITS USAGE.\n\nWHY THE USAGE IS HERE (2026-10-16). Graham Rowe asked the question that sits\nunder all of his others — \"can a customer see their own usage?\" — and the answer\nwas no. /api/whoami returned customer, scopes, tier and source and nothing else.\nHe learned his key had made 194,736 calls because an INTERNAL watcher alert was\nforwarded to him by hand, and he could not reconcile it against his own logs. A\ncustomer who cannot see their own meter cannot check our invoice, cannot pace an\nagent, and has to ask us for a number we should simply show them.\n\nSo this route now answers it. It stays FREE and unmetered (see the exemption in\nrequire_api_principal) — charging someone to read their own balance would be\nabsurd, and an agent checking its allowance must not consume the allowance.\n\nA key may read ONLY ITS OWN row. keystore.usage() is given the key_id the caller\nalready proved they hold, and returns usage fields alone — no hash, no other\ncustomer, no other key.\n\nWHAT IT CANNOT DO, said on the response rather than discovered later: there is no\ntime series. We keep a cumulative counter per key and per route, so usage BY DAY\nor BY HOUR cannot be produced for any key, including ours. And consume() fails\nopen, so a call that slipped through during a ledger fault is not in this number.\nIt is a floor, not a ledger, and the response says so.","operationId":"whoami_api_whoami_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cipc/directors":{"get":{"tags":["lookup"],"summary":"Cipc Directors","description":"Directors of a company (by name or registration number). ID numbers and\nresidential addresses are redacted for external principals.","operationId":"cipc_directors_api_cipc_directors_get","parameters":[{"name":"company","in":"query","required":true,"schema":{"type":"string","description":"Company name or CIPC registration number","title":"Company"},"description":"Company name or CIPC registration number"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reconcile":{"post":{"tags":["lookup"],"summary":"Reconcile","description":"Compare a caller's property list against the register and return the delta.\n\nAnswers the question a customer with an existing list actually asks first — \"how\nmuch of my data is wrong?\" — rather than looking up one property at a time. Built\nfrom field feedback on a 21,446-record request that no per-record flow could serve.\n\nThe `summary` counts are free of personal data by construction, so a prospect can\nmeasure their own staleness before buying anything; per-record owner detail needs\nan entitled key. Four statuses, deliberately distinct: current, changed, not_found\nand invalid_key. `not_found` is never folded into `current`, because reporting an\nunresolvable key as a match would overstate how clean the caller's data is.","operationId":"reconcile_api_reconcile_post","parameters":[{"name":"rows","in":"query","required":true,"schema":{"type":"integer","maximum":50000,"minimum":1,"description":"How many rows you are sending. Must equal the body length — this is what the call is priced on.","title":"Rows"},"description":"How many rows you are sending. Must equal the body length — this is what the call is priced on."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_reconcile_api_reconcile_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fraud/flip":{"get":{"tags":["lookup"],"summary":"Fraud Flip","description":"Title-flip / fraud signal for one property, derived from its transfer\ncadence and price jumps.\n\nIf the sgcode is a SECTIONAL SCHEME the response carries no verdict — a scheme\nis a development, not a property — and returns the highest-risk units instead.\nPass `unit` to scan one of them.","operationId":"fraud_flip_api_fraud_flip_get","parameters":[{"name":"sgcode","in":"query","required":true,"schema":{"type":"string","description":"LPI / sgcode to scan for title-flip signals","title":"Sgcode"},"description":"LPI / sgcode to scan for title-flip signals"},{"name":"unit","in":"query","required":false,"schema":{"type":"string","description":"Sectional unit number. Required to get a verdict when the sgcode is a scheme.","default":"","title":"Unit"},"description":"Sectional unit number. Required to get a verdict when the sgcode is a scheme."},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/banking/share":{"get":{"tags":["lookup"],"summary":"Banking Share","description":"Bank mortgage market share for a town over a year range, derived from\ntransfer bond data.","operationId":"banking_share_api_banking_share_get","parameters":[{"name":"town","in":"query","required":true,"schema":{"type":"string","description":"Town name","title":"Town"},"description":"Town name"},{"name":"bank","in":"query","required":false,"schema":{"type":"string","description":"Bank name to highlight (optional)","default":"","title":"Bank"},"description":"Bank name to highlight (optional)"},{"name":"from","in":"query","required":false,"schema":{"type":"integer","description":"Start year (optional)","default":0,"title":"From"},"description":"Start year (optional)"},{"name":"to","in":"query","required":false,"schema":{"type":"integer","description":"End year (optional)","default":0,"title":"To"},"description":"End year (optional)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deeds/transactions":{"get":{"tags":["lookup"],"summary":"Deeds Transactions","description":"Property transactions (transfers) in a town/suburb over a date range,\nreturned as GeoJSON points (parcel centroids) plus a `map_url` for an\ninteractive OpenStreetMap/Esri-satellite map. `to` is exclusive.","operationId":"deeds_transactions_api_deeds_transactions_get","parameters":[{"name":"town","in":"query","required":true,"schema":{"type":"string","description":"Town or suburb, e.g. 'Centurion'","title":"Town"},"description":"Town or suburb, e.g. 'Centurion'"},{"name":"from","in":"query","required":false,"schema":{"type":"string","description":"Start date YYYY-MM-DD (inclusive)","default":"","title":"From"},"description":"Start date YYYY-MM-DD (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"type":"string","description":"End date YYYY-MM-DD (exclusive)","default":"","title":"To"},"description":"End date YYYY-MM-DD (exclusive)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deeds/price-trend":{"get":{"tags":["lookup"],"summary":"Deeds Price Trend","description":"Aggregate selling-price trend across one or more areas over time — the whole\n\"compare N suburbs by price per year\" question in ONE call, not a per-year fan-out.\nMedian (server-side, over priced transfers only) by default; unpriced transfers\n(~38%: donations/R1/estates) are excluded and reported as n vs n_priced. `to` is\nexclusive. See MCP_AGGREGATE_AND_COST_SPEC §2.","operationId":"deeds_price_trend_api_deeds_price_trend_get","parameters":[{"name":"area","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"One or more towns/suburbs — repeat the param, e.g. area=Menlo Park&area=Brooklyn","title":"Area"},"description":"One or more towns/suburbs — repeat the param, e.g. area=Menlo Park&area=Brooklyn"},{"name":"from","in":"query","required":false,"schema":{"type":"string","description":"Start date YYYY-MM-DD (inclusive)","default":"","title":"From"},"description":"Start date YYYY-MM-DD (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"type":"string","description":"End date YYYY-MM-DD (exclusive)","default":"","title":"To"},"description":"End date YYYY-MM-DD (exclusive)"},{"name":"by","in":"query","required":false,"schema":{"type":"string","description":"year | quarter | month","default":"year","title":"By"},"description":"year | quarter | month"},{"name":"stat","in":"query","required":false,"schema":{"type":"string","description":"median | mean | both","default":"median","title":"Stat"},"description":"median | mean | both"},{"name":"match","in":"query","required":false,"schema":{"type":"string","description":"exact | prefix | contains — exact by default so 'Lynnwood' excludes 'Lynnwood Ridge'","default":"exact","title":"Match"},"description":"exact | prefix | contains — exact by default so 'Lynnwood' excludes 'Lynnwood Ridge'"},{"name":"include_unpriced","in":"query","required":false,"schema":{"type":"boolean","description":"include zero/blank-price transfers in price stats (default excludes them)","default":false,"title":"Include Unpriced"},"description":"include zero/blank-price transfers in price stats (default excludes them)"},{"name":"estimate_only","in":"query","required":false,"schema":{"type":"boolean","description":"return cost estimate without executing","default":false,"title":"Estimate Only"},"description":"return cost estimate without executing"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/catchment/enrich":{"get":{"tags":["lookup"],"summary":"Catchment Enrich","description":"What a trade area CONTAINS: deeds/parcels + median price, sectional schemes,\nPOI-by-category, census age and anchor facilities. Exact point-in-polygon via\nduckdb spatial.\n\nThree ways to say WHERE, so a caller who does not already hold a polygon can\nstill ask. An address or coordinate draws the catchment via the isochrone\nservice; `radius_m` asks for a plain circle; `poly` passes one in directly.\nHow the ring was obtained is always reported back in `catchment`, because a\ncircle presented as a drive-time area is a lie by omission.","operationId":"catchment_enrich_api_catchment_enrich_get","parameters":[{"name":"poly","in":"query","required":false,"schema":{"type":"string","description":"catchment ring as 'lng,lat;lng,lat;…'","title":"Poly"},"description":"catchment ring as 'lng,lat;lng,lat;…'"},{"name":"address","in":"query","required":false,"schema":{"type":"string","description":"or an address — geocoded, then a catchment drawn around it","title":"Address"},"description":"or an address — geocoded, then a catchment drawn around it"},{"name":"lat","in":"query","required":false,"schema":{"type":"number","description":"or a coordinate","title":"Lat"},"description":"or a coordinate"},{"name":"lng","in":"query","required":false,"schema":{"type":"number","title":"Lng"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","description":"drive-time minutes for the catchment (default 10)","title":"Minutes"},"description":"drive-time minutes for the catchment (default 10)"},{"name":"radius_m","in":"query","required":false,"schema":{"type":"number","description":"or a straight-line radius in metres instead of drive time","title":"Radius M"},"description":"or a straight-line radius in metres instead of drive time"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/catchment/sites":{"post":{"tags":["lookup"],"summary":"Catchment Sites","description":"A whole footprint at once: geocode each site, draw a catchment, enrich it,\nthen measure where the catchments OVERLAP.\n\nThis is the \"where is my catchment given the current footprint\" question. The\noverlap matters more than the individual profiles — two stores whose trade\nareas share 40% of their parcels are competing with each other, and that is\ninvisible when you look at one site at a time.\n\nAreas are computed on the WGS84 ring scaled by cos(latitude), which is close\nenough for a ratio between two adjacent catchments and avoids a reprojection\ndependency. Ratios are reported, never absolute square kilometres, because\nthe approximation is honest for the former and not the latter.","operationId":"catchment_sites_api_catchment_sites_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"{\"sites\":[{\"name\":\"…\",\"address\":\"…\"}|{\"lat\":…,\"lng\":…}], \"minutes\":10}","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business/company":{"get":{"tags":["lookup"],"summary":"Biz Company","description":"Company by name or reg number → details, directors, auditors, linked parcels.\nID numbers / residential addresses redacted for external principals.","operationId":"biz_company_api_business_company_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","description":"company name or CIPC registration number","title":"Query"},"description":"company name or CIPC registration number"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business/nearby":{"get":{"tags":["lookup"],"summary":"Biz Nearby","description":"Companies whose directors appear in a deeds event on a parcel near a coordinate,\nor on one parcel. NOT the company's premises — see the `basis` field on the response.","operationId":"biz_nearby_api_business_nearby_get","parameters":[{"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","description":"search radius in metres","default":1000,"title":"Radius M"},"description":"search radius in metres"},{"name":"sgcode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"21-char LPI — companies on that parcel","title":"Sgcode"},"description":"21-char LPI — companies on that parcel"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"CIPC status filter; default 'In Business', pass 'all' to include deregistered","title":"Status"},"description":"CIPC status filter; default 'In Business', pass 'all' to include deregistered"},{"name":"roles","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"comma-separated deeds event roles (registration_buyer, transfer_buyer, bond_holder, transfer_seller); default excludes transfer_seller","title":"Roles"},"description":"comma-separated deeds event roles (registration_buyer, transfer_buyer, bond_holder, transfer_seller); default excludes transfer_seller"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"max rows (still bounded by your key's cap)","title":"Limit"},"description":"max rows (still bounded by your key's cap)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business/director":{"get":{"tags":["lookup"],"summary":"Biz Director","description":"Every company an individual directs — by name or SA ID number.","operationId":"biz_director_api_business_director_get","parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"director name","title":"Name"},"description":"director name"},{"name":"id_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"SA ID number","title":"Id Number"},"description":"SA ID number"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/property/scheme":{"get":{"tags":["property"],"summary":"Property Scheme","description":"Sectional scheme (condo) unit search — scheme name + unit, across deeds offices.","operationId":"property_scheme_api_property_scheme_get","parameters":[{"name":"scheme_name","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Scheme name, e.g. ICON","title":"Scheme Name"},"description":"Scheme name, e.g. ICON"},{"name":"unit_number","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Unit number","title":"Unit Number"},"description":"Unit number"},{"name":"deeds_office","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Deeds office (optional, narrows a fuzzy scheme match)","title":"Deeds Office"},"description":"Deeds office (optional, narrows a fuzzy scheme match)"},{"name":"scheme_number","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Scheme number (optional)","title":"Scheme Number"},"description":"Scheme number (optional)"},{"name":"year_established","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1800},{"type":"null"}],"description":"Year the scheme was established (optional)","title":"Year Established"},"description":"Year the scheme was established (optional)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/property/erf":{"get":{"tags":["property"],"summary":"Property Erf","description":"Cadastral erf search — an erf number alone is enough; township narrows it.","operationId":"property_erf_api_property_erf_get","parameters":[{"name":"erf_number","in":"query","required":true,"schema":{"type":"integer","description":"Erf (township lot) number","title":"Erf Number"},"description":"Erf (township lot) number"},{"name":"township","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Township name (optional)","title":"Township"},"description":"Township name (optional)"},{"name":"portion_number","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Portion number (optional)","title":"Portion Number"},"description":"Portion number (optional)"},{"name":"deeds_office","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Deeds office (optional)","title":"Deeds Office"},"description":"Deeds office (optional)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/property/farm":{"get":{"tags":["property"],"summary":"Property Farm","description":"Farm search — farm name + number, across deeds offices.","operationId":"property_farm_api_property_farm_get","parameters":[{"name":"farm_name","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Farm name","title":"Farm Name"},"description":"Farm name"},{"name":"farm_number","in":"query","required":true,"schema":{"type":"integer","description":"Farm number","title":"Farm Number"},"description":"Farm number"},{"name":"portion_number","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Portion number (optional)","title":"Portion Number"},"description":"Portion number (optional)"},{"name":"registration_division","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Registration division (optional)","title":"Registration Division"},"description":"Registration division (optional)"},{"name":"deeds_office","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Deeds office (optional)","title":"Deeds Office"},"description":"Deeds office (optional)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/property/landparcel":{"get":{"tags":["property"],"summary":"Property Landparcel","description":"Land parcel search — by LPI code or cadastral reference.","operationId":"property_landparcel_api_property_landparcel_get","parameters":[{"name":"reference","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"LPI code or cadastral reference","title":"Reference"},"description":"LPI code or cadastral reference"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/property/titledeed":{"get":{"tags":["property"],"summary":"Property Titledeed","description":"Title deed search — by title deed number.","operationId":"property_titledeed_api_property_titledeed_get","parameters":[{"name":"title_deed","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Title deed number, e.g. ST12226/2010","title":"Title Deed"},"description":"Title deed number, e.g. ST12226/2010"},{"name":"deeds_office","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Deeds office (optional)","title":"Deeds Office"},"description":"Deeds office (optional)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/property/address":{"get":{"tags":["property"],"summary":"Property Address","description":"Address search — by an AfriGIS place_id/seoid (from the geocode API).","operationId":"property_address_api_property_address_get","parameters":[{"name":"reference","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"An AfriGIS place_id or seoid from a geocode/autocomplete call","title":"Reference"},"description":"An AfriGIS place_id or seoid from a geocode/autocomplete call"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/property/location":{"get":{"tags":["property"],"summary":"Property Location","description":"Location search — properties at a latitude/longitude, across deeds offices.","operationId":"property_location_api_property_location_get","parameters":[{"name":"latitude","in":"query","required":true,"schema":{"type":"number","maximum":90,"minimum":-90,"description":"Latitude (WGS84)","title":"Latitude"},"description":"Latitude (WGS84)"},{"name":"longitude","in":"query","required":true,"schema":{"type":"number","maximum":180,"minimum":-180,"description":"Longitude (WGS84)","title":"Longitude"},"description":"Longitude (WGS84)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/bundles":{"get":{"tags":["payments"],"summary":"Bundles","operationId":"bundles_pay_bundles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pay/credits/initiate":{"post":{"tags":["payments"],"summary":"Credits Initiate","description":"Start a top-up for the SIGNED-IN account's own key.\n\nkey_id used to be a free parameter, which meant anyone could start a payment\nagainst any key: harmless-looking (it credits the victim) but it leaks which\nkey ids exist and lets a third party attach their payment reference to\nsomeone else's balance. The key is now taken from the session, and an\nexplicit key_id is honoured only when it is the caller's own.","operationId":"credits_initiate_pay_credits_initiate_post","parameters":[{"name":"bundle","in":"query","required":true,"schema":{"type":"string","description":"bundle id (b400 / b5k / b25k / b100k) or a pack slug","title":"Bundle"},"description":"bundle id (b400 / b5k / b25k / b100k) or a pack slug"},{"name":"key_id","in":"query","required":false,"schema":{"type":"string","description":"deprecated — the signed-in account's key is used","title":"Key Id"},"description":"deprecated — the signed-in account's key is used"},{"name":"voucher","in":"query","required":false,"schema":{"type":"string","description":"optional discount-voucher code (honoured only when vouchers are enabled)","title":"Voucher"},"description":"optional discount-voucher code (honoured only when vouchers are enabled)"},{"name":"accept","in":"query","required":false,"schema":{"type":"boolean","description":"the buyer ticked the 2026 licence acceptance at checkout","default":false,"title":"Accept"},"description":"the buyer ticked the 2026 licence acceptance at checkout"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/credits/invoice":{"post":{"tags":["payments"],"summary":"Credits Invoice","description":"Create an order for someone who is NOT in a browser, and return a link\nthat can be emailed to them.\n\nThis is the email lane: a question arrives by mail, the asker is out of\ncredits, and the reply needs to carry a way to pay. There is no session to\nread, so authorisation comes from the same delegation the bot already uses\nto bill them — X-API-Key of a can_delegate key, plus X-On-Behalf-Of naming\nthe account. Anything else is refused.","operationId":"credits_invoice_pay_credits_invoice_post","parameters":[{"name":"bundle","in":"query","required":false,"schema":{"type":"string","description":"bundle id: b400 / b5k / b25k / b100k","default":"b5k","title":"Bundle"},"description":"bundle id: b400 / b5k / b25k / b100k"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/link/{token}":{"get":{"tags":["payments"],"summary":"Pay Link","description":"The emailed link. Verifies the envelope and hands the browser to PayGate.\n\nOpening this grants nothing — it only offers payment. Confirmation comes\nfrom the checksummed ITN on /pay/notify, never from someone loading a page.","operationId":"pay_link_pay_link__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/invoice/{token}":{"get":{"tags":["payments"],"summary":"Invoice Page","description":"The customer's tax invoice, reached from the emailed receipt.\n\nBehind the same signed envelope as the pay link, because an invoice carries\nthe customer's name, VAT number and what they spent — a sequential number in\na URL would let anyone walk the series.","operationId":"invoice_page_pay_invoice__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/notify":{"post":{"tags":["payments"],"summary":"Notify","description":"PayGate posts form-encoded ITN here. Must return 'OK' so PayGate stops\nretrying; the checksum (not the network) is what authenticates it.","operationId":"notify_pay_notify_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pay/return":{"get":{"tags":["payments"],"summary":"Pay Return","operationId":"pay_return_pay_return_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["payments"],"summary":"Pay Return","operationId":"pay_return_pay_return_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pay/checkout":{"get":{"tags":["payments"],"summary":"Pay Checkout","description":"Authenticated new-tab review page for a top-up. /pay/* is EasyAuth-excluded,\nso this is reachable and authenticates from the session cookie exactly like\n/pay/credits/initiate. GET only READS — it never initiates an order.","operationId":"pay_checkout_pay_checkout_get","parameters":[{"name":"bundle","in":"query","required":true,"schema":{"type":"string","description":"bundle id","title":"Bundle"},"description":"bundle id"}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/pack/{slug}":{"get":{"tags":["payments"],"summary":"Pay Pack","description":"Authenticated review page for a per-customer PACK, reached from the Buy-now on\na gated /proposal/<slug> page. Same posture as /pay/checkout (/pay/* is\nEasyAuth-excluded): a trial customer reaches it and authenticates from the session\ncookie; if not signed in they are sent to /account to sign in — which creates their\naccount on first use — and bounced straight back here. The pack is looked up in\nPACKS, never in the public bundles() picker, so it stays off /account. A voucher\nfield is offered (honoured only when vouchers are enabled).","operationId":"pay_pack_pay_pack__slug__get","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"}}}}}}},"/pay/voucher/check":{"post":{"tags":["payments"],"summary":"Voucher Check","description":"Preview a voucher's effect WITHOUT reserving it (see app.services.vouchers —\na preview that consumes the code is how a customer loses a discount by looking at\nit). Returns {ok, ...} on a valid code or {ok:false, error} otherwise. Honoured\nonly when vouchers are switched on; a clean, non-committal reply otherwise so the\nfield degrades gracefully.","operationId":"voucher_check_pay_voucher_check_post","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","description":"the voucher code to preview","title":"Code"},"description":"the voucher code to preview"},{"name":"slug","in":"query","required":false,"schema":{"type":"string","description":"the pack/bundle the code would apply to","title":"Slug"},"description":"the pack/bundle the code would apply to"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/sample":{"get":{"tags":["payments"],"summary":"Pay Sample","operationId":"pay_sample_pay_sample_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pay/sample/initiate":{"post":{"tags":["payments"],"summary":"Pay Sample Initiate","operationId":"pay_sample_initiate_pay_sample_initiate_post","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pay/combo":{"get":{"tags":["payments"],"summary":"Pay Combo","operationId":"pay_combo_pay_combo_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pay/combo/initiate":{"post":{"tags":["payments"],"summary":"Pay Combo Initiate","operationId":"pay_combo_initiate_pay_combo_initiate_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_pay_combo_initiate_pay_combo_initiate_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report/conveyancer":{"get":{"tags":["reports"],"summary":"Conveyancer Report","description":"Conveyancer's Assistant — Transfer Readiness Pack for one property.","operationId":"conveyancer_report_api_report_conveyancer_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","description":"Property address, coordinate, or LPI/sgcode","title":"Query"},"description":"Property address, coordinate, or LPI/sgcode"},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"pdf (download) | json (assembled pack)","default":"pdf","title":"Format"},"description":"pdf (download) | json (assembled pack)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report/bank":{"get":{"tags":["reports"],"summary":"Bank Report","description":"Bank Analyst - Market Brief: mortgage share + trend across town(s).","operationId":"bank_report_api_report_bank_get","parameters":[{"name":"towns","in":"query","required":true,"schema":{"type":"string","description":"Town(s), comma-separated, e.g. 'Pretoria,Sandton'","title":"Towns"},"description":"Town(s), comma-separated, e.g. 'Pretoria,Sandton'"},{"name":"bank","in":"query","required":false,"schema":{"type":"string","description":"Bank to highlight (optional), e.g. 'FNB'","default":"","title":"Bank"},"description":"Bank to highlight (optional), e.g. 'FNB'"},{"name":"from","in":"query","required":false,"schema":{"type":"integer","description":"Start year (optional)","default":0,"title":"From"},"description":"Start year (optional)"},{"name":"to","in":"query","required":false,"schema":{"type":"integer","description":"End year (optional)","default":0,"title":"To"},"description":"End year (optional)"},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"pdf | json","default":"pdf","title":"Format"},"description":"pdf | json"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report/fraud":{"get":{"tags":["reports"],"summary":"Fraud Report","description":"Fraud Investigator - Findings Memo for one property (property-first entry).","operationId":"fraud_report_api_report_fraud_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","description":"Property address, coordinate, or LPI/sgcode","title":"Query"},"description":"Property address, coordinate, or LPI/sgcode"},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"pdf | json","default":"pdf","title":"Format"},"description":"pdf | json"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report/valuer":{"get":{"tags":["reports"],"summary":"Valuer Report","description":"Valuer/Researcher - Comparable Sales Schedule (ranges, never a point value).","operationId":"valuer_report_api_report_valuer_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","description":"Subject property address, coordinate, or LPI","title":"Query"},"description":"Subject property address, coordinate, or LPI"},{"name":"months","in":"query","required":false,"schema":{"type":"integer","description":"Look-back window in months (default 24)","default":24,"title":"Months"},"description":"Look-back window in months (default 24)"},{"name":"radius_km","in":"query","required":false,"schema":{"type":"number","description":"Comparable radius from subject (km)","default":2.0,"title":"Radius Km"},"description":"Comparable radius from subject (km)"},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"pdf | json","default":"pdf","title":"Format"},"description":"pdf | json"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/municipal/verify":{"get":{"tags":["municipal"],"summary":"Municipal Verify","description":"Reconcile a municipal billing account-holder against the deeds-registered\nowner; return a verdict + the MFMA-grounded next action. Decision-support only.","operationId":"municipal_verify_api_municipal_verify_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","description":"Property address, coordinate, or LPI/sgcode","title":"Query"},"description":"Property address, coordinate, or LPI/sgcode"},{"name":"account_holder","in":"query","required":true,"schema":{"type":"string","description":"Billing account-holder name the municipality holds","title":"Account Holder"},"description":"Billing account-holder name the municipality holds"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/area-watch/subscribe":{"post":{"tags":["area-watch"],"summary":"Subscribe","operationId":"subscribe_api_area_watch_subscribe_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/area-watch/subscriptions":{"get":{"tags":["area-watch"],"summary":"My Subs","operationId":"my_subs_api_area_watch_subscriptions_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/area-watch/{sid}/run":{"post":{"tags":["area-watch"],"summary":"Run","operationId":"run_api_area_watch__sid__run_post","parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"string","title":"Sid"}},{"name":"month","in":"query","required":false,"schema":{"type":"string","description":"YYYY-MM; defaults to last complete month","title":"Month"},"description":"YYYY-MM; defaults to last complete month"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/whatsapp/webhook":{"get":{"tags":["whatsapp"],"summary":"Whatsapp Verify","description":"Meta's webhook verification handshake.\n\nMeta GETs this with hub.mode / hub.verify_token / hub.challenge and expects the\nchallenge echoed as plain text. Until this returns 200 the callback URL cannot be\nsaved at all, which is why 0.2.0 could never be connected.\n\nNOTE for whoever deploys it: this path must also be in the EasyAuth\n`excludedPaths` allowlist or EasyAuth answers Meta with a sign-in page and the\nhandshake fails before reaching us. Change that array with `az rest --method put`\nand a FULL config body — the CLI's --set/--excluded-paths flags mangle it, and\nthat is what took the public site down on 2026-10-06.","operationId":"whatsapp_verify_whatsapp_webhook_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}},"post":{"tags":["whatsapp"],"summary":"Whatsapp Cloud Webhook","description":"Signed inbound from Meta → audited lookup → masked reply → outbound send.\n\nReturns 200 to any correctly signed request, whatever happens afterwards. Meta\nretries non-200 responses and disables a webhook that keeps failing, so our own\nerrors must not reach the status code. An UNSIGNED request gets 403: that is the\nauthentication boundary and it fails closed.","operationId":"whatsapp_cloud_webhook_whatsapp_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/whatsapp/health":{"get":{"tags":["whatsapp"],"summary":"Whatsapp Health","description":"Which WhatsApp secrets are present — booleans only, never a value.","operationId":"whatsapp_health_whatsapp_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/whatsapp/compose":{"post":{"tags":["whatsapp"],"summary":"Whatsapp Compose","description":"Compose a reply WITHOUT sending it — the curl-testable path, API-key gated.\n\nKeeps the flat shape so the whole lookup can be exercised before Meta is wired,\nand so a reply can be reviewed before anyone turns outbound on.\n\nInbound WhatsApp message → audited lookup → composed reply.\n\nResolution order:\n    1. text message that matches the 21-char LPI pattern → direct lookup\n    2. location pin → spatial.resolve → owner.resolve_owner\n    3. anything else → help reply\n\nEvery inbound message is audit-logged. The owner.resolve_owner call\nemits its own audit event; both share the same request_id so they\ncan be correlated.","operationId":"whatsapp_compose_whatsapp_compose_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncomingMessage"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutgoingReply"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/test":{"get":{"tags":["test"],"summary":"Test Console","operationId":"test_console_test_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/test/ask":{"post":{"tags":["test"],"summary":"Test Ask","description":"Send a question to the MCP concierge (afrigis_assistant) and return the\nanswer — the real MCP round-trip, so testers see exactly what an AI client\nwould. Uses a pasted key if given, else the internal key.","operationId":"test_ask_test_ask_post","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/test/batch":{"post":{"tags":["test"],"summary":"Test Batch","description":"Batch geocode-test: upload an Excel/CSV with inputs (addresses) in the first\ncolumn (up to 10,000). We geocode each and feed back the hit-rate + guidance.","operationId":"test_batch_test_batch_post","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_test_batch_test_batch_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/test/activity":{"get":{"tags":["test"],"summary":"Test Activity","description":"Who tested what — recent test-console activity (all internal users).","operationId":"test_activity_test_activity_get","parameters":[{"name":"X-MS-CLIENT-PRINCIPAL-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ms-Client-Principal-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthz":{"get":{"tags":["meta"],"summary":"Health","operationId":"health_healthz_get","parameters":[{"name":"deps","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Deps"}},{"name":"corpus","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Corpus"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wardfall":{"get":{"tags":["meta"],"summary":"Wardfall","description":"AfriGIS Wardfall — a Tetris of SA ward boundaries. Public, self-contained,\nruns offline; hosted here so it's playable online too (laptop-independent).","operationId":"wardfall_wardfall_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/wardfall/auth/request":{"post":{"tags":["meta"],"summary":"Wardfall Auth Request","description":"Public email gate: email -> 6-digit code (Fibertime-style).","operationId":"wardfall_auth_request_wardfall_auth_request_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/wardfall/auth/verify":{"post":{"tags":["meta"],"summary":"Wardfall Auth Verify","description":"Verify the code -> a signed 14-day session token (stored client-side).","operationId":"wardfall_auth_verify_wardfall_auth_verify_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/wardfall/score":{"post":{"tags":["meta"],"summary":"Wardfall Score","description":"Record a Wardfall score + return rank & top-20. 'who' = the verified email\n(email-code session), else the EasyAuth identity.","operationId":"wardfall_score_wardfall_score_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/wardfall/leaderboard":{"get":{"tags":["meta"],"summary":"Wardfall Leaderboard","operationId":"wardfall_leaderboard_wardfall_leaderboard_get","parameters":[{"name":"top","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Top"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wardfall/log":{"post":{"tags":["meta"],"summary":"Wardfall Log","description":"Fire-and-forget play telemetry — logged to stdout (Container Apps captures it).","operationId":"wardfall_log_wardfall_log_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AskBody":{"properties":{"question":{"type":"string","title":"Question"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"}},"type":"object","required":["question"],"title":"AskBody"},"AskQ":{"properties":{"question":{"type":"string","title":"Question"}},"type":"object","required":["question"],"title":"AskQ"},"Body_brand_pay_start__brand__pay_start_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_brand_pay_start__brand__pay_start_post"},"Body_brand_voucher_create_admin_brand_voucher_post":{"properties":{"brand":{"type":"string","title":"Brand"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name","default":""},"max_uses":{"type":"integer","title":"Max Uses","default":3},"days":{"type":"integer","title":"Days","default":14}},"type":"object","required":["brand","email"],"title":"Body_brand_voucher_create_admin_brand_voucher_post"},"Body_horizons_admin_post_horizons_admin_post_post":{"properties":{"action":{"type":"string","title":"Action"},"job_id":{"type":"string","title":"Job Id","default":"demo"},"title":{"type":"string","title":"Title","default":""},"requester_first_name":{"type":"string","title":"Requester First Name","default":""},"line":{"type":"string","title":"Line","default":""},"html":{"type":"string","title":"Html","default":""},"url":{"type":"string","title":"Url","default":""},"qr":{"type":"string","title":"Qr","default":""}},"type":"object","required":["action"],"title":"Body_horizons_admin_post_horizons_admin_post_post"},"Body_horizons_story_link_horizons_story_link_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_horizons_story_link_horizons_story_link_post"},"Body_industry_brief_link_for__slug__link_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_industry_brief_link_for__slug__link_post"},"Body_industry_resolve_for_resolve_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_industry_resolve_for_resolve_post"},"Body_pay_combo_initiate_pay_combo_initiate_post":{"properties":{"credits":{"type":"integer","title":"Credits"}},"type":"object","required":["credits"],"title":"Body_pay_combo_initiate_pay_combo_initiate_post"},"Body_reconcile_api_reconcile_post":{"properties":{"rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rows","description":"[{key, owner_name?, transfer_date?}] — key is the 21-char LPI/sgcode. Sectional units are keyed on the parent parcel's 21-char LPI."}},"type":"object","required":["rows"],"title":"Body_reconcile_api_reconcile_post"},"Body_shortlink_create_admin_shortlink_post":{"properties":{"scope":{"type":"string","title":"Scope"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name","default":""},"days":{"type":"integer","title":"Days","default":14},"once":{"type":"string","title":"Once","default":""}},"type":"object","required":["scope","email"],"title":"Body_shortlink_create_admin_shortlink_post"},"Body_test_batch_test_batch_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_test_batch_test_batch_post"},"Body_tv3_link_tv3_link_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_tv3_link_tv3_link_post"},"Body_tv4_link_tv4_link_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_tv4_link_tv4_link_post"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IncomingMessage":{"properties":{"from_number":{"type":"string","title":"From Number","description":"E.164 phone, e.g. +27821234567"},"message_id":{"type":"string","title":"Message Id"},"type":{"type":"string","enum":["text","location"],"title":"Type"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"location":{"anyOf":[{"$ref":"#/components/schemas/Location"},{"type":"null"}]}},"type":"object","required":["from_number","message_id","type"],"title":"IncomingMessage"},"KeyCreate":{"properties":{"customer":{"type":"string","title":"Customer"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","default":[]},"rate_per_min":{"type":"integer","title":"Rate Per Min","default":60},"max_records":{"type":"integer","title":"Max Records","default":10000},"tier":{"type":"string","title":"Tier","default":"external"},"credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits"}},"type":"object","required":["customer"],"title":"KeyCreate"},"KeyTest":{"properties":{"key":{"type":"string","title":"Key"}},"type":"object","required":["key"],"title":"KeyTest"},"KeyTopup":{"properties":{"credits":{"type":"integer","title":"Credits"}},"type":"object","required":["credits"],"title":"KeyTopup"},"Location":{"properties":{"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"}},"type":"object","required":["latitude","longitude"],"title":"Location"},"OutgoingReply":{"properties":{"to_number":{"type":"string","title":"To Number"},"body":{"type":"string","title":"Body"},"request_id":{"type":"string","title":"Request Id"},"resolved_sgcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Sgcode"},"resolution_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Source"}},"type":"object","required":["to_number","body","request_id"],"title":"OutgoingReply"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"tags":[{"name":"lookup","description":"Property / company / fraud / banking data + geocoding. Requires `X-API-Key`."},{"name":"meta","description":"Health check + running version."},{"name":"web","description":"Server-rendered UI (AfriGIS EasyAuth sign-in)."},{"name":"web-explore","description":"Customer Explorer via bot-issued magic-link."},{"name":"admin","description":"Magnus-only API-key console."},{"name":"test","description":"Internal test console (any @afrigis.co.za user)."}]}