{"openapi":"3.1.0","info":{"title":"Agimo API","version":"0.1.0"},"paths":{"/api/listings":{"get":{"summary":"Listings","operationId":"listings_api_listings_get","parameters":[{"name":"listing_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["buy","rent"],"type":"string"},{"type":"null"}],"title":"Listing Type"}},{"name":"property_types","in":"query","required":false,"schema":{"type":"array","items":{"enum":["house","apartment","room","garage","office","land","commercial","industrial","hospitality","building"],"type":"string"},"default":[],"title":"Property Types"}},{"name":"min_bedrooms","in":"query","required":false,"schema":{"type":"number","minimum":0,"default":0,"title":"Min Bedrooms"}},{"name":"max_bedrooms","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"description":"most bedrooms accepted: a person who wants one or two, not five","title":"Max Bedrooms"},"description":"most bedrooms accepted: a person who wants one or two, not five"},{"name":"min_sqm","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"minimum habitable area, m2","default":0,"title":"Min Sqm"},"description":"minimum habitable area, m2"},{"name":"energy_label","in":"query","required":false,"schema":{"anyOf":[{"enum":["A++","A+","A","B","C","D","E","F","G"],"type":"string"},{"type":"null"}],"description":"worst EPC / PEB label accepted; homes with no label are left out","title":"Energy Label"},"description":"worst EPC / PEB label accepted; homes with no label are left out"},{"name":"features","in":"query","required":false,"schema":{"type":"array","items":{"enum":["pool","sauna","jacuzzi","garden","terrace","garage","elevator","solar","heat_pump","air_con","fireplace","view","sea","ev_charger","pets","furnished","new_build"],"type":"string"},"description":"every one the ad says the home has, such as pool or sauna","default":[],"title":"Features"},"description":"every one the ad says the home has, such as pool or sauna"},{"name":"exclude_under_option","in":"query","required":false,"schema":{"type":"boolean","description":"leave out the homes under option: a buyer is already signing","default":false,"title":"Exclude Under Option"},"description":"leave out the homes under option: a buyer is already signing"},{"name":"price_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Price Min"}},{"name":"price_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Price Max"}},{"name":"areas","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"deelgemeente codes like \"24104A\"; a bare municipality NIS selects all of it","default":[],"title":"Areas"},"description":"deelgemeente codes like \"24104A\"; a bare municipality NIS selects all of it"},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"null"}],"description":"west,south,east,north; ignored when areas are set","title":"Bbox"},"description":"west,south,east,north; ignored when areas are set"},{"name":"sources","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"agency domains","default":[],"title":"Sources"},"description":"agency domains"},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","price_asc","price_desc","surface_desc"],"type":"string","default":"newest","title":"Sort"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":24,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Listings Api Listings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp":{"post":{"summary":"Mcp Endpoint","description":"The MCP server: one JSON-RPC message in, its reply out (202 and no body for a notification).","operationId":"mcp_endpoint_api_mcp_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Message"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/map":{"get":{"summary":"Map ","operationId":"map__api_map_get","parameters":[{"name":"listing_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["buy","rent"],"type":"string"},{"type":"null"}],"title":"Listing Type"}},{"name":"property_types","in":"query","required":false,"schema":{"type":"array","items":{"enum":["house","apartment","room","garage","office","land","commercial","industrial","hospitality","building"],"type":"string"},"default":[],"title":"Property Types"}},{"name":"min_bedrooms","in":"query","required":false,"schema":{"type":"number","minimum":0,"default":0,"title":"Min Bedrooms"}},{"name":"max_bedrooms","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"description":"most bedrooms accepted: a person who wants one or two, not five","title":"Max Bedrooms"},"description":"most bedrooms accepted: a person who wants one or two, not five"},{"name":"min_sqm","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"minimum habitable area, m2","default":0,"title":"Min Sqm"},"description":"minimum habitable area, m2"},{"name":"energy_label","in":"query","required":false,"schema":{"anyOf":[{"enum":["A++","A+","A","B","C","D","E","F","G"],"type":"string"},{"type":"null"}],"description":"worst EPC / PEB label accepted; homes with no label are left out","title":"Energy Label"},"description":"worst EPC / PEB label accepted; homes with no label are left out"},{"name":"features","in":"query","required":false,"schema":{"type":"array","items":{"enum":["pool","sauna","jacuzzi","garden","terrace","garage","elevator","solar","heat_pump","air_con","fireplace","view","sea","ev_charger","pets","furnished","new_build"],"type":"string"},"description":"every one the ad says the home has, such as pool or sauna","default":[],"title":"Features"},"description":"every one the ad says the home has, such as pool or sauna"},{"name":"exclude_under_option","in":"query","required":false,"schema":{"type":"boolean","description":"leave out the homes under option: a buyer is already signing","default":false,"title":"Exclude Under Option"},"description":"leave out the homes under option: a buyer is already signing"},{"name":"price_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Price Min"}},{"name":"price_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Price Max"}},{"name":"areas","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"deelgemeente codes like \"24104A\"; a bare municipality NIS selects all of it","default":[],"title":"Areas"},"description":"deelgemeente codes like \"24104A\"; a bare municipality NIS selects all of it"},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"null"}],"description":"west,south,east,north; ignored when areas are set","title":"Bbox"},"description":"west,south,east,north; ignored when areas are set"},{"name":"sources","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"agency domains","default":[],"title":"Sources"},"description":"agency domains"},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","price_asc","price_desc","surface_desc"],"type":"string","default":"newest","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Map  Api Map Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/listings/{listing_id}":{"get":{"summary":"Listing","operationId":"listing_api_listings__listing_id__get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Listing Api Listings  Listing Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/listings/{listing_id}/preview":{"get":{"summary":"Listing Preview","description":"What WhatsApp and other link previews show of a shared home (`notify.preview`), put in the page's og tags by\n`frontend/functions/l/[id].js`. A home gone from the site is a 404: the page keeps the site's generic preview.","operationId":"listing_preview_api_listings__listing_id__preview_get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["nl","fr","en"],"type":"string","default":"nl","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Listing Preview Api Listings  Listing Id  Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/listings/{listing_id}/seen":{"post":{"summary":"Listing Seen","description":"This person opened the home, or went on to its agency's page: once a day each, without cookies, as a visit\n(`db.ListingView`). The id is no secret: a forged one is noise, not harm.","operationId":"listing_seen_api_listings__listing_id__seen_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Seen"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Listing Seen Api Listings  Listing Id  Seen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/areas/seen":{"post":{"summary":"Areas Seen","description":"This person looks for homes in these places: once a day per municipality, without cookies, as an opened home\n(`db.AreaView`). It says where people search now, for the dashboard's map.","operationId":"areas_seen_api_areas_seen_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeenAreas"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Areas Seen Api Areas Seen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/listings/{listing_id}/rank":{"get":{"summary":"Listing Rank","operationId":"listing_rank_api_listings__listing_id__rank_get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}},{"name":"listing_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["buy","rent"],"type":"string"},{"type":"null"}],"title":"Listing Type"}},{"name":"property_types","in":"query","required":false,"schema":{"type":"array","items":{"enum":["house","apartment","room","garage","office","land","commercial","industrial","hospitality","building"],"type":"string"},"default":[],"title":"Property Types"}},{"name":"min_bedrooms","in":"query","required":false,"schema":{"type":"number","minimum":0,"default":0,"title":"Min Bedrooms"}},{"name":"max_bedrooms","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"description":"most bedrooms accepted: a person who wants one or two, not five","title":"Max Bedrooms"},"description":"most bedrooms accepted: a person who wants one or two, not five"},{"name":"min_sqm","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"minimum habitable area, m2","default":0,"title":"Min Sqm"},"description":"minimum habitable area, m2"},{"name":"energy_label","in":"query","required":false,"schema":{"anyOf":[{"enum":["A++","A+","A","B","C","D","E","F","G"],"type":"string"},{"type":"null"}],"description":"worst EPC / PEB label accepted; homes with no label are left out","title":"Energy Label"},"description":"worst EPC / PEB label accepted; homes with no label are left out"},{"name":"features","in":"query","required":false,"schema":{"type":"array","items":{"enum":["pool","sauna","jacuzzi","garden","terrace","garage","elevator","solar","heat_pump","air_con","fireplace","view","sea","ev_charger","pets","furnished","new_build"],"type":"string"},"description":"every one the ad says the home has, such as pool or sauna","default":[],"title":"Features"},"description":"every one the ad says the home has, such as pool or sauna"},{"name":"exclude_under_option","in":"query","required":false,"schema":{"type":"boolean","description":"leave out the homes under option: a buyer is already signing","default":false,"title":"Exclude Under Option"},"description":"leave out the homes under option: a buyer is already signing"},{"name":"price_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Price Min"}},{"name":"price_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Price Max"}},{"name":"areas","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"deelgemeente codes like \"24104A\"; a bare municipality NIS selects all of it","default":[],"title":"Areas"},"description":"deelgemeente codes like \"24104A\"; a bare municipality NIS selects all of it"},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"null"}],"description":"west,south,east,north; ignored when areas are set","title":"Bbox"},"description":"west,south,east,north; ignored when areas are set"},{"name":"sources","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"agency domains","default":[],"title":"Sources"},"description":"agency domains"},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","price_asc","price_desc","surface_desc"],"type":"string","default":"newest","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Listing Rank Api Listings  Listing Id  Rank Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/options":{"get":{"summary":"Options","operationId":"options_api_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Options Api Options Get"}}}}}}},"/api/totals":{"get":{"summary":"Totals","description":"The chat intro's numbers, always production's: dev's database also holds every candidate's homes, checked or not,\nso its own count is one no visitor can get (142,285 on dev against 130,645 live, 2026-11-15).","operationId":"totals_api_totals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Totals Api Totals Get"}}}}}}},"/api/agencies/new":{"get":{"summary":"New Agencies","description":"The agencies dev.agimo.be/new keeps the search to (`coverage.waiting`): `{\"sources\": [\"alterimmo.be\", ...]}`.","operationId":"new_agencies_api_agencies_new_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response New Agencies Api Agencies New Get"}}}}}}},"/api/areas":{"get":{"summary":"Areas","operationId":"areas_api_areas_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Areas Api Areas Get"}}}}}}},"/api/areas/outlines":{"get":{"summary":"Area Outlines","description":"Every municipality's shape, simplified, by NIS code: the dashboard's map draws them (`places.outlines`).","operationId":"area_outlines_api_areas_outlines_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Area Outlines Api Areas Outlines Get"}}}}}}},"/api/areas/polygons":{"get":{"summary":"Polygons","operationId":"polygons_api_areas_polygons_get","parameters":[{"name":"codes","in":"query","required":true,"schema":{"type":"string","title":"Codes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Polygons Api Areas Polygons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/areas/at":{"get":{"summary":"Area At","description":"The deelgemeente under a point: a long-press on the map selects it.","operationId":"area_at_api_areas_at_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","title":"Lon"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Area At Api Areas At Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat":{"get":{"summary":"Chat History","operationId":"chat_history_api_chat_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Chat History Api Chat Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Save Turn","description":"Keep a finished turn, and fold it into the person's profile after the response (`learn`). Only for signed-in\nusers; a retry of the same turn is ignored.","operationId":"save_turn_api_chat_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__api__Turn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Turn Api Chat Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Clear Chat","description":"Start the signed-in user's conversation afresh: the chat no longer shows the turns so far. They stay in the\ndatabase, so we can read what people asked (`chat_history` shows only turns after `chat_cleared_at`).","operationId":"clear_chat_api_chat_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Clear Chat Api Chat Delete"}}}}}}},"/api/chat/email":{"post":{"summary":"Email Chat","description":"Send the signed-in user the email the chat wrote for them, when they ask for one (\"envoyez-moi tout cela par\nmail\", asked three times in one chat, 2026-11-08). Only to their own address, so it is theirs to ask for.","operationId":"email_chat_api_chat_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatEmail"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Email Chat Api Chat Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alerts":{"get":{"summary":"My Alerts","description":"The signed-in person's alerts: the address they go to, and every search with when its last mail went (`/email` shows it).\nThe same person on any device, since the cookie is the identity.","operationId":"my_alerts_api_alerts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response My Alerts Api Alerts Get"}}}}}},"post":{"summary":"Create Alert","description":"Start emailing this customer about new homes in this search. Every email has the unsubscribe link. The first\nemail comes at the next round with the homes of the last two days, so the person sees within minutes that the\naddress works and what an alert looks like.\n\nSigned in, the account's address is mailed and the alert is confirmed. Signed out, the posted address is mailed\nonce; the link in that mail (`auth_token`) confirms it, and only then do more mails follow. That link signs in this\nbrowser only, the one that typed the address (`auth.remember_typed`). Nobody signs in to start: an Instagram or Facebook in-app browser has no Google account and no mail app a tap away.","operationId":"create_alert_api_alerts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewAlert"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Alert Api Alerts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alerts/{token}":{"put":{"summary":"Change Alert","description":"Change one of the signed-in person's searches in place (\"Aanpassen\" on the alerts page). It keeps its token, so\nthe links in its earlier mails still work, and starts over like a new one: the first mail with the homes of the last\ntwo days. Before this a person could only add a search: Nathalie, meaning to change hers, had two mailing their own\nhomes, got homes \"not in my question\" and deleted both (2026-11-12).","operationId":"change_alert_api_alerts__token__put","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewAlert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Alert Api Alerts  Token  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Alert","description":"Delete one of the signed-in person's alerts. Nothing left is fine too; someone else's is not yours to delete.","operationId":"delete_alert_api_alerts__token__delete","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Alert Api Alerts  Token  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project":{"get":{"summary":"My Project","description":"The signed-in person's housing project, `{\"project\": None}` before they kept one.","operationId":"my_project_api_project_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response My Project Api Project Get"}}}}}},"put":{"summary":"Keep Project","description":"Keep the signed-in person's housing project, whole: the app sends it on every change.\n\nSigned out, the browser that just typed an address for an alert keeps only `home` on that account: \"I'm selling\"\nis worth knowing (a seller to ask later, not yet a lead). Typing proves nothing, so it may not write the rest or\nread any of it back.","operationId":"keep_project_api_project_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Keep Project Api Project Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/address":{"get":{"summary":"Address Suggestions","description":"Places the typed address may mean, for the valuation's dropdown.","operationId":"address_suggestions_api_address_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":200,"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Address Suggestions Api Address Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/valuation":{"get":{"summary":"Valuation ","description":"The asking-price range of a home like this one, with the nearest homes it comes from; None when too few are near.","operationId":"valuation__api_valuation_get","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":200,"description":"street, number and town, such as \"Kerkstraat 12, Gent\"","title":"Address"},"description":"street, number and town, such as \"Kerkstraat 12, Gent\""},{"name":"property_type","in":"query","required":true,"schema":{"enum":["house","apartment"],"type":"string","title":"Property Type"}},{"name":"sqm","in":"query","required":true,"schema":{"type":"number","maximum":1000,"minimum":20,"description":"habitable area, m2: what the model has seen","title":"Sqm"},"description":"habitable area, m2: what the model has seen"},{"name":"plot","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":100000,"minimum":20},{"type":"null"}],"description":"plot area, m2","title":"Plot"},"description":"plot area, m2"},{"name":"bedrooms","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":20,"minimum":0},{"type":"null"}],"title":"Bedrooms"}},{"name":"energy_label","in":"query","required":false,"schema":{"anyOf":[{"enum":["A++","A+","A","B","C","D","E","F","G"],"type":"string"},{"type":"null"}],"title":"Energy Label"}},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":51.6,"minimum":49.4},{"type":"null"}],"description":"where the owner picked it from the suggestions; the address is then not searched again","title":"Lat"},"description":"where the owner picked it from the suggestions; the address is then not searched again"},{"name":"lon","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":6.5,"minimum":2.4},{"type":"null"}],"title":"Lon"}},{"name":"street_level","in":"query","required":false,"schema":{"type":"boolean","description":"whether the picked place is a street address and not a town","default":true,"title":"Street Level"},"description":"whether the picked place is a street address and not a town"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Valuation  Api Valuation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/valuation/lead":{"post":{"summary":"Valuation Lead","description":"An owner asks for a real valuation. The details are kept; agencies take it on agimo.be/agencies (`leads.py`).\nFrom the alert page it may come with no home at all, a yes to \"an agency emails you\"; the address may follow.\n\nSigned in, the account's address is the owner's, and the account keeps the phone number given here so no other\nrequest asks for it again. Signed out, the posted address is used, and it becomes a customer too, so the partner\nwho sent them owns them.","operationId":"valuation_lead_api_valuation_lead_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLead"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Valuation Lead Api Valuation Lead Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mortgage/lead":{"post":{"summary":"Mortgage Lead","description":"A buyer asks a partner credit broker for help with a loan: they said yes to a plain line saying a broker contacts\nthem and receives their email and numbers (the chat's offer, the mortgage box, an alert email's link); a phone number may follow.\n\nLike a valuation request: signed in, the account's address is theirs and it keeps the phone number; signed out, the\nposted address becomes a customer. Asking again within a day updates that day's request instead of adding one.\n\nSigned out, the address is only typed: the request is kept unconfirmed, and no mail goes by itself. The first mail\nthey get is the one we write by hand with what is left to ask (`leads.write`): one mail, from a person, not a\nconfirm link and then the same question again (Jerome, 2026-11-16: \"the confirmation email should be removed. So\nit's only us that ask for the first time\"). Their answer to it is what proves the address (`leads.row`), or a link\nof an alert mail they open (`auth_token`); until then no broker sees it.","operationId":"mortgage_lead_api_mortgage_lead_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewMortgageLead"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mortgage Lead Api Mortgage Lead Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Cancel Mortgage Lead","description":"The buyer takes their loan request back (the cross beside it): one tap sent it, so one tap undoes it. The row\nstays, with `cancelled_at`, so we see how many do; no broker sees it any more (`leads.loan_page`), and the admins are told.","operationId":"cancel_mortgage_lead_api_mortgage_lead_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanUndo"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Cancel Mortgage Lead Api Mortgage Lead Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push":{"get":{"summary":"Push Key","operationId":"push_key_api_push_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Push Key Api Push Get"}}}}}},"put":{"summary":"Push On","description":"This phone gets the signed-in person's alerts as notifications. A phone that was someone else's becomes theirs.","operationId":"push_on_api_push_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Phone"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Push On Api Push Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Push Off","description":"This phone stops. Only the person it belongs to can stop it; nothing there is fine too.","operationId":"push_off_api_push_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Phone"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Push Off Api Push Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/favorites/{listing_id}":{"put":{"summary":"Keep Home","description":"Keep a home at `saved`, or move a kept one to another stage. With no stage a kept home stays where it is.","operationId":"keep_home_api_favorites__listing_id__put","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stage"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Keep Home Api Favorites  Listing Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Let Go","description":"Stop keeping a home. Nothing left is fine too.","operationId":"let_go_api_favorites__listing_id__delete","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Let Go Api Favorites  Listing Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/favorites":{"get":{"summary":"My Homes","description":"The signed-in person's kept homes, newest listing first: the order never changes as stages do, so a row stays under the finger. A home no longer on show (sold, delisted) is still\nreturned with `gone` true, so the person sees what happened to it instead of a home vanishing.","operationId":"my_homes_api_favorites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response My Homes Api Favorites Get"}}}}}}},"/api/homes":{"get":{"summary":"Some Homes","description":"These homes, in this order: the ones an alert email or push sent (`notify.homes_url`). `gone` as in `/api/favorites`.\n\nGET /api/homes?ids=812,977 → {\"homes\": [{\"gone\": false, \"listing\": {...}}, ...]}","operationId":"some_homes_api_homes_get","parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","title":"Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Some Homes Api Homes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alerts/{token}/email":{"get":{"summary":"Last Alert Email","description":"The last email of one of the signed-in person's searches, as it looked in their inbox.","operationId":"last_alert_email_api_alerts__token__email_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"}}}}}}},"/api/alerts/{token}/send":{"post":{"summary":"Send Alert Now","description":"Mail one of the signed-in person's searches now, with its homes of the last two days: `{\"sent\": 3}`, 0 when none fit.\nOnce per `notify.TRY_AGAIN`, so a button pressed twice is one mail.","operationId":"send_alert_now_api_alerts__token__send_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Alert Now Api Alerts  Token  Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mails/{mail_id}/open.gif":{"get":{"summary":"Mail Opened","description":"A mail's 1-pixel image was loaded: it was opened, or its mail app loaded the images by itself (Apple Mail does).\nThe first time counts. The id is no secret: a forged open is noise, not harm.","operationId":"mail_opened_api_mails__mail_id__open_gif_get","parameters":[{"name":"mail_id","in":"path","required":true,"schema":{"type":"integer","title":"Mail Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mails/{mail_id}/clicked":{"post":{"summary":"Mail Clicked","description":"A link in this mail was opened: the page posts it once on arrival (`queries.countMailClick`). The first time counts;\na click is an open too, even when the mail app showed no images.","operationId":"mail_clicked_api_mails__mail_id__clicked_post","parameters":[{"name":"mail_id","in":"path","required":true,"schema":{"type":"integer","title":"Mail Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mail Clicked Api Mails  Mail Id  Clicked Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alerts/{alert_id}/clicked":{"post":{"summary":"Alert Clicked","description":"A home in this alert's email was opened: the page posts it once on arrival (`queries.countMailClick`). Counted without\ncookies, so it sees every visit from the mails, not only those who accept PostHog. The id is no secret: a forged click is noise, not harm.","operationId":"alert_clicked_api_alerts__alert_id__clicked_post","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Alert Clicked Api Alerts  Alert Id  Clicked Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alerts/weekly":{"get":{"summary":"Alerts Weekly","description":"How many homes an alert on this search would have sent last week, and how often it is mailed unless the person chooses.","operationId":"alerts_weekly_api_alerts_weekly_get","parameters":[{"name":"listing_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["buy","rent"],"type":"string"},{"type":"null"}],"title":"Listing Type"}},{"name":"property_types","in":"query","required":false,"schema":{"type":"array","items":{"enum":["house","apartment","room","garage","office","land","commercial","industrial","hospitality","building"],"type":"string"},"default":[],"title":"Property Types"}},{"name":"min_bedrooms","in":"query","required":false,"schema":{"type":"number","minimum":0,"default":0,"title":"Min Bedrooms"}},{"name":"max_bedrooms","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"description":"most bedrooms accepted: a person who wants one or two, not five","title":"Max Bedrooms"},"description":"most bedrooms accepted: a person who wants one or two, not five"},{"name":"min_sqm","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"minimum habitable area, m2","default":0,"title":"Min Sqm"},"description":"minimum habitable area, m2"},{"name":"energy_label","in":"query","required":false,"schema":{"anyOf":[{"enum":["A++","A+","A","B","C","D","E","F","G"],"type":"string"},{"type":"null"}],"description":"worst EPC / PEB label accepted; homes with no label are left out","title":"Energy Label"},"description":"worst EPC / PEB label accepted; homes with no label are left out"},{"name":"features","in":"query","required":false,"schema":{"type":"array","items":{"enum":["pool","sauna","jacuzzi","garden","terrace","garage","elevator","solar","heat_pump","air_con","fireplace","view","sea","ev_charger","pets","furnished","new_build"],"type":"string"},"description":"every one the ad says the home has, such as pool or sauna","default":[],"title":"Features"},"description":"every one the ad says the home has, such as pool or sauna"},{"name":"exclude_under_option","in":"query","required":false,"schema":{"type":"boolean","description":"leave out the homes under option: a buyer is already signing","default":false,"title":"Exclude Under Option"},"description":"leave out the homes under option: a buyer is already signing"},{"name":"price_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Price Min"}},{"name":"price_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Price Max"}},{"name":"areas","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"deelgemeente codes like \"24104A\"; a bare municipality NIS selects all of it","default":[],"title":"Areas"},"description":"deelgemeente codes like \"24104A\"; a bare municipality NIS selects all of it"},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"null"}],"description":"west,south,east,north; ignored when areas are set","title":"Bbox"},"description":"west,south,east,north; ignored when areas are set"},{"name":"sources","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"agency domains","default":[],"title":"Sources"},"description":"agency domains"},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","price_asc","price_desc","surface_desc"],"type":"string","default":"newest","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Alerts Weekly Api Alerts Weekly Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alerts/reply":{"post":{"summary":"Alert Reply","description":"A reply to one of our mails, the whole message as received, posted by Cloudflare's email Worker with the shared\n`ALERT_REPLY_KEY` as a bearer token (`infra/cloudflare/reply-worker.js`), which Caddy keeps out of its logs.\nKept; an alert's is answered with a link to the chat, a loan request's is left to us (`replies.answer`).","operationId":"alert_reply_api_alerts_reply_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Alert Reply Api Alerts Reply Post"}}}}}}},"/api/resend/events":{"post":{"summary":"Resend Event","description":"Resend's webhook, signed with `RESEND_WEBHOOK_SECRET`: an address that bounced or marked our mail as spam is\nkept (`Bounce`), so the daily confirmation leaves its alerts alone (`notify.confirm_delivered`).","operationId":"resend_event_api_resend_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Resend Event Api Resend Events Post"}}}}}}},"/api/alerts/{token}/unsubscribe":{"post":{"summary":"Unsubscribe","description":"The link in every email. GET shows one button, because mail scanners fetch every link before the person reads\nthe email; POST (the button, or the mail client's one-click unsubscribe) deletes the alert and one line says so.","operationId":"unsubscribe_api_alerts__token__unsubscribe_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Unsubscribe","description":"The link in every email. GET shows one button, because mail scanners fetch every link before the person reads\nthe email; POST (the button, or the mail client's one-click unsubscribe) deletes the alert and one line says so.","operationId":"unsubscribe_api_alerts__token__unsubscribe_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent":{"post":{"summary":"Agent Answer","operationId":"agent_answer_api_agent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__agent__Turn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/fold":{"post":{"summary":"Fold Chat","description":"Fold the chat's oldest turns into its memory (`agent.fold`). Signed in, the memory is kept on the person\n(`users.memory`), so it comes back with the history and is their profile; signed out, only the browser holds it.","operationId":"fold_chat_api_chat_fold_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fold"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Fold Chat Api Chat Fold Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/quick":{"post":{"summary":"Agent Quick","operationId":"agent_quick_api_agent_quick_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quick"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Agent Quick Api Agent Quick Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/config":{"get":{"summary":"Auth Config","operationId":"auth_config_api_auth_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Config Api Auth Config Get"}}}}}}},"/api/auth/me":{"get":{"summary":"Auth Me","description":"Who the visitor is. Every app load asks once, so this is also where a signed-in person's cookie is renewed (they stay\nsigned in while they come back) and where a person is counted for the day, with where they came from and the page they\nlanded on: `/api/auth/me?from=google&page=/meldingen`.","operationId":"auth_me_api_auth_me_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Auth Me Api Auth Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google":{"post":{"summary":"Auth Google","operationId":"auth_google_api_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Google Api Auth Google Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partner":{"get":{"summary":"Partner Page","description":"The signed-in partner's own page. Only a partner has one: a partner sees nobody else's.","operationId":"partner_page_api_partner_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Partner Page Api Partner Get"}}}}}}},"/api/auth/logout":{"post":{"summary":"Auth Logout","operationId":"auth_logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Logout Api Auth Logout Post"}}}}}}},"/api/auth/email":{"post":{"summary":"Auth Email","description":"Send a sign-in code to this address.","operationId":"auth_email_api_auth_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCode"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Email Api Auth Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/email/verify":{"post":{"summary":"Auth Email Verify","description":"The right code signs that address in.","operationId":"auth_email_verify_api_auth_email_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCheck"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Email Verify Api Auth Email Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/token":{"post":{"summary":"Auth Token","description":"The link in an alert email (or in the mail that confirmed a loan request, sent until 16 Nov 2026): the inbox proved it, so everything that\naddress still had to confirm is confirmed. It signs in only the browser that typed the address (`auth.typed`):\na forwarded mail confirms but makes nobody its owner, and another browser signs in with Google or a code\n(Jerome, 2026-11-12: \"if they login into another browser, they wouldn't expect to be logged in anyways\").","operationId":"auth_token_api_auth_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Token Api Auth Token Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agency":{"get":{"summary":"Agency Page","description":"The signed-in agency's page. Only an agency's account has one: it sees its own leads, never another agency's.","operationId":"agency_page_api_agency_get","parameters":[{"name":"locale","in":"query","required":false,"schema":{"enum":["en","fr","nl"],"type":"string","default":"nl","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agency Page Api Agency Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agency/leads/{lead_id}":{"post":{"summary":"Take Lead","description":"The signed-in agency takes this lead and gets the owner's contact; a lead another agency took first is refused (409).","operationId":"take_lead_api_agency_leads__lead_id__post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Take Lead Api Agency Leads  Lead Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/broker":{"get":{"summary":"Broker Page","description":"The signed-in credit broker's page: every open loan request, without who asked, and the ones it took.","operationId":"broker_page_api_broker_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Broker Page Api Broker Get"}}}}}}},"/api/broker/loans/{loan_id}":{"post":{"summary":"Take Loan","description":"The signed-in broker takes this request and gets the buyer's contact; one another broker took first is refused (409).","operationId":"take_loan_api_broker_loans__loan_id__post","parameters":[{"name":"loan_id","in":"path","required":true,"schema":{"type":"integer","title":"Loan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Take Loan Api Broker Loans  Loan Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/broker/loans/{loan_id}/quality":{"post":{"summary":"Rate Loan","description":"The broker tells us how good a buyer they took was: what the partnership learns from before any price.","operationId":"rate_loan_api_broker_loans__loan_id__quality_post","parameters":[{"name":"loan_id","in":"path","required":true,"schema":{"type":"integer","title":"Loan Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanQuality"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rate Loan Api Broker Loans  Loan Id  Quality Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/metrics/today":{"get":{"summary":"Metrics Today","description":"Today so far (counts and costs), for dev's dashboard. Counts only, the kind dev already reads in the metrics table, never a person.","operationId":"metrics_today_api_metrics_today_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Metrics Today Api Metrics Today Get"}}}}}}},"/api/metrics/places":{"get":{"summary":"Metrics Places","description":"The same counts for dev's dashboard: how many per municipality, never a person.","operationId":"metrics_places_api_metrics_places_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":730,"minimum":0,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Metrics Places Api Metrics Places Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/metrics/ads":{"get":{"summary":"Metrics Ads","description":"Every Meta ad's numbers and signups, for dev's dashboard: counts only, never a person.","operationId":"metrics_ads_api_metrics_ads_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Metrics Ads Api Metrics Ads Get"}}}}}}},"/api/admin/coverage":{"get":{"summary":"Coverage Table","description":"Every agency's scraper quality, each with its candidate scraper's score from the sandbox.","operationId":"coverage_table_api_admin_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Coverage Table Api Admin Coverage Get"}}}}}}},"/api/admin/agencies/{source}":{"get":{"summary":"Agency","description":"One agency's candidate scraper as a diff from production, plus the agent's trace.","operationId":"agency_api_admin_agencies__source__get","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agency Api Admin Agencies  Source  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/agencies/{source}/candidate":{"delete":{"summary":"Drop Candidate","description":"Forget the agency's candidate scraper and its trace (the decision after a compare). The sandbox listings stay.","operationId":"drop_candidate_api_admin_agencies__source__candidate_delete","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Drop Candidate Api Admin Agencies  Source  Candidate Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/agencies/{source}/issues/{issue}":{"patch":{"summary":"Annotate Issue","description":"Give one of the agency's issues a verdict, and why, signed by the admin. Returns the verdict.","operationId":"annotate_issue_api_admin_agencies__source__issues__issue__patch","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}},{"name":"issue","in":"path","required":true,"schema":{"type":"string","title":"Issue"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Annotation"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Annotate Issue Api Admin Agencies  Source  Issues  Issue  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/scrape":{"post":{"summary":"Scrape All","description":"Make every agency due for a scrape now; the workers pick them up.","operationId":"scrape_all_api_admin_scrape_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Scrape All Api Admin Scrape Post"}}}}}}},"/api/admin/server":{"get":{"summary":"Server","operationId":"server_api_admin_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Server Api Admin Server Get"}}}}}}},"/api/admin/log":{"get":{"summary":"Log","operationId":"log_api_admin_log_get","parameters":[{"name":"unit","in":"query","required":true,"schema":{"type":"string","title":"Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Log Api Admin Log Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tables":{"get":{"summary":"Tables","operationId":"tables_api_admin_tables_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Tables Api Admin Tables Get"}}}}}}},"/api/admin/partners":{"get":{"summary":"Every Partner","operationId":"every_partner_api_admin_partners_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Every Partner Api Admin Partners Get"}}}}}},"post":{"summary":"New Partner","description":"Make the account with this address a partner (made now if there is none): it opens agimo.be/partners at its next sign-in.","operationId":"new_partner_api_admin_partners_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewPartner"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response New Partner Api Admin Partners Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/partners/{code}":{"get":{"summary":"One Partner","description":"One partner's page as they see it, with each customer's whole address and id.","operationId":"one_partner_api_admin_partners__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response One Partner Api Admin Partners  Code  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/brokers":{"get":{"summary":"Every Broker","operationId":"every_broker_api_admin_brokers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Every Broker Api Admin Brokers Get"}}}}}},"post":{"summary":"New Broker","description":"Make the account with this address a credit broker's (made now if there is none): it opens agimo.be/brokers at its next sign-in.","operationId":"new_broker_api_admin_brokers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBroker"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response New Broker Api Admin Brokers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/brokers/{user_id}":{"get":{"summary":"One Broker","description":"One broker's page exactly as they see it.","operationId":"one_broker_api_admin_brokers__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response One Broker Api Admin Brokers  User Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads":{"get":{"summary":"Every Lead","operationId":"every_lead_api_admin_leads_get","parameters":[{"name":"locale","in":"query","required":false,"schema":{"enum":["en","fr","nl"],"type":"string","default":"nl","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Every Lead Api Admin Leads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/inbox":{"get":{"summary":"Lead Inbox","description":"Every seller and mortgage request with the contact, newest first: what we follow up by hand (`leads.inbox`).","operationId":"lead_inbox_api_admin_leads_inbox_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Lead Inbox Api Admin Leads Inbox Get"}}}}}}},"/api/admin/signups":{"get":{"summary":"Newest Signups","description":"The newest accounts, newest first, at most 100, to follow who signs up and from where (the growth page's Signups),\nor those whose address, name, id, link or referrer holds `q` (the people tab's search):\nwhen, the address, the link that first brought them (source as the growth numbers name it, campaign, ad), who they\nsay sent them, their alert, and whether they own a home they sell (their project's `home`: \"sell\", \"keep\", \"none\").\nThis deployment's own people: production's on agimo.be, dev's test accounts on dev.\n\n    [{\"id\": 263, \"made\": \"2026-11-11T14:02\", \"email\": \"…\", \"source\": \"meta\", \"campaign\": \"launch\", \"ad\": \"Agimo nl-E\",\n      \"referred_by\": None, \"alert\": \"confirmed\", \"locale\": \"nl\", \"home\": \"sell\"}]","operationId":"newest_signups_api_admin_signups_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Newest Signups Api Admin Signups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/people/{user_id}":{"get":{"summary":"One Person","description":"Everything we keep about one account, to debug what they saw and did (`people.profile`).","operationId":"one_person_api_admin_people__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response One Person Api Admin People  User Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/removals":{"get":{"summary":"Newest Removals","description":"The alerts stopped last, newest first, at most 100, to see who leaves and catch a mail that broke something (the\ngrowth page's Alerts removed): when, the address, how (the link in a mail or the cross in the app), how many days the\nalert lived, and its search. This deployment's own people, like the signups.\n\n    [{\"id\": 4, \"removed\": \"2026-11-13T09:12\", \"user\": 88, \"email\": \"…\", \"how\": \"link\", \"days\": 2, \"search\": \"Gent · Huren · tot €1.200\"}]","operationId":"newest_removals_api_admin_removals_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Newest Removals Api Admin Removals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/reach":{"get":{"summary":"Agency Reach","description":"Every agency whose homes production's visitors opened in the last `days`, the most opened first (`leads.seen`).","operationId":"agency_reach_api_admin_reach_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Agency Reach Api Admin Reach Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/agency/{user_id}":{"get":{"summary":"One Agency","description":"One agency's page as it sees it.","operationId":"one_agency_api_admin_leads_agency__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"locale","in":"query","required":false,"schema":{"enum":["en","fr","nl"],"type":"string","default":"nl","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response One Agency Api Admin Leads Agency  User Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/agency":{"post":{"summary":"New Agency","description":"Make the account with this address (made now if there is none) the agency's: it opens agimo.be/agencies at its next sign-in.","operationId":"new_agency_api_admin_leads_agency_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewAgency"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response New Agency Api Admin Leads Agency Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/{kind}/{lead_id}/mail":{"post":{"summary":"Write Lead","description":"Mail that request's person what we wrote in the dashboard, to answer by replying (`leads.write`).","operationId":"write_lead_api_admin_leads__kind___lead_id__mail_post","parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["mortgage","seller"],"type":"string","title":"Kind"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadMail"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Write Lead Api Admin Leads  Kind   Lead Id  Mail Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/{kind}/{lead_id}/forward":{"post":{"summary":"Forward Lead","description":"Note that this request went to a partner, to whom we forwarded the mail thread ourselves; it is theirs from then on (`leads.forward`).","operationId":"forward_lead_api_admin_leads__kind___lead_id__forward_post","parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["mortgage","seller"],"type":"string","title":"Kind"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forward"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Forward Lead Api Admin Leads  Kind   Lead Id  Forward Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/{kind}/{lead_id}/aside":{"post":{"summary":"Set Lead Aside","description":"Archive that request, bring it back, or put it off for some days (`leads.set_aside`).","operationId":"set_lead_aside_api_admin_leads__kind___lead_id__aside_post","parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["mortgage","seller"],"type":"string","title":"Kind"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Aside"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Lead Aside Api Admin Leads  Kind   Lead Id  Aside Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/mails":{"get":{"summary":"Mail Previews","description":"Every kind of alert email in every language, drawn from this deployment's newest homes; nothing is sent (`notify.previews`).","operationId":"mail_previews_api_admin_mails_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Mail Previews Api Admin Mails Get"}}}}}}},"/api/admin/metrics":{"get":{"summary":"Growth Metrics","description":"The growth numbers day by day, from production's `metrics` table (`backend/metrics.py`), and today so far (`metrics.today`), counted\non the fly: here on production; on dev, which may not read production's people, asked of production\n(`from_production`). A production restarting for a deploy leaves dev without today for those seconds.","operationId":"growth_metrics_api_admin_metrics_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":730,"minimum":7,"default":120,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Growth Metrics Api Admin Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/places":{"get":{"summary":"User Places","description":"Where the people active in the last `days` look, per municipality (`metrics.places`): here on production; on dev,\nwhose people are not production's, asked of production.","operationId":"user_places_api_admin_places_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":730,"minimum":0,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response User Places Api Admin Places Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/ads":{"get":{"summary":"Meta Ads","description":"Every Meta ad's creative with its numbers and signups (`ads.creatives`): here on production; on dev, whose\nalerts are not production's, asked of production, whose refusal the page shows (a 404 until main has this code).","operationId":"meta_ads_api_admin_ads_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Meta Ads Api Admin Ads Get"}}}}}}},"/api/admin/tables/{name}":{"get":{"summary":"Table Rows","description":"One page of a table, filtered by {\"column\": \"text it contains\"}. Only our own tables, read where they live.","operationId":"table_rows_api_admin_tables__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":50,"title":"Limit"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"descending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Descending"}},{"name":"filters","in":"query","required":false,"schema":{"type":"string","default":"{}","title":"Filters"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Table Rows Api Admin Tables  Name  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/targets":{"get":{"summary":"Agent Targets","description":"The next agencies for this agent, biggest first: the ones it holds, then new ones held for it an hour\n(`coverage.targets`); `issue` narrows the new ones to agencies where that issue is open; `reassess` reopens\n`genuine` verdicts older than that many days.","operationId":"agent_targets_api_agents_targets_get","parameters":[{"name":"n","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"N"}},{"name":"agent","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Agent"}},{"name":"issue","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Issue"}},{"name":"reassess","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Reassess"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Agent Targets Api Agents Targets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/candidates/{source}":{"get":{"summary":"Agent Candidate","description":"The agency's row: production's half and the candidate's, with its state and refusal. Poll it after a push.","operationId":"agent_candidate_api_agents_candidates__source__get","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Candidate Api Agents Candidates  Source  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Agent Push","description":"Store the agent's scraper as the agency's candidate (it must compile); the scorer picks it up within minutes.\n`agent` is kept as the pusher: its own `genuine` verdicts count as unchecked until a reviewer approves (`coverage.unchecked`).","operationId":"agent_push_api_agents_candidates__source__put","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}},{"name":"agent","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"agent","title":"Agent"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Candidate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Push Api Agents Candidates  Source  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Agent Drop","description":"Drop the candidate (the promoter's rejection, or an agent's own retreat). The agency is a target again.","operationId":"agent_drop_api_agents_candidates__source__delete","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Drop Api Agents Candidates  Source  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/reviews":{"get":{"summary":"Agent Reviews","description":"The reviewer's queue: better candidates nobody has reviewed or holds, biggest agency first, held for this agent an hour.\nEach comes with what to read: `GET /candidates/{source}/review`.","operationId":"agent_reviews_api_agents_reviews_get","parameters":[{"name":"n","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":3,"title":"N"}},{"name":"agent","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Agent Reviews Api Agents Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/candidates/{source}/review":{"get":{"summary":"Agent Review Report","description":"What a reviewer reads: the row (issues on both sides, the trace, the diff, the drops) and production's homes\nnext to the candidate's on the same URLs (`coverage.compare`), to check against the live site.","operationId":"agent_review_report_api_agents_candidates__source__review_get","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Review Report Api Agents Candidates  Source  Review Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Agent Review","description":"A reviewer's verdict on this candidate version, kept beside its score (`judged`), so a new push clears it.\n`approve` puts it on the promote list; `reject` makes it `refused` with the reason, which the next fixer reads\nin `targets` as the candidate's refusal.","operationId":"agent_review_api_agents_candidates__source__review_put","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}},{"name":"agent","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"agent","title":"Agent"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Review"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Review Api Agents Candidates  Source  Review Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/candidates/{source}/verdicts/{issue}":{"put":{"summary":"Agent Verdict","description":"The agent's verdict on one issue, with why: `genuine` says the site does not publish it, and the issue may stay.\n\nThe agent decides; the only demand is evidence: the reason cites at least two listing pages it was checked on.\n`agent` is kept as the verdict's author with the time, so a later pass can re-judge what an older model accepted.","operationId":"agent_verdict_api_agents_candidates__source__verdicts__issue__put","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}},{"name":"issue","in":"path","required":true,"schema":{"type":"string","title":"Issue"}},{"name":"agent","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"agent","title":"Agent"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Verdict"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Verdict Api Agents Candidates  Source  Verdicts  Issue  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/better":{"get":{"summary":"Agent Better","description":"Every candidate the row says is better than production (`approved`: only those a reviewer approved; `only`:\nthese comma-separated agencies): its file, its diff from production, its trace, and the two halves of the row.\nWhat the promoter commits onto main or drops.","operationId":"agent_better_api_agents_better_get","parameters":[{"name":"approved","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Approved"}},{"name":"only","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Agent Better Api Agents Better Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/candidates/{source}/blocked":{"post":{"summary":"Agent Blocked","description":"The agent could not work this agency (our server is blocked, the site needs a browser, a rewrite beyond a\nround): hold it a week with the reason, so the next sessions are not handed the same wall. It comes back by itself.","operationId":"agent_blocked_api_agents_candidates__source__blocked_post","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Blocked"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Blocked Api Agents Candidates  Source  Blocked Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/candidates/{source}/promoted":{"post":{"summary":"Agent Promoted","description":"After the file is on main: the candidate's sandbox listings become production's and the candidate is dropped.","operationId":"agent_promoted_api_agents_candidates__source__promoted_post","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Promoted Api Agents Candidates  Source  Promoted Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AlertToken":{"properties":{"token":{"type":"string","maxLength":64,"minLength":20,"title":"Token"}},"type":"object","required":["token"],"title":"AlertToken"},"Annotation":{"properties":{"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"why":{"type":"string","title":"Why","default":""}},"type":"object","required":["verdict"],"title":"Annotation"},"Aside":{"properties":{"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived","description":"true: off our list for good; false: back on it"},"days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Days","description":"put off for so many days; 0: back now"}},"type":"object","title":"Aside"},"Blocked":{"properties":{"why":{"type":"string","title":"Why"}},"type":"object","required":["why"],"title":"Blocked"},"Candidate":{"properties":{"code":{"type":"string","title":"Code"},"trace":{"type":"string","title":"Trace","default":""}},"type":"object","required":["code"],"title":"Candidate"},"ChatEmail":{"properties":{"subject":{"type":"string","maxLength":150,"minLength":1,"title":"Subject"},"body":{"type":"string","maxLength":20000,"minLength":1,"title":"Body"},"locale":{"type":"string","enum":["en","fr","nl"],"title":"Locale","default":"nl"}},"type":"object","required":["subject","body"],"title":"ChatEmail"},"Credential":{"properties":{"campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Campaign","description":"source|campaign|ad from the link's utm tags"},"referred_by":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Referred By","description":"who sent them, as typed in \"who sent you?\""},"credential":{"type":"string","title":"Credential"}},"type":"object","required":["credential"],"title":"Credential"},"EmailCheck":{"properties":{"campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Campaign","description":"source|campaign|ad from the link's utm tags"},"referred_by":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Referred By","description":"who sent them, as typed in \"who sent you?\""},"email":{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"},"locale":{"type":"string","enum":["en","fr","nl"],"title":"Locale","default":"en"},"code":{"type":"string","maxLength":6,"minLength":6,"pattern":"^\\d{6}$","title":"Code"}},"type":"object","required":["email","code"],"title":"EmailCheck"},"EmailCode":{"properties":{"email":{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"},"locale":{"type":"string","enum":["en","fr","nl"],"title":"Locale","default":"en"}},"type":"object","required":["email"],"title":"EmailCode"},"Fold":{"properties":{"memory":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Memory"},"turns":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","maxItems":20,"minItems":1,"title":"Turns"},"start":{"type":"string","maxLength":64,"title":"Start"}},"type":"object","required":["turns","start"],"title":"Fold","description":"The memory so far and the oldest turns still sent in full, to merge; `start` is the first turn they leave out.\nSigned in, the server merges into the profile it keeps (`users.memory`) instead of the browser's copy."},"Forward":{"properties":{"to":{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"To","description":"the partner's address: a credit broker's or an agency's"}},"type":"object","required":["to"],"title":"Forward"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LeadMail":{"properties":{"subject":{"type":"string","maxLength":200,"minLength":1,"title":"Subject","description":"the mail's subject, as we wrote it"},"text":{"type":"string","maxLength":5000,"minLength":1,"title":"Text","description":"the mail as we wrote it, plain text"}},"type":"object","required":["subject","text"],"title":"LeadMail"},"LoanQuality":{"properties":{"quality":{"anyOf":[{"type":"string","enum":["good","fair","poor"]},{"type":"null"}],"title":"Quality","description":"how good the buyer was; none: not said"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note","description":"why, in the broker's words"}},"type":"object","title":"LoanQuality"},"LoanUndo":{"properties":{"undo":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Undo","description":"what the request's POST returned; none: the signed-in person's latest request"}},"type":"object","title":"LoanUndo"},"NewAgency":{"properties":{"email":{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"},"agency":{"type":"string","maxLength":120,"title":"Agency","description":"the agency's site, as on Agimo: era-gent.be"}},"type":"object","required":["email","agency"],"title":"NewAgency"},"NewAlert":{"properties":{"campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Campaign","description":"source|campaign|ad from the link's utm tags"},"referred_by":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Referred By","description":"who sent them, as typed in \"who sent you?\""},"email":{"anyOf":[{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$"},{"type":"null"}],"title":"Email"},"query":{"type":"string","maxLength":2000,"title":"Query","description":"`search.Filters` as a query string"},"locale":{"type":"string","enum":["en","fr","nl"],"title":"Locale","default":"en"},"frequency":{"anyOf":[{"type":"string","enum":["instant","daily"]},{"type":"null"}],"title":"Frequency","description":"as homes are found or once a day; none: the deal's default"}},"type":"object","required":["query"],"title":"NewAlert"},"NewBroker":{"properties":{"email":{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"}},"type":"object","required":["email"],"title":"NewBroker"},"NewLead":{"properties":{"campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Campaign","description":"source|campaign|ad from the link's utm tags"},"referred_by":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Referred By","description":"who sent them, as typed in \"who sent you?\""},"address":{"anyOf":[{"type":"string","maxLength":200,"minLength":3},{"type":"null"}],"title":"Address"},"property_type":{"anyOf":[{"type":"string","enum":["house","apartment"]},{"type":"null"}],"title":"Property Type"},"sqm":{"anyOf":[{"type":"number","maximum":1000.0,"minimum":20.0},{"type":"null"}],"title":"Sqm"},"plot":{"anyOf":[{"type":"number","maximum":100000.0,"minimum":20.0},{"type":"null"}],"title":"Plot","description":"plot area, m2"},"bedrooms":{"anyOf":[{"type":"number","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Bedrooms"},"energy_label":{"anyOf":[{"type":"string","enum":["A++","A+","A","B","C","D","E","F","G"]},{"type":"null"}],"title":"Energy Label"},"lat":{"anyOf":[{"type":"number","maximum":51.6,"minimum":49.4},{"type":"null"}],"title":"Lat","description":"where the owner picked it from the suggestions; the address is then not searched again"},"lon":{"anyOf":[{"type":"number","maximum":6.5,"minimum":2.4},{"type":"null"}],"title":"Lon"},"street_level":{"type":"boolean","title":"Street Level","description":"whether the picked place is a street address and not a town","default":true},"email":{"anyOf":[{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$"},{"type":"null"}],"title":"Email","description":"signed out: where to reach the owner"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"timeline":{"anyOf":[{"type":"string","enum":["soon","year","curious"]},{"type":"null"}],"title":"Timeline","description":"when the owner thinks of selling"},"locale":{"type":"string","enum":["en","fr","nl"],"title":"Locale","default":"en"},"estimate_mid":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":0.0},{"type":"null"}],"title":"Estimate Mid","description":"the middle of the range the owner was shown"},"where":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Where","description":"the door they asked from, as the site's events name it (frontend `track.js`): chat, mortgage, alert, mail"}},"type":"object","title":"NewLead"},"NewMortgageLead":{"properties":{"campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Campaign","description":"source|campaign|ad from the link's utm tags"},"referred_by":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Referred By","description":"who sent them, as typed in \"who sent you?\""},"email":{"anyOf":[{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$"},{"type":"null"}],"title":"Email","description":"signed out: where to reach the buyer"},"phone":{"anyOf":[{"type":"string","maxLength":40,"minLength":6},{"type":"null"}],"title":"Phone","description":"to be called; none: they want an email"},"price":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":0.0},{"type":"null"}],"title":"Price","description":"the home they look at, or their budget"},"listing_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Listing Id"},"project":{"anyOf":[{"$ref":"#/components/schemas/ProjectIn"},{"type":"null"}]},"locale":{"type":"string","enum":["en","fr","nl"],"title":"Locale","default":"en"},"where":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Where","description":"the door they asked from, as the site's events name it (frontend `track.js`): chat, mortgage, alert, mail"}},"type":"object","title":"NewMortgageLead"},"NewPartner":{"properties":{"email":{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"},"code":{"type":"string","maxLength":32,"title":"Code","description":"their links carry ?s=<code>"},"share":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Share","description":"of what their customers bring in, as agreed: kept, shown nowhere yet","default":0.3},"brought_by":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Brought By","description":"the code of the partner who brought them"}},"type":"object","required":["email","code"],"title":"NewPartner"},"Phone":{"properties":{"endpoint":{"type":"string","maxLength":2048,"title":"Endpoint"},"keys":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Keys"}},"type":"object","required":["endpoint"],"title":"Phone","description":"A browser's push subscription, as `PushSubscription.toJSON()` gives it; `keys` only to turn it on."},"ProjectIn":{"properties":{"cash":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":0.0},{"type":"null"}],"title":"Cash","description":"own money for the fees and the share the bank does not lend; none: not given (`mortgage.termsOf` assumes)"},"rate":{"anyOf":[{"type":"number","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Rate","description":"yearly interest rate, percent; none: the Belgian average (`/api/options`)"},"years":{"type":"integer","maximum":40.0,"minimum":1.0,"title":"Years","default":25},"income":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Income","description":"net household income a month"},"monthly_max":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Monthly Max","description":"the most they want to pay a month"},"home":{"anyOf":[{"type":"string","enum":["none","sell","keep"]},{"type":"null"}],"title":"Home","description":"the home they own now, if any: sold, or kept; none: not said"},"sale":{"anyOf":[{"$ref":"#/components/schemas/Sale"},{"type":"null"}]},"move":{"anyOf":[{"type":"string","enum":["soon","year","later"]},{"type":"null"}],"title":"Move","description":"when they want to buy: within 3 months, within the year, just looking; none: not said"},"loan":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Loan","description":"they borrow (a loan, the bank) or pay cash; none: not said"},"buyers":{"anyOf":[{"type":"string","enum":["alone","together"]},{"type":"null"}],"title":"Buyers","description":"who buys: alone, or as two; none: not said"},"offered":{"items":{"type":"string","enum":["valuation","broker"]},"type":"array","title":"Offered","description":"the help the chat offered them already, each once (frontend `offerDue`)","default":[]},"asked":{"items":{"type":"string","enum":["valuation","broker"]},"type":"array","title":"Asked","description":"the help they asked for: never offered again. The server says it from the lead rows (`db.asked`); what the app sends is not kept","default":[]}},"type":"object","title":"ProjectIn","description":"A housing project as the app keeps it (`frontend` store `project`, `mortgage.js` reads it): the money, the\nsituation, and the home they sell when `home` is \"sell\"."},"Quick":{"properties":{"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":40,"minItems":1,"title":"Messages"},"search":{"type":"string","maxLength":4000,"title":"Search","default":""},"area_names":{"additionalProperties":{"type":"string"},"type":"object","maxProperties":400,"title":"Area Names","default":{}}},"type":"object","required":["messages"],"title":"Quick","description":"A message for the fast road: the conversation's words, the search on screen as `search.Filters` query\nparameters, and the names of its areas, so the model can keep or drop one by code."},"Review":{"properties":{"verdict":{"type":"string","enum":["approve","reject"],"title":"Verdict"},"why":{"type":"string","minLength":10,"title":"Why"}},"type":"object","required":["verdict","why"],"title":"Review"},"Sale":{"properties":{"value":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":0.0},{"type":"null"}],"title":"Value"},"owed":{"type":"integer","maximum":100000000.0,"minimum":0.0,"title":"Owed","default":0}},"type":"object","title":"Sale","description":"The home a customer sells: what it is worth (their own figure, or the valuation's) and what is still owed on it."},"Seen":{"properties":{"to_agency":{"type":"boolean","title":"To Agency","default":false}},"type":"object","title":"Seen"},"SeenAreas":{"properties":{"areas":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Areas","description":"the place filter's codes, as `Filters.areas`"},"listing_type":{"type":"string","enum":["buy","rent"],"title":"Listing Type"}},"type":"object","required":["areas","listing_type"],"title":"SeenAreas"},"Stage":{"properties":{"stage":{"anyOf":[{"type":"string","enum":["saved","contacted","visited","offer","bought"]},{"type":"null"}],"title":"Stage"}},"type":"object","title":"Stage"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"Verdict":{"properties":{"verdict":{"type":"string","enum":["genuine","fixable","open"],"title":"Verdict"},"why":{"type":"string","title":"Why"}},"type":"object","required":["verdict","why"],"title":"Verdict"},"backend__agent__Turn":{"properties":{"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":200,"minItems":1,"title":"Messages"},"kernel":{"type":"string","maxLength":60000,"title":"Kernel","description":"what run_js can reach: the tool description"},"vocabulary":{"type":"string","maxLength":4000,"title":"Vocabulary","description":"the tags a reply may use: ends the system prompt","default":""},"language":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Language","description":"what the latest message is written in, as the fast road read it"}},"type":"object","required":["messages","kernel"],"title":"Turn","description":"The conversation so far (messages as `llm.stream` returns them) and the two generated prompt sections."},"backend__api__Turn":{"properties":{"turn_id":{"type":"string","title":"Turn Id"},"user_message":{"type":"string","title":"User Message"},"assistant_message":{"type":"string","title":"Assistant Message"},"payload":{"additionalProperties":true,"type":"object","title":"Payload","default":{}}},"type":"object","required":["turn_id","user_message","assistant_message"],"title":"Turn"}}}}