{"openapi":"3.1.0","info":{"title":"Engage Estero RAG API","version":"0.1.0"},"paths":{"/api/events":{"get":{"summary":"Get Events","description":"Merged, deduped, future-only community events. Cached in-process for\nCACHE_TTL_SECONDS; on refresh failure, serves the last good cache.","operationId":"get_events_api_events_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Events Api Events Get"}}}}}}},"/api/records":{"get":{"summary":"List Records","operationId":"list_records_api_records_get","parameters":[{"name":"view","in":"query","required":false,"schema":{"enum":["all","decisions"],"type":"string","default":"all","title":"View"}},{"name":"board","in":"query","required":false,"schema":{"type":"string","default":"","title":"Board"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","oldest","title"],"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":100,"minimum":1,"default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Records Api Records Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/records/boards":{"get":{"summary":"List Boards","operationId":"list_boards_api_records_boards_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Response List Boards Api Records Boards Get"}}}}}}},"/api/records/minutes":{"get":{"summary":"List Minutes","description":"Each minutes PDF once, newest meeting first. With `q`, only meetings\nthat have an agenda item matching the search.","operationId":"list_minutes_api_records_minutes_get","parameters":[{"name":"board","in":"query","required":false,"schema":{"type":"string","default":"","title":"Board"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Minutes Api Records Minutes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/records/summary":{"get":{"summary":"Records Summary","operationId":"records_summary_api_records_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Records Summary Api Records Summary Get"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ready":{"get":{"summary":"Ready","operationId":"ready_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/chat":{"post":{"summary":"Chat","operationId":"chat_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/warmup":{"get":{"summary":"Warmup","description":"Touch retrieval + LLM so the first user question is not a cold start.","operationId":"warmup_warmup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/chat/stream":{"post":{"summary":"Chat Stream","operationId":"chat_stream_chat_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports":{"post":{"summary":"Submit Report","description":"Public: flag an incorrect location or suggest a data change.","operationId":"submit_report_reports_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recent-decisions":{"get":{"summary":"Recent Decisions","description":"Dashboard widget: recent board rows that have a project name.","operationId":"recent_decisions_recent_decisions_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin":{"get":{"summary":"Admin Redirect","operationId":"admin_redirect_admin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/status":{"get":{"summary":"Admin Status","operationId":"admin_status_admin_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reports":{"get":{"summary":"Admin List Reports","operationId":"admin_list_reports_admin_reports_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportOut"},"title":"Response Admin List Reports Admin Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reports/{report_id}":{"patch":{"summary":"Admin Update Report","operationId":"admin_update_report_admin_reports__report_id__patch","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/feedback":{"post":{"summary":"Feedback","operationId":"feedback_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/load":{"post":{"summary":"Load Csv","description":"Replace the in-memory corpus (admin only). Prefer pipeline rebuild in production.","operationId":"load_csv_load_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_load_csv_load_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_load_csv_load_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_load_csv_load_post"},"ChatRequest":{"properties":{"question":{"type":"string","maxLength":4000,"minLength":1,"title":"Question"},"session_id":{"type":"string","title":"Session Id","default":"default"}},"type":"object","required":["question"],"title":"ChatRequest"},"ChatResponse":{"properties":{"summary":{"type":"string","title":"Summary"},"projects":{"items":{"$ref":"#/components/schemas/ProjectOut"},"type":"array","title":"Projects"},"answer":{"type":"string","title":"Answer","default":""},"timeline":{"items":{"$ref":"#/components/schemas/TimelineEntry"},"type":"array","title":"Timeline"},"related":{"items":{"$ref":"#/components/schemas/RelatedRecord"},"type":"array","title":"Related"},"used_record_ids":{"items":{"type":"string"},"type":"array","title":"Used Record Ids"},"follow_ups":{"items":{"type":"string"},"type":"array","title":"Follow Ups"},"source_type":{"type":"string","title":"Source Type","default":"records"},"route":{"type":"string","title":"Route","default":"rag"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["summary"],"title":"ChatResponse"},"FeedbackRequest":{"properties":{"session_id":{"type":"string","title":"Session Id","default":"default"},"question":{"type":"string","title":"Question"},"rating":{"type":"string","title":"Rating"},"comment":{"type":"string","title":"Comment","default":""},"route":{"type":"string","title":"Route","default":""},"summary":{"type":"string","title":"Summary","default":""},"project_ids":{"items":{"type":"string"},"type":"array","title":"Project Ids"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["question","rating"],"title":"FeedbackRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ProjectOut":{"properties":{"title":{"type":"string","title":"Title","default":""},"id":{"type":"string","title":"Id","default":""},"location":{"type":"string","title":"Location","default":""},"summary":{"type":"string","title":"Summary","default":""},"status":{"type":"string","title":"Status","default":"No decision recorded"},"date":{"type":"string","title":"Date","default":""},"document_url":{"type":"string","title":"Document Url","default":""},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lng":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lng"},"source_type":{"type":"string","title":"Source Type","default":""},"article_url":{"type":"string","title":"Article Url","default":""},"category":{"type":"string","title":"Category","default":""},"video_url":{"type":"string","title":"Video Url","default":""},"video_label":{"type":"string","title":"Video Label","default":""},"video_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Video Start"},"video_approximate":{"type":"boolean","title":"Video Approximate","default":false}},"type":"object","title":"ProjectOut"},"RelatedRecord":{"properties":{"record_id":{"type":"string","title":"Record Id","default":""},"one_line":{"type":"string","title":"One Line","default":""}},"type":"object","title":"RelatedRecord"},"ReportCreate":{"properties":{"kind":{"$ref":"#/components/schemas/ReportKind"},"details":{"type":"string","maxLength":4000,"minLength":5,"title":"Details"},"application_id":{"type":"string","maxLength":120,"title":"Application Id","default":""},"location":{"type":"string","maxLength":500,"title":"Location","default":""},"current_value":{"type":"string","maxLength":1000,"title":"Current Value","default":""},"suggested_value":{"type":"string","maxLength":1000,"title":"Suggested Value","default":""},"contact_email":{"type":"string","maxLength":254,"title":"Contact Email","default":""},"page_url":{"type":"string","maxLength":500,"title":"Page Url","default":""}},"type":"object","required":["kind","details"],"title":"ReportCreate"},"ReportKind":{"type":"string","enum":["incorrect_location","suggest_change","other"],"title":"ReportKind"},"ReportOut":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"string","title":"Created At"},"kind":{"$ref":"#/components/schemas/ReportKind"},"status":{"$ref":"#/components/schemas/ReportStatus","default":"open"},"details":{"type":"string","title":"Details"},"application_id":{"type":"string","title":"Application Id","default":""},"location":{"type":"string","title":"Location","default":""},"current_value":{"type":"string","title":"Current Value","default":""},"suggested_value":{"type":"string","title":"Suggested Value","default":""},"contact_email":{"type":"string","title":"Contact Email","default":""},"page_url":{"type":"string","title":"Page Url","default":""},"admin_note":{"type":"string","title":"Admin Note","default":""}},"type":"object","required":["id","created_at","kind","details"],"title":"ReportOut"},"ReportStatus":{"type":"string","enum":["open","acknowledged","resolved","dismissed"],"title":"ReportStatus"},"ReportStatusUpdate":{"properties":{"status":{"$ref":"#/components/schemas/ReportStatus"},"admin_note":{"type":"string","maxLength":2000,"title":"Admin Note","default":""}},"type":"object","required":["status"],"title":"ReportStatusUpdate"},"TimelineEntry":{"properties":{"date":{"type":"string","title":"Date","default":""},"event":{"type":"string","title":"Event","default":""},"status":{"type":"string","title":"Status","default":"No decision recorded"},"record_id":{"type":"string","title":"Record Id","default":""}},"type":"object","title":"TimelineEntry"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}