{"openapi":"3.1.0","info":{"title":"Ebby API","description":"AI-powered admissions assistant for private schools","version":"0.1.0"},"paths":{"/api/widget/config/{school_id}":{"get":{"tags":["widget"],"summary":"Get Widget Config","operationId":"get_widget_config_api_widget_config__school_id__get","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/widget/events":{"post":{"tags":["widget"],"summary":"Track Events","operationId":"track_events_api_widget_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventBatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/widget/conversations":{"post":{"tags":["widget"],"summary":"Create Conversation","operationId":"create_conversation_api_widget_conversations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/widget/conversations/{conversation_id}":{"patch":{"tags":["widget"],"summary":"Update Conversation","operationId":"update_conversation_api_widget_conversations__conversation_id__patch","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["widget"],"summary":"Get Conversation","description":"Return conversation messages + flow answers for widget session restore.","operationId":"get_conversation_api_widget_conversations__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/widget/preview-chat":{"post":{"tags":["widget"],"summary":"Preview Chat","description":"Stream a RAG answer for the dashboard preview. Writes nothing, anywhere.","operationId":"preview_chat_api_widget_preview_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewChatRequest"}}},"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/{conversation_id}":{"post":{"tags":["chat"],"summary":"Send Message","operationId":"send_message_api_chat__conversation_id__post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads":{"post":{"tags":["leads"],"summary":"Create Lead","operationId":"create_lead_api_leads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bookings/slots/{school_id}":{"get":{"tags":["bookings"],"summary":"Get Available Slots","description":"Available start times for one kind of meeting.\n\n`type` matters because a campus visit and a phone call are different\nlengths at most schools, so they produce different grids. Absent = tour,\nwhich is what every caller sent before durations existed.","operationId":"get_available_slots_api_bookings_slots__school_id__get","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"tour","title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bookings/events/{school_id}":{"get":{"tags":["bookings"],"summary":"List Open Events","description":"Upcoming open school-hosted events for the widget's session picker.\n\nSchool-local date/time strings (same convention as the slots endpoint) so\nthe widget does zero timezone math. NEVER serializes meeting_url or raw\ncapacity — only spots_left when a cap is set.","operationId":"list_open_events_api_bookings_events__school_id__get","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bookings":{"post":{"tags":["bookings"],"summary":"Create Booking","operationId":"create_booking_api_bookings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/preview":{"post":{"tags":["preview"],"summary":"Request Preview","operationId":"request_preview_api_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sitemap.xml":{"get":{"tags":["sitemap"],"summary":"Marketing Sitemap","operationId":"marketing_sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sms-opt-in":{"get":{"tags":["demo-pages"],"summary":"Sms Opt In Policy Page","description":"Public SMS opt-in workflow documentation (Twilio toll-free verification\nproof URL + a standing disclosure page). Shows the exact consent point\nand language. No school or family data on this page. External copy: no\nem dashes.","operationId":"sms_opt_in_policy_page_sms_opt_in_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/demo/{slug}":{"get":{"tags":["demo-pages"],"summary":"Demo Page","operationId":"demo_page_demo__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/funnel":{"get":{"tags":["admin"],"summary":"Get Funnel Analytics","operationId":"get_funnel_analytics_api_admin_analytics_funnel_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/roi":{"get":{"tags":["admin"],"summary":"Get Roi Analytics","description":"ROI / pipeline numbers for the dashboard-home hero.\n\nWindow defaults to school-year-to-date (config.roi.school_year_start_month,\ndefault July 1). Dollar math is keyed on lead STATUS (enrolled = full\ntuition, booked = tuition x close rate — one bucket per lead, no double\ncounting); the `bookings` count uses the bookings table so it matches the\nexisting KPI card. After-hours = engaged conversations started on a weekend\nor before 8am / after 5pm school-local.","operationId":"get_roi_analytics_api_admin_analytics_roi_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/trends":{"get":{"tags":["admin"],"summary":"Get Trends Analytics","operationId":"get_trends_analytics_api_admin_analytics_trends_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/page-performance":{"get":{"tags":["admin"],"summary":"Get Page Performance","operationId":"get_page_performance_api_admin_analytics_page_performance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagePerformanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/engagement":{"get":{"tags":["admin"],"summary":"Get Engagement","operationId":"get_engagement_api_admin_analytics_engagement_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/motivations":{"get":{"tags":["admin"],"summary":"Get Motivations","operationId":"get_motivations_api_admin_analytics_motivations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MotivationsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/top-questions":{"get":{"tags":["admin"],"summary":"Get Top Questions","operationId":"get_top_questions_api_admin_analytics_top_questions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopQuestionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/lead-insights":{"get":{"tags":["admin"],"summary":"Get Lead Insights","operationId":"get_lead_insights_api_admin_analytics_lead_insights_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadInsightsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/visitor-locations":{"get":{"tags":["admin"],"summary":"Get Visitor Locations","operationId":"get_visitor_locations_api_admin_analytics_visitor_locations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","default":"city","title":"Group By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitorLocationsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/ai-advisor":{"get":{"tags":["admin"],"summary":"Get Ai Advisor","operationId":"get_ai_advisor_api_admin_analytics_ai_advisor_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/conversations":{"get":{"tags":["admin"],"summary":"List Conversations","operationId":"list_conversations_api_admin_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"bucket","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Bucket"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"include_test","in":"query","required":false,"schema":{"type":"boolean","description":"Default True so existing callers (the Inquiries page builds a conversation map with it) keep their current result set. The conversations page passes false.","default":true,"title":"Include Test"},"description":"Default True so existing callers (the Inquiries page builds a conversation map with it) keep their current result set. The conversations page passes false."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/conversations/stats":{"get":{"tags":["admin"],"summary":"Conversation Stats","description":"Bucket counts + the true total, so the page can show \"50 of 245\" and put\na live number on every filter chip. Separate from the list endpoint on\npurpose: the list stays a plain array, which is what its existing callers\nexpect, and this is one cheap aggregate rather than a second page fetch.","operationId":"conversation_stats_api_admin_conversations_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"include_test","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Test"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/conversations/summarize":{"post":{"tags":["admin"],"summary":"Summarize Conversations Batch","description":"Fill in the one-line summary + topic for conversations that lack one,\nand cache them on the row (migration 028).\n\nCost model, stated because it is the thing that makes this safe: one Haiku\ncall per conversation, ONCE, on first view. `summarized_at` is stamped even\nwhen the summary comes back empty, so nothing is ever summarized twice.\nToday's conversations are usually already warm because the daily recap\nemail summarizes them and now writes what it computes.","operationId":"summarize_conversations_batch_api_admin_conversations_summarize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/conversations/{conversation_id}":{"delete":{"tags":["admin"],"summary":"Delete Conversation Data","description":"Soft-delete a conversation's content for compliance.\n\nClears messages and flow answers while preserving the record for analytics.\n\nThe `content_deleted_at` stamp (migration 028) is the point: without it the\nsurviving row is indistinguishable from a family who opened the panel and\nnever typed, which is why the dashboard used to drop the row from its list\nand then show it again, empty, on the next load.","operationId":"delete_conversation_data_api_admin_conversations__conversation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/conversations/{conversation_id}/messages":{"post":{"tags":["admin"],"summary":"Add Admin Message","description":"Add an admin/staff note to a conversation (no AI response triggered).\n\nSIGNED since 2026-09-09. Notes used to carry only role/content/timestamp, so\ntwo people leaving notes on the same conversation produced an unattributable\nthread — Rylie at CCHS asked who could see them and the honest answer had to\ninclude \"and you cannot tell who wrote which\". `messages` is JSONB, so\nattribution needed no migration; notes written before this ship simply have\nno author and render unsigned.\n\nA note is dashboard-only and must stay that way. Three separate readers drop\nany role outside user/assistant, and all three are load-bearing:\n  * `Chat.tsx` history restore, so a family reopening the panel never sees it\n  * `rag.py` claude_messages, so it never enters the prompt and cannot be\n    repeated back to a family\n  * `family_emails.py`, so it never reaches the recap email","operationId":"add_admin_message_api_admin_conversations__conversation_id__messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/traffic-sources":{"get":{"tags":["admin"],"summary":"Get Traffic Sources","operationId":"get_traffic_sources_api_admin_analytics_traffic_sources_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrafficSourcesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/inquiry-signals":{"get":{"tags":["admin"],"summary":"Get Inquiry Signals","operationId":"get_inquiry_signals_api_admin_analytics_inquiry_signals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InquirySignalsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/inquiry-funnel":{"get":{"tags":["admin"],"summary":"Get Inquiry Funnel","description":"Website -> chat -> the school's own inquiry form -> submitted.\n\nExists for schools configured to capture nothing themselves (funnel_actions\nreduced to a single `link` action, intake off). For them `bookings` and\n`leads` are empty by design, so the ROI hero, hot-lead alerts and\ntours_from_followups attribution all read zero and there is no honest way to\njudge a pilot month. Every event below was already being written; nothing\ncounted `cta_click` until now.\n\n`submitted_after_chat` is the number worth reporting: it requires a\nwidget_open at or before the submit for the SAME visitor, so it is chat\nattribution rather than two unrelated totals sitting next to each other.","operationId":"get_inquiry_funnel_api_admin_analytics_inquiry_funnel_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"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":{"$ref":"#/components/schemas/InquiryFunnelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/engagement-scores":{"get":{"tags":["admin"],"summary":"Get Engagement Scores","operationId":"get_engagement_scores_api_admin_analytics_engagement_scores_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementScoresResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/page-flow":{"get":{"tags":["admin"],"summary":"Get Page Flow","operationId":"get_page_flow_api_admin_analytics_page_flow_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageFlowResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads":{"get":{"tags":["admin-leads"],"summary":"List Leads","operationId":"list_leads_api_admin_leads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"segment","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Segment"}},{"name":"readiness","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Readiness"}},{"name":"grade","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadResponse"},"title":"Response List Leads Api Admin Leads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-leads"],"summary":"Create Lead Admin","description":"Create a lead manually from the dashboard (walk-ins, phone calls, etc.)","operationId":"create_lead_admin_api_admin_leads_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/call-queue":{"get":{"tags":["admin-leads"],"summary":"Call Queue","description":"The five-minute work view: untouched new inquiries, oldest first,\nplus trailing-7-day time-to-first-call stats.\n\nOmitting school_id gives an ebby_admin EVERY school in one list. That is\nthe workbench: a caller does not know which account an inquiry belongs to\nbefore it arrives, and the promise is not per-tenant. School staff always\nget their own school, whatever they ask for.\n\nRows carry the phone number and the family's details, because the whole\npoint is to dial without opening anything else — the same internal posture\nas the team alert, and unlike the school-facing hot-lead email which stays\nPII-free.\n\n\"Untouched\" = status new AND no logged call. Declared before the\n/{lead_id} route on purpose — literal path segments must not be eaten by\nthe uuid matcher.\n\nThe list is split, not truncated. `queue` is the live window (see\nRECENT_WINDOW_HOURS) and `older` is everything untouched before it. A hard\ncutoff would have been simpler, but a lead that silently stops appearing is\na lead nobody decided to give up on — and the first thing the split found in\nproduction was a nine-day-old real inquiry buried under six-month-old demo\nrows. Splitting also makes the caller-facing overdue count mean something\nagain: it is computed over the live window only.","operationId":"call_queue_api_admin_leads_call_queue_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/funnel":{"get":{"tags":["admin-leads"],"summary":"Lead Funnel","description":"The live funnel: how many leads sit at each of this school's stages,\noverall and per segment.\n\nBuilt so the founder's hand-counted HQ table (leads -> meeting booked ->\nshowed -> closed won, no-shows and closed lost beside) can be read off a\ncard instead of a spreadsheet. Counts are by CURRENT status; `reached` is\nthe cumulative number a funnel column shows (see\nservices/lead_stages.funnel_counts for exactly how no-shows and lost\nleads are treated). Statuses no stage claims — a lead still on a value\nfrom before the stages were configured — come back under `unknown` so a\nstale row is visible rather than silently missing from every column.\n\nDeclared before the /{lead_id} route on purpose: literal path segments\nmust not be eaten by the uuid matcher.","operationId":"lead_funnel_api_admin_leads_funnel_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/{lead_id}":{"get":{"tags":["admin-leads"],"summary":"Get Lead","operationId":"get_lead_api_admin_leads__lead_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-leads"],"summary":"Update Lead","operationId":"update_lead_api_admin_leads__lead_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-leads"],"summary":"Delete Lead Data","description":"Soft-delete a lead's PII for compliance (CCPA / data request).\n\nAnonymizes all personal data while preserving the record for funnel\nanalytics. Clears linked conversation messages and flow answers.","operationId":"delete_lead_data_api_admin_leads__lead_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/{lead_id}/calls":{"get":{"tags":["admin-leads"],"summary":"List Lead Calls","operationId":"list_lead_calls_api_admin_leads__lead_id__calls_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadCallResponse"},"title":"Response List Lead Calls Api Admin Leads  Lead Id  Calls Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-leads"],"summary":"Log Lead Call","description":"Log a call attempt to a family.\n\nTwo side effects mirror existing semantics: a first touch advances the\nlead from new to contacted, and outcome=stop_requested is the strongest\nstop signal we have (the family said it to a person), so it opts the lead\nout of email AND text and freezes any active cadence — same cascade as\nthe email_opt_out toggle plus the SMS flag.","operationId":"log_lead_call_api_admin_leads__lead_id__calls_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCallCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/{lead_id}/texts":{"get":{"tags":["admin-leads"],"summary":"Get Lead Texts","description":"The whole text conversation with this family, oldest first.\n\nAlso reports whether a reply can be sent, and why not — a disabled box\nwith no explanation is how somebody concludes the feature is broken.","operationId":"get_lead_texts_api_admin_leads__lead_id__texts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-leads"],"summary":"Send Lead Text","description":"Text a family back, now.\n\nNo approval step: a cadence message is drafted by a machine and reviewed by\na person, whereas this was written BY the person. Consent and opt-out are\nstill enforced, because those protect the family rather than the copy.","operationId":"send_lead_text_api_admin_leads__lead_id__texts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTextRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools":{"get":{"tags":["schools"],"summary":"List Schools","operationId":"list_schools_api_admin_schools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SchoolResponse"},"type":"array","title":"Response List Schools Api Admin Schools Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["schools"],"summary":"Create School","operationId":"create_school_api_admin_schools_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/schools/provision-demo":{"post":{"tags":["schools"],"summary":"Provision Demo","description":"One-shot prospect demo: create a demo school from a website URL, extract\nbranding, and kick off background ingestion of their public site.\n\nReturns immediately with the demo URLs; ingestion progress is written to\nschool.config.demo.provision.status (\"ingesting\" → \"ready\"/\"failed\") and\na \"Demo ready\" email lands when it finishes. Re-run with force=true to\nwipe + re-provision an existing demo (e.g. after a redeploy killed the\nbackground ingest).","operationId":"provision_demo_api_admin_schools_provision_demo_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoProvisionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/schools/{school_id}":{"delete":{"tags":["schools"],"summary":"Delete School","description":"Delete a school and everything attached to it (Postgres cascade +\nPinecone vectors). Guarded: refuses non-demo schools unless ?force=true,\nso a fat-fingered id can't take out CCHS.","operationId":"delete_school_api_admin_schools__school_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["schools"],"summary":"Get School","operationId":"get_school_api_admin_schools__school_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["schools"],"summary":"Update School","operationId":"update_school_api_admin_schools__school_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/flow":{"get":{"tags":["schools"],"summary":"Get School Flow","description":"Get the published flow's greeting config for a school.","operationId":"get_school_flow_api_admin_schools__school_id__flow_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["schools"],"summary":"Update School Flow","description":"Update the published intake flow, creating one if needed.\n\nPreviously this accepted `greeting_config` and `welcome_config` only, and\nhardcoded `steps=[]` on create — so the intake questions a family answers\ncould not be set through any API, and no dashboard editor writes them\neither. A multi-campus network needs a campus step (it is what lets one\nEbby instance serve five campuses), so `steps` and `results_config` are\nnow writable. Omitted keys are left untouched.","operationId":"update_school_flow_api_admin_schools__school_id__flow_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email/test-weekly-insights":{"post":{"tags":["schools"],"summary":"Test Weekly Insights Email","description":"Force-fire the weekly insights email for this school, bypassing the\nMonday-8am schedule gate.\n\nRecipient resolution:\n  - If `?to=email@example.com` is provided, send ONLY to that address\n    (leaves school.config alone — useful for testing without spamming\n    the school's actual notify list).\n  - Otherwise, use school.config.notify_emails.weekly_insights.\n\nAny user with access to the school may trigger a test fire.","operationId":"test_weekly_insights_email_api_admin_schools__school_id__email_test_weekly_insights_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email/test-daily-conversations":{"post":{"tags":["schools"],"summary":"Test Daily Conversations Email","description":"Force-fire the daily conversations email for this school, bypassing\nthe 5pm-local schedule gate.\n\nRecipient resolution:\n  - If `?to=email@example.com` is provided, send ONLY to that address\n    (leaves school.config alone — useful for testing without spamming\n    the school's actual notify list).\n  - Otherwise, use school.config.notify_emails.daily_conversations.\n\nAny user with access to the school may trigger a test fire.","operationId":"test_daily_conversations_email_api_admin_schools__school_id__email_test_daily_conversations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email/test-lead-recap":{"post":{"tags":["schools"],"summary":"Test Lead Recap Email","description":"Build the daily lead recap for the last `hours` and send it now.\n\nEbby admins can fire it whether or not `lead_recap.enabled` is on: this\nis how we look at it before a school sees one. A school's own users can\nuse it only once it is switched on for their school (the Settings \"Send\ntest\" button). Never moves the school's real recap window.\n\n  - `?to=you@example.com` sends ONLY there (the school's list is untouched)\n  - `?dry_run=true` sends nothing and returns the rows, subject and CSV","operationId":"test_lead_recap_email_api_admin_schools__school_id__email_test_lead_recap_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Hours"}},{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email/test-post-inquiry":{"post":{"tags":["schools"],"summary":"Test Post Inquiry Email","description":"Render the personalized A1 inquiry follow-up against this school's most\nrecent lead and send it ONLY to ?to= (required — this is a parent-facing\ntemplate; we never test-fire at a real family).","operationId":"test_post_inquiry_email_api_admin_schools__school_id__email_test_post_inquiry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email/test-tour-reminder":{"post":{"tags":["schools"],"summary":"Test Tour Reminder Email","description":"Render the parent tour reminder (variant=24h|morning) against this\nschool's most recent booking. ?to= required.","operationId":"test_tour_reminder_email_api_admin_schools__school_id__email_test_tour_reminder_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"variant","in":"query","required":false,"schema":{"type":"string","default":"24h","title":"Variant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email/test-post-tour":{"post":{"tags":["schools"],"summary":"Test Post Tour Email","description":"Render the post-visit nudge against this school's most recent booking.\n?to= required.","operationId":"test_post_tour_email_api_admin_schools__school_id__email_test_post_tour_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email/test-hot-lead":{"post":{"tags":["schools"],"summary":"Test Hot Lead Email","description":"Render the staff hot-lead alert against this school's most recent lead.\n?to= required (bypasses throttles + the configured recipient list).","operationId":"test_hot_lead_email_api_admin_schools__school_id__email_test_hot_lead_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email/test-approval-digest":{"post":{"tags":["schools"],"summary":"Test Approval Digest Email","description":"Render the Growth Engine approval digest (real drafts when present,\nsynthetic sample otherwise). ?to= required; [TEST] prefix; never stamps.","operationId":"test_approval_digest_email_api_admin_schools__school_id__email_test_approval_digest_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email/test-follow-up-draft":{"post":{"tags":["schools"],"summary":"Test Follow Up Draft Email","description":"Render a sample cadence email (template path, most recent lead or a\nsynthetic family) so schools can see the parent-facing look. ?to= required.","operationId":"test_follow_up_draft_email_api_admin_schools__school_id__email_test_follow_up_draft_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/reminder-texts/preview":{"post":{"tags":["schools"],"summary":"Preview Reminder Texts","description":"Every visit text this school would send, rendered.\n\nTakes the editor's UNSAVED `family_follow_up` block in the body and falls\nback to the stored one, which is the whole point: a school sees the\nsentence it is typing rendered by the same code that will send it, before\ncommitting anything. Reimplementing the renderer in the dashboard would\nhave drifted the first time a rule here changed, and the drift would show\nup as a school reading one thing on screen and a parent getting another.\n\nRead-only. Nothing here writes config and nothing here sends.","operationId":"preview_reminder_texts_api_admin_schools__school_id__reminder_texts_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"default":{},"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/reminder-texts/test":{"post":{"tags":["schools"],"summary":"Test Reminder Text","description":"Send one visit text to a staff phone, rendered from sample data.\n\n`to` is required and is the only number this can ever reach: a visit text\nis parent-facing copy and test-firing it at a real family would be\nindistinguishable from the real thing. The body is taken from the editor's\ndraft rather than from config, so a school can try wording it has not\nsaved.","operationId":"test_reminder_text_api_admin_schools__school_id__reminder_texts_test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"default":{},"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/growth/provision-inbound":{"post":{"tags":["schools"],"summary":"Provision Inbound Address","description":"Mint the school's forwarding address (slug from the domain + an\nunguessable token) into config.growth_engine. ebby_admin only (paid-tier\nonboarding). Idempotent: re-calling returns the existing address; the\naddress only goes live once growth_engine.enabled is true.\n\n`enable=true` flips growth_engine.enabled in the same commit. Without it\nthe only way to turn the tier on was a hand-written config edit against\nprod, which is also the flag that hides the Settings UI holding this very\nbutton — so provisioning could never be done from the dashboard at all.\nEnabling starts DRAFTING only; nothing reaches a family without an\napproval, and instant_ack stays off until separately switched on.","operationId":"provision_inbound_address_api_admin_schools__school_id__growth_provision_inbound_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"enable","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Enable"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/my-ip":{"get":{"tags":["schools"],"summary":"Get My Ip","description":"Echo the caller's public IP so the widget-visibility card can offer a\none-click \"block this network\" button.\n\nThis exists because the alternative is asking a school to find its own\npublic IP range, which in practice means a support email. Their IT person\nopens the dashboard from campus and clicks once.\n\nNot stored anywhere. Auth-gated because an unauthenticated IP echo is a\nfree reflection endpoint, and school_id is access-checked so the route\nbehaves like every other school-scoped read.","operationId":"get_my_ip_api_admin_schools__school_id__my_ip_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/setup-status":{"get":{"tags":["schools"],"summary":"Get Setup Status","description":"One health/progress snapshot powering the home Getting-started\nchecklist, the Settings health card, and the Embed install status.\nEvery signal is auto-detected from data that already exists — the\ncustomer never bookkeeps their own setup.","operationId":"get_setup_status_api_admin_schools__school_id__setup_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/webhook/page-changed":{"post":{"tags":["schools"],"summary":"Webhook Page Changed","description":"Public webhook for a CMS to push a \"this page just changed\" notification.\n\nAuth via a per-school shared secret in school.config.knowledge_refresh.\nwebhook_secret. No JWT required — this is server-to-server, hit from\nwhatever publish-event hook the school's CMS supports.\n\nOn valid call: zero out the stored ETag / Last-Modified / next_check_after\nfor the source so the next content-poller cycle (within ~5 min) treats it\nas stale and re-ingests. Bypasses the 7-day weekly cadence the old loop\nused.\n\nReturns 202 Accepted. Never raises on unknown URL — webhooks can be flaky\nand a 200 keeps the source CMS from retrying.","operationId":"webhook_page_changed_api_admin_schools__school_id__webhook_page_changed_post","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/diagnostic":{"get":{"tags":["schools"],"summary":"School Diagnostic","description":"One-shot dump of everything Ebby sees for a school: prompt config,\nKB sources + chunk counts, site_index entries, upcoming calendar events\n(both the chronological next 30 AND any title-matching long-horizon\nbookends), and which prompt .md sections are loaded. Meant to be the\nfirst thing you open when a response is wrong, so you can diagnose\ndata gaps vs. prompt gaps without guessing.\n\nEbby-admin only. Surfaces internal knobs (Pinecone chunk counts, raw\nprompt-file state, iCal sync status) that school staff don't need to\nsee and that would be confusing as a support surface.","operationId":"school_diagnostic_api_admin_schools__school_id__diagnostic_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/knowledge/sources":{"get":{"tags":["schools"],"summary":"List Knowledge Sources","operationId":"list_knowledge_sources_api_admin_schools__school_id__knowledge_sources_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/knowledge/refresh-source":{"post":{"tags":["schools"],"summary":"Refresh Knowledge Source","description":"Re-scrape a single URL source and replace its knowledge chunks.","operationId":"refresh_knowledge_source_api_admin_schools__school_id__knowledge_refresh_source_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/knowledge/refresh-all":{"post":{"tags":["schools"],"summary":"Refresh All Knowledge","description":"Manually trigger the full weekly refresh pass for this school.\n\nSame code path as the weekly background loop — re-scrapes all URL sources\n(skipping unchanged ones by content hash), discovers new pages from the\nconfigured root URL, auto-ingests them, regenerates AI summaries, and emails\na summary to the school's notify_email.\n\nRuns synchronously so the dashboard can show results immediately.","operationId":"refresh_all_knowledge_api_admin_schools__school_id__knowledge_refresh_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/calendar/sync-now":{"post":{"tags":["schools"],"summary":"Sync Calendar Now","description":"Trigger an immediate iCal sync for this school.\n\nSame code path as the hourly background loop. Returns sync stats so the\ndashboard can show result + updated last-synced timestamp.","operationId":"sync_calendar_now_api_admin_schools__school_id__calendar_sync_now_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/busy-calendar/sync-now":{"post":{"tags":["schools"],"summary":"Sync Busy Calendar Now","description":"Immediate director free/busy sync — the Settings \"Test connection\"\nbutton. Same code path as the hourly loop; returns {status, intervals,\nerror, last_synced_at} so the dashboard confirms the link works without\nwaiting an hour. Requires availability.busy_calendar_url to be saved.","operationId":"sync_busy_calendar_now_api_admin_schools__school_id__busy_calendar_sync_now_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/discover-pages":{"post":{"tags":["schools"],"summary":"Discover Pages Endpoint","description":"Discover navigable pages from a base URL (sitemap or link crawl).","operationId":"discover_pages_endpoint_api_admin_schools__school_id__discover_pages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/site-index":{"put":{"tags":["schools"],"summary":"Update Site Index","description":"Save the curated site_index to school config.","operationId":"update_site_index_api_admin_schools__school_id__site_index_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/ingest":{"post":{"tags":["schools"],"summary":"Trigger Ingestion","operationId":"trigger_ingestion_api_admin_schools__school_id__ingest_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_trigger_ingestion_api_admin_schools__school_id__ingest_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users":{"get":{"tags":["users"],"summary":"List Users","description":"List all users for a school.","operationId":"list_users_api_admin_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserResponse"},"title":"Response List Users Api Admin Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["users"],"summary":"Create User","description":"Add a new user (team member) to a school.","operationId":"create_user_api_admin_users_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}":{"patch":{"tags":["users"],"summary":"Update User","description":"Update a user's role.","operationId":"update_user_api_admin_users__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete User","description":"Remove a user from the platform.","operationId":"delete_user_api_admin_users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/bookings":{"get":{"tags":["admin-bookings"],"summary":"List Bookings","operationId":"list_bookings_api_admin_bookings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"upcoming","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Upcoming"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BookingAdminResponse"},"title":"Response List Bookings Api Admin Bookings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-bookings"],"summary":"Create Booking For Lead","description":"Book on a family's behalf — the phone-call close.\n\nA team member who agrees a time with a family on the phone books it here;\nuntil this endpoint the only creation path was the public widget POST.\nSame slot validation, same notification fan-out (confirmation + staff\nalert, both carrying the .ics invite), same cadence freeze.","operationId":"create_booking_for_lead_api_admin_bookings_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminBookingCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/bookings/{booking_id}":{"delete":{"tags":["admin-bookings"],"summary":"Delete Booking","operationId":"delete_booking_api_admin_bookings__booking_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booking Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-bookings"],"summary":"Update Booking","operationId":"update_booking_api_admin_bookings__booking_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booking Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/bookings/host-availability":{"get":{"tags":["admin-bookings"],"summary":"Host Availability","description":"Each host's open times, side by side — what a caller reads off the\nscreen while a family is on the phone.\n\nReturns one column per host rather than a merged list, because \"who is\nfree on Tuesday\" is the actual question being asked, and because the\ncaller is choosing a PERSON, not just a time.","operationId":"host_availability_api_admin_bookings_host_availability_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"tour","title":"Type"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":60,"default":14,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/events":{"get":{"tags":["admin-events"],"summary":"List Events","operationId":"list_events_api_admin_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"include_past","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Past"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SchoolEventAdminResponse"},"title":"Response List Events Api Admin Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-events"],"summary":"Create Event","operationId":"create_event_api_admin_events_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolEventCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolEventAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/events/{event_id}":{"patch":{"tags":["admin-events"],"summary":"Update Event","operationId":"update_event_api_admin_events__event_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolEventUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolEventAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-events"],"summary":"Delete Event","operationId":"delete_event_api_admin_events__event_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/notifications":{"get":{"tags":["notifications"],"summary":"Get Notifications","description":"Return recent leads + bookings as unified notification items.","operationId":"get_notifications_api_admin_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/import-csv":{"post":{"tags":["growth"],"summary":"Import Stale Leads Csv","description":"Stale-lead CSV import: tolerant parse, dedupe by email, enroll new\nleads in the reactivation cadence (staggered by daily_draft_cap).\ndry_run=true parses and reports detected columns without writing —\nthe import modal shows this preview before the real import.","operationId":"import_stale_leads_csv_api_admin_growth_import_csv_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_stale_leads_csv_api_admin_growth_import_csv_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/queue":{"get":{"tags":["growth"],"summary":"Get Queue","description":"The Follow-ups queue. status filters: draft | approved | sent |\nreplied (sent + replied_at) | skipped | failed | cancelled.","operationId":"get_queue_api_admin_growth_queue_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"cadence_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cadence Key"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/queue/counts":{"get":{"tags":["growth"],"summary":"Get Queue Counts","operationId":"get_queue_counts_api_admin_growth_queue_counts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/messages/{message_id}":{"patch":{"tags":["growth"],"summary":"Edit Message","description":"Edit a draft or approved message (sender reads current content at send\ntime). Sent/cancelled/skipped content is immutable — 409.","operationId":"edit_message_api_admin_growth_messages__message_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/messages/{message_id}/approve":{"post":{"tags":["growth"],"summary":"Approve Message","description":"draft -> approved, or failed -> approved (retry; resets attempts).","operationId":"approve_message_api_admin_growth_messages__message_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/messages/{message_id}/skip":{"post":{"tags":["growth"],"summary":"Skip Message","operationId":"skip_message_api_admin_growth_messages__message_id__skip_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/approve-all":{"post":{"tags":["growth"],"summary":"Approve All","description":"Bulk draft -> approved (the dashboard button; same UPDATE as the\ndigest token path).","operationId":"approve_all_api_admin_growth_approve_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/enrollments":{"get":{"tags":["growth"],"summary":"List Enrollments","operationId":"list_enrollments_api_admin_growth_enrollments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"lead_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/sms-replies":{"get":{"tags":["growth"],"summary":"List Sms Replies","description":"Every text this family has sent back, oldest first — the lead-card\nthread. The authed dashboard is the ONLY surface that shows reply\ncontent; staff notification emails stay first-name-and-link only\n(docs/PRIVACY_RULES.md).","operationId":"list_sms_replies_api_admin_growth_sms_replies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"lead_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/enrollments/{enrollment_id}/stop":{"post":{"tags":["growth"],"summary":"Stop Enrollment","operationId":"stop_enrollment_api_admin_growth_enrollments__enrollment_id__stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Enrollment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/enroll":{"post":{"tags":["growth"],"summary":"Enroll","description":"Manual enrollment (the needs-review completion path).","operationId":"enroll_api_admin_growth_enroll_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/stats":{"get":{"tags":["growth"],"summary":"Get Stats","description":"The Follow-ups hero strip: sent / replies / tours booked from\nfollow-ups (bookings whose lead had a sent follow-up before the booking).","operationId":"get_stats_api_admin_growth_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"since_days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"default":90,"title":"Since Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/cadences":{"get":{"tags":["growth"],"summary":"Get Cadences","description":"Presets merged with school overrides + onboarding facts for the\ndashboard (writes go through the existing school-config PUT).","operationId":"get_cadences_api_admin_growth_cadences_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/inbound-log":{"get":{"tags":["growth"],"summary":"Get Inbound Log","operationId":"get_inbound_log_api_admin_growth_inbound_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"parse_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parse Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/inbound-log/{inbound_id}":{"get":{"tags":["growth"],"summary":"Get Inbound Detail","operationId":"get_inbound_detail_api_admin_growth_inbound_log__inbound_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"inbound_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Inbound Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/growth/cadences/{cadence_key}/steps/{step_index}/test":{"post":{"tags":["growth"],"summary":"Send Test Message","description":"Send one step to an address or number, so somebody can just look at it.\n\nDeliberately skips enrollment, consent, approval and the send window: a\ntest is a message to a person who asked for it a second ago. What it does\nNOT skip is an opt-out — see services/send_test.py.","operationId":"send_test_message_api_admin_growth_cadences__cadence_key__steps__step_index__test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cadence_key","in":"path","required":true,"schema":{"type":"string","title":"Cadence Key"}},{"name":"step_index","in":"path","required":true,"schema":{"type":"integer","title":"Step Index"}},{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email-domain":{"post":{"tags":["email-domain"],"summary":"Create Email Domain","description":"Add the school's domain in Resend (tracking off) and return the DNS\nrecords their IT needs to paste in.","operationId":"create_email_domain_api_admin_schools__school_id__email_domain_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDomainCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["email-domain"],"summary":"Get Email Domain","description":"Live status + records, re-synced from Resend (a verified domain that\nlater degrades flips the resolver back to the platform sender here).","operationId":"get_email_domain_api_admin_schools__school_id__email_domain_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["email-domain"],"summary":"Update Email Domain","description":"Change the From mailbox name (admissions@ -> office@, etc.).\nOnboarding rule: pick an address that actually exists at the school.","operationId":"update_email_domain_api_admin_schools__school_id__email_domain_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDomainUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["email-domain"],"summary":"Delete Email Domain","description":"Remove the domain from Resend and revert to platform sending.","operationId":"delete_email_domain_api_admin_schools__school_id__email_domain_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email-domain/verify":{"post":{"tags":["email-domain"],"summary":"Verify Email Domain","description":"Trigger Resend's async DNS verification, then return the fresh state.","operationId":"verify_email_domain_api_admin_schools__school_id__email_domain_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/email-domain/test":{"post":{"tags":["email-domain"],"summary":"Test Email Domain","description":"Send a test email FROM the school's new address TO the requesting\nadmin. Requires verified status (the resolver's gate is the gate).","operationId":"test_email_domain_api_admin_schools__school_id__email_domain_test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/staff-calendars":{"get":{"tags":["staff-calendars"],"summary":"List Staff Calendars","operationId":"list_staff_calendars_api_admin_staff_calendars_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StaffCalendarResponse"},"title":"Response List Staff Calendars Api Admin Staff Calendars Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["staff-calendars"],"summary":"Create Staff Calendar","operationId":"create_staff_calendar_api_admin_staff_calendars_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffCalendarCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffCalendarResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/staff-calendars/{calendar_id}":{"patch":{"tags":["staff-calendars"],"summary":"Update Staff Calendar","operationId":"update_staff_calendar_api_admin_staff_calendars__calendar_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"calendar_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Calendar Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffCalendarUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffCalendarResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["staff-calendars"],"summary":"Delete Staff Calendar","description":"Remove a host. Their busy blocks cascade; bookings they were taking keep\n`host_name` so past meetings still read correctly.","operationId":"delete_staff_calendar_api_admin_staff_calendars__calendar_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"calendar_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Calendar Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/staff-calendars/providers":{"get":{"tags":["staff-calendars"],"summary":"Connectable Providers","description":"Which Connect buttons the dashboard should enable — driven by whether\nthe server actually holds credentials, so a button never appears live\nbefore it can complete.","operationId":"connectable_providers_api_admin_staff_calendars_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/staff-calendars/connect/start":{"post":{"tags":["staff-calendars"],"summary":"Start Connect","description":"Create the host row, then hand back the provider's consent URL.\n\nThe row exists before the redirect so the signed state can name it, and so\na person who abandons consent leaves a visible \"not connected yet\" row\nrather than nothing at all.","operationId":"start_connect_api_admin_staff_calendars_connect_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/staff-calendars/{calendar_id}/disconnect":{"post":{"tags":["staff-calendars"],"summary":"Disconnect Calendar","description":"Drop stored access and every block it produced, keeping the person.","operationId":"disconnect_calendar_api_admin_staff_calendars__calendar_id__disconnect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"calendar_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Calendar Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffCalendarResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/staff-calendars/{calendar_id}/sync":{"post":{"tags":["staff-calendars"],"summary":"Sync Staff Calendar Now","description":"Test connection / refresh now. Same code path as the hourly loop.","operationId":"sync_staff_calendar_now_api_admin_staff_calendars__calendar_id__sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"calendar_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Calendar Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/crm":{"get":{"tags":["crm"],"summary":"Get Crm Connection","operationId":"get_crm_connection_api_admin_schools__school_id__crm_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["crm"],"summary":"Disconnect Crm","description":"Drop the credential and stop the worker, keeping the row.\n\nThe token is cleared rather than the row deleted, so \"this school was\nconnected on such a date\" survives a disconnect. Notes already written to\nthe customer's CRM are theirs and are untouched.","operationId":"disconnect_crm_api_admin_schools__school_id__crm_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/crm/connect":{"post":{"tags":["crm"],"summary":"Connect Crm","description":"Verify a token, then store it encrypted. Refuses to store a dead one.","operationId":"connect_crm_api_admin_schools__school_id__crm_connect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/crm/verify":{"post":{"tags":["crm"],"summary":"Verify Crm Connection","description":"Re-run the connect-time checks against the stored token.\n\nWorth its own endpoint because a portal changes underneath us: someone\nrenames a picklist value, or deletes the private app, and nothing tells us\nuntil a write quietly stops landing.","operationId":"verify_crm_connection_api_admin_schools__school_id__crm_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/acuity":{"get":{"tags":["crm"],"summary":"Get Acuity Connection","operationId":"get_acuity_connection_api_admin_schools__school_id__acuity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["crm"],"summary":"Disconnect Acuity","description":"Unsubscribe and revoke. Best effort on Acuity's side.\n\nThe row survives as history rather than being deleted, matching how a\nrevoked CRM connection is kept. Webhook removal is scoped to our own\ntarget, because the school's Acuity account may be feeding other tools\nand disconnecting from us must not break one of them.","operationId":"disconnect_acuity_api_admin_schools__school_id__acuity_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/acuity/connect":{"post":{"tags":["crm"],"summary":"Connect Acuity","description":"Verify the credential, store it encrypted, and subscribe their account.\n\nRegistering the webhooks here rather than asking the school to paste a URL\ninto Acuity is the difference between one copy-paste and a settings\nexpedition for an admissions director. It is also what makes the two ends\nagree: the URL carries the school id, and getting it wrong by hand is a\nsilent failure nobody would notice until a family booked.\n\nA dead credential is refused rather than stored. Discovering it weeks\nlater, when a visit is booked and nothing happens, costs a real family.","operationId":"connect_acuity_api_admin_schools__school_id__acuity_connect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcuityConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/pipedrive":{"get":{"tags":["crm"],"summary":"Get Pipedrive Connection","operationId":"get_pipedrive_connection_api_admin_schools__school_id__pipedrive_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["crm"],"summary":"Disconnect Pipedrive","description":"Clear the token and stop writing; keep the row as history.","operationId":"disconnect_pipedrive_api_admin_schools__school_id__pipedrive_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/pipedrive/connect":{"post":{"tags":["crm"],"summary":"Connect Pipedrive","description":"Verify the token against the company, then store it encrypted.\n\nA token that cannot identify itself is refused, not stored. Nothing is\nwritten to Pipedrive until `config.crm.enabled` is also true.","operationId":"connect_pipedrive_api_admin_schools__school_id__pipedrive_connect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipedriveConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/pipedrive/verify":{"post":{"tags":["crm"],"summary":"Verify Pipedrive Connection","operationId":"verify_pipedrive_connection_api_admin_schools__school_id__pipedrive_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/calendar/oauth/google/callback":{"get":{"tags":["calendar-oauth"],"summary":"Google Callback","operationId":"google_callback_api_calendar_oauth_google_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/growth/inbound/resend":{"post":{"tags":["growth-public"],"summary":"Inbound Resend Webhook","operationId":"inbound_resend_webhook_api_growth_inbound_resend_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/growth/inbound/acuity/{school_id}":{"post":{"tags":["growth-public"],"summary":"Inbound Acuity Webhook","description":"One endpoint per school, because Acuity's payload carries nothing that\nidentifies which school it belongs to and we are not going to guess by\ntrying every credential in the table.\n\nPutting the school id in the URL is safe here, and it is worth saying why\nrather than leaving it to be rediscovered: the id is already public (it\nships in the widget snippet on every school's website), so it is not a\nsecret and is not treated as one. What authenticates the request is the\nHMAC, checked against THIS school's own Acuity key. Knowing the id buys an\nattacker nothing without it.\n\nAcuity's own retry behaviour shapes the responses: anything that is not a\nsignature failure returns 200 with a status, because a 500 makes Acuity\nretry and eventually disable the endpoint, and a webhook we cannot act on\nis not a webhook worth retrying.","operationId":"inbound_acuity_webhook_api_growth_inbound_acuity__school_id__post","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/growth/inbound/sms":{"post":{"tags":["growth-public"],"summary":"Inbound Sms Webhook","description":"Twilio posts form-encoded {From, To, Body, MessageSid}. The toll-free\nnumber is shared across pilot schools, so the sender's phone number is\nmatched against leads in Growth-enabled schools (newest first). A reply\nfreezes the cadence and its body is stored in inbound_sms (MessageSid\ndedupe) so the school can read it in the dashboard; STOP language also\nrecords sms_opt_out; staff get a privacy-safe notification (first name +\ndashboard link, no message content) because, unlike email reply-to, a\ntext reply doesn't reach the school on its own.","operationId":"inbound_sms_webhook_api_growth_inbound_sms_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/growth/approve":{"get":{"tags":["growth-public"],"summary":"Approve All Confirm Page","operationId":"approve_all_confirm_page_api_growth_approve_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","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"}}}}}},"post":{"tags":["growth-public"],"summary":"Approve All Submit","operationId":"approve_all_submit_api_growth_approve_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_approve_all_submit_api_growth_approve_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta":{"get":{"tags":["meta"],"summary":"Get Status","operationId":"get_status_api_admin_schools__school_id__meta_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["meta"],"summary":"Disconnect","operationId":"disconnect_api_admin_schools__school_id__meta_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/connect-url":{"get":{"tags":["meta"],"summary":"Connect Url","operationId":"connect_url_api_admin_schools__school_id__meta_connect_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/available":{"get":{"tags":["meta"],"summary":"Available","operationId":"available_api_admin_schools__school_id__meta_available_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/selection":{"post":{"tags":["meta"],"summary":"Save Selection","operationId":"save_selection_api_admin_schools__school_id__meta_selection_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/sync":{"post":{"tags":["meta"],"summary":"Sync Now","operationId":"sync_now_api_admin_schools__school_id__meta_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/summary":{"get":{"tags":["meta"],"summary":"Get Summary","operationId":"get_summary_api_admin_schools__school_id__meta_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/statuses":{"get":{"tags":["meta"],"summary":"Get Statuses","description":"On/off for each campaign and ad, read live from Meta.","operationId":"get_statuses_api_admin_schools__school_id__meta_statuses_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/creatives":{"get":{"tags":["meta"],"summary":"Get Creatives","description":"Each ad's thumbnail, headline and text, read live from Meta.","operationId":"get_creatives_api_admin_schools__school_id__meta_creatives_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/ads/{ad_id}/preview":{"get":{"tags":["meta"],"summary":"Get Ad Preview","operationId":"get_ad_preview_api_admin_schools__school_id__meta_ads__ad_id__preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"MOBILE_FEED_STANDARD","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/pages":{"get":{"tags":["meta"],"summary":"Get Pages","description":"Each connected Page as people know it, with its lead forms.","operationId":"get_pages_api_admin_schools__school_id__meta_pages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/leads":{"get":{"tags":["meta"],"summary":"Get Leads","description":"The most recent Meta leads and what became of each one.","operationId":"get_leads_api_admin_schools__school_id__meta_leads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/status":{"post":{"tags":["meta"],"summary":"Set Status","operationId":"set_status_api_admin_schools__school_id__meta_status_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/meta/changes":{"get":{"tags":["meta"],"summary":"Get Changes","operationId":"get_changes_api_admin_schools__school_id__meta_changes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/meta/oauth/callback":{"get":{"tags":["meta-public"],"summary":"Oauth Callback","operationId":"oauth_callback_api_meta_oauth_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}},{"name":"error_reason","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error Reason"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/meta/webhook":{"get":{"tags":["meta-public"],"summary":"Webhook Verify","operationId":"webhook_verify_api_meta_webhook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["meta-public"],"summary":"Webhook Receive","operationId":"webhook_receive_api_meta_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"summary":"Health Check","description":"Liveness plus the commit actually serving.\n\nThe commit field was added 2026-08-24 after most of an hour went into the\nquestion \"did that fix deploy?\" with no way to answer it: the Railway\ndashboard showed a SHA that did not exist in the repo, the CLI was logged\nout, and the running container had no way to identify itself. Railway sets\nRAILWAY_GIT_COMMIT_SHA on every build, so this makes the answer a one-second\ncurl. Public endpoint, and a commit SHA of a private repo is not a secret.","operationId":"health_check_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/me":{"get":{"summary":"Get Current User Profile","operationId":"get_current_user_profile_api_admin_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}}},"components":{"schemas":{"AcuityConnectRequest":{"properties":{"user_id":{"type":"string","maxLength":32,"minLength":1,"title":"User Id"},"api_key":{"type":"string","minLength":8,"title":"Api Key"}},"type":"object","required":["user_id","api_key"],"title":"AcuityConnectRequest"},"AdminBookingCreateRequest":{"properties":{"lead_id":{"type":"string","format":"uuid","title":"Lead Id"},"type":{"type":"string","title":"Type","default":"tour"},"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"},"host_calendar_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Host Calendar Id"}},"type":"object","required":["lead_id","scheduled_at"],"title":"AdminBookingCreateRequest"},"AdminMessageRequest":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"AdminMessageRequest"},"Body_approve_all_submit_api_growth_approve_post":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"Body_approve_all_submit_api_growth_approve_post"},"Body_import_stale_leads_csv_api_admin_growth_import_csv_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"sms_consent_attested":{"type":"boolean","title":"Sms Consent Attested","default":false},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","required":["file"],"title":"Body_import_stale_leads_csv_api_admin_growth_import_csv_post"},"Body_trigger_ingestion_api_admin_schools__school_id__ingest_post":{"properties":{"urls":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urls"},"replace_all":{"type":"boolean","title":"Replace All","default":false},"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files","default":[]}},"type":"object","title":"Body_trigger_ingestion_api_admin_schools__school_id__ingest_post"},"BookingAdminResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"lead_id":{"type":"string","format":"uuid","title":"Lead Id"},"school_id":{"type":"string","format":"uuid","title":"School Id"},"type":{"type":"string","title":"Type"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"lead":{"anyOf":[{"$ref":"#/components/schemas/BookingLeadSummary"},{"type":"null"}]},"event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Event Id"},"event_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Title"},"host_calendar_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Host Calendar Id"},"host_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Name"}},"type":"object","required":["id","lead_id","school_id","type","scheduled_at","status","created_at","lead"],"title":"BookingAdminResponse"},"BookingCreateRequest":{"properties":{"lead_id":{"type":"string","format":"uuid","title":"Lead Id"},"school_id":{"type":"string","format":"uuid","title":"School Id"},"visitor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Id"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","default":"tour"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"lead_tz":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Tz"},"event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Event Id"}},"type":"object","required":["lead_id","school_id"],"title":"BookingCreateRequest"},"BookingInfo":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","type","scheduled_at","status","created_at"],"title":"BookingInfo"},"BookingLeadSummary":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"children":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Children"},"child_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Child Name"},"grade_interest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade Interest"},"ai_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Brief"}},"type":"object","required":["name","email","phone","children","child_name","grade_interest","ai_brief"],"title":"BookingLeadSummary"},"BookingMixEntry":{"properties":{"type":{"type":"string","title":"Type"},"status":{"type":"string","title":"Status"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["type","status","count"],"title":"BookingMixEntry"},"BookingResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"lead_id":{"type":"string","format":"uuid","title":"Lead Id"},"school_id":{"type":"string","format":"uuid","title":"School Id"},"type":{"type":"string","title":"Type"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Event Id"}},"type":"object","required":["id","lead_id","school_id","type","scheduled_at","status","created_at"],"title":"BookingResponse"},"BookingUpdateRequest":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"BookingUpdateRequest"},"CalendarConnectionView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"provider":{"type":"string","title":"Provider"},"oauth_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Account"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Status"},"sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Error"}},"type":"object","required":["id","label","provider","oauth_account","last_synced_at","sync_status","sync_error"],"title":"CalendarConnectionView"},"ChatMessageRequest":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"ChatMessageRequest"},"ChildEntry":{"properties":{"name":{"type":"string","title":"Name"},"grade":{"type":"string","title":"Grade"}},"type":"object","required":["name","grade"],"title":"ChildEntry"},"CommonPath":{"properties":{"path":{"items":{"type":"string"},"type":"array","title":"Path"},"visitors":{"type":"integer","title":"Visitors"}},"type":"object","required":["path","visitors"],"title":"CommonPath"},"ConnectRequest":{"properties":{"access_token":{"type":"string","minLength":8,"title":"Access Token"},"provider":{"type":"string","title":"Provider","default":"hubspot"}},"type":"object","required":["access_token"],"title":"ConnectRequest"},"ConnectStartRequest":{"properties":{"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"provider":{"type":"string","title":"Provider","default":"google"}},"type":"object","required":["name"],"title":"ConnectStartRequest"},"ConversationCreateRequest":{"properties":{"school_id":{"type":"string","format":"uuid","title":"School Id"},"visitor_id":{"type":"string","title":"Visitor Id"},"page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Url"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},"type":"object","required":["school_id","visitor_id"],"title":"ConversationCreateRequest"},"ConversationCreateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["id"],"title":"ConversationCreateResponse"},"ConversationUpdateRequest":{"properties":{"flow_answers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Flow Answers"},"flow_completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Flow Completed"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Url"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},"type":"object","title":"ConversationUpdateRequest"},"DayCount":{"properties":{"day_of_week":{"type":"integer","title":"Day Of Week"},"day_name":{"type":"string","title":"Day Name"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["day_of_week","day_name","count"],"title":"DayCount"},"DemoProvisionRequest":{"properties":{"website_url":{"type":"string","title":"Website Url"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"founder_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Founder Email"},"grade_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade Range"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"enrollment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enrollment"},"affiliation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliation"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["website_url"],"title":"DemoProvisionRequest","description":"Input for the instant prospect-demo provisioner (ebby_admin only)."},"EmailDomainCreateRequest":{"properties":{"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"from_local":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Local"}},"type":"object","title":"EmailDomainCreateRequest"},"EmailDomainUpdateRequest":{"properties":{"from_local":{"type":"string","title":"From Local"}},"type":"object","required":["from_local"],"title":"EmailDomainUpdateRequest"},"EngagementAlert":{"properties":{"page_path":{"type":"string","title":"Page Path"},"engagement_score":{"type":"number","title":"Engagement Score"},"visitor_count":{"type":"integer","title":"Visitor Count"},"avg_scroll_depth":{"type":"number","title":"Avg Scroll Depth"},"avg_time_on_page_seconds":{"type":"number","title":"Avg Time On Page Seconds"},"recommendation":{"type":"string","title":"Recommendation"}},"type":"object","required":["page_path","engagement_score","visitor_count","avg_scroll_depth","avg_time_on_page_seconds","recommendation"],"title":"EngagementAlert"},"EngagementResponse":{"properties":{"funnel":{"items":{"$ref":"#/components/schemas/InsightsFunnelStep"},"type":"array","title":"Funnel"},"by_day":{"items":{"$ref":"#/components/schemas/DayCount"},"type":"array","title":"By Day"},"by_time_block":{"items":{"$ref":"#/components/schemas/TimeBlockCount"},"type":"array","title":"By Time Block"}},"type":"object","required":["funnel","by_day","by_time_block"],"title":"EngagementResponse"},"EngagementScoreEntry":{"properties":{"page_path":{"type":"string","title":"Page Path"},"avg_time_on_page_seconds":{"type":"number","title":"Avg Time On Page Seconds"},"avg_scroll_depth":{"type":"number","title":"Avg Scroll Depth"},"exit_rate":{"type":"number","title":"Exit Rate"},"engagement_score":{"type":"number","title":"Engagement Score"},"visitor_count":{"type":"integer","title":"Visitor Count"},"sample_size":{"type":"integer","title":"Sample Size"}},"type":"object","required":["page_path","avg_time_on_page_seconds","avg_scroll_depth","exit_rate","engagement_score","visitor_count","sample_size"],"title":"EngagementScoreEntry"},"EngagementScoresResponse":{"properties":{"scores":{"items":{"$ref":"#/components/schemas/EngagementScoreEntry"},"type":"array","title":"Scores"},"alerts":{"items":{"$ref":"#/components/schemas/EngagementAlert"},"type":"array","title":"Alerts"},"computed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Computed At"}},"type":"object","required":["scores","alerts"],"title":"EngagementScoresResponse"},"EnrollRequest":{"properties":{"lead_id":{"type":"string","format":"uuid","title":"Lead Id"},"cadence_key":{"type":"string","title":"Cadence Key"}},"type":"object","required":["lead_id","cadence_key"],"title":"EnrollRequest"},"EventBatchRequest":{"properties":{"school_id":{"type":"string","format":"uuid","title":"School Id"},"events":{"items":{"$ref":"#/components/schemas/EventItem"},"type":"array","title":"Events"}},"type":"object","required":["school_id","events"],"title":"EventBatchRequest"},"EventItem":{"properties":{"visitor_id":{"type":"string","title":"Visitor Id"},"event_type":{"type":"string","title":"Event Type"},"page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Url"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp"}},"type":"object","required":["visitor_id","event_type"],"title":"EventItem"},"FunnelResponse":{"properties":{"stages":{"items":{"$ref":"#/components/schemas/FunnelStage"},"type":"array","title":"Stages"}},"type":"object","required":["stages"],"title":"FunnelResponse"},"FunnelStage":{"properties":{"name":{"type":"string","title":"Name"},"event_type":{"type":"string","title":"Event Type"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["name","event_type","count"],"title":"FunnelStage"},"GradeCount":{"properties":{"grade":{"type":"string","title":"Grade"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["grade","count"],"title":"GradeCount"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InquiryFunnelAction":{"properties":{"action_id":{"type":"string","title":"Action Id"},"kind":{"type":"string","title":"Kind"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"clicks":{"type":"integer","title":"Clicks"},"visitors":{"type":"integer","title":"Visitors"}},"type":"object","required":["action_id","kind","clicks","visitors"],"title":"InquiryFunnelAction"},"InquiryFunnelResponse":{"properties":{"days":{"type":"integer","title":"Days"},"visitors":{"type":"integer","title":"Visitors"},"chat_opened":{"type":"integer","title":"Chat Opened"},"sent_to_form":{"type":"integer","title":"Sent To Form"},"sent_to_form_clicks":{"type":"integer","title":"Sent To Form Clicks"},"form_submitted":{"type":"integer","title":"Form Submitted"},"submitted_after_chat":{"type":"integer","title":"Submitted After Chat"},"by_action":{"items":{"$ref":"#/components/schemas/InquiryFunnelAction"},"type":"array","title":"By Action"},"site_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Host"},"form_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Form Host"},"form_is_off_site":{"type":"boolean","title":"Form Is Off Site","default":false}},"type":"object","required":["days","visitors","chat_opened","sent_to_form","sent_to_form_clicks","form_submitted","submitted_after_chat","by_action"],"title":"InquiryFunnelResponse"},"InquirySignalEntry":{"properties":{"signal_type":{"type":"string","title":"Signal Type"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Url"},"count":{"type":"integer","title":"Count"},"category":{"type":"string","title":"Category","default":"other"},"category_label":{"type":"string","title":"Category Label","default":"Other admissions platform"},"counts_toward_total":{"type":"boolean","title":"Counts Toward Total","default":true}},"type":"object","required":["signal_type","count"],"title":"InquirySignalEntry"},"InquirySignalsResponse":{"properties":{"signals":{"items":{"$ref":"#/components/schemas/InquirySignalEntry"},"type":"array","title":"Signals"},"total_signals":{"type":"integer","title":"Total Signals"},"total_by_type":{"additionalProperties":{"type":"integer"},"type":"object","title":"Total By Type"},"total_by_category":{"additionalProperties":{"type":"integer"},"type":"object","title":"Total By Category","default":{}},"category_labels":{"additionalProperties":{"type":"string"},"type":"object","title":"Category Labels","default":{}},"excluded_categories":{"items":{"type":"string"},"type":"array","title":"Excluded Categories","default":[]},"total_excluded":{"type":"integer","title":"Total Excluded","default":0},"truncated":{"type":"boolean","title":"Truncated","default":false}},"type":"object","required":["signals","total_signals","total_by_type"],"title":"InquirySignalsResponse"},"InsightsFunnelStep":{"properties":{"name":{"type":"string","title":"Name"},"count":{"type":"integer","title":"Count"},"rate_from_previous":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate From Previous"}},"type":"object","required":["name","count","rate_from_previous"],"title":"InsightsFunnelStep"},"LeadCallCreateRequest":{"properties":{"outcome":{"type":"string","title":"Outcome"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"called_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Called At"},"campuses":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Campuses"}},"type":"object","required":["outcome"],"title":"LeadCallCreateRequest"},"LeadCallResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"lead_id":{"type":"string","format":"uuid","title":"Lead Id"},"outcome":{"type":"string","title":"Outcome"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"called_at":{"type":"string","format":"date-time","title":"Called At"},"called_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Called By Name"}},"type":"object","required":["id","lead_id","outcome","note","called_at","called_by_name"],"title":"LeadCallResponse"},"LeadCreateRequest":{"properties":{"school_id":{"type":"string","format":"uuid","title":"School Id"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"},"visitor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"child_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Child Name"},"grade_interest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade Interest"},"children":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChildEntry"},"type":"array"},{"type":"null"}],"title":"Children"},"school_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Url"},"motivations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Motivations"},"timeline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timeline"},"booking_intent":{"type":"boolean","title":"Booking Intent","default":false}},"type":"object","required":["school_id"],"title":"LeadCreateRequest"},"LeadInsightsResponse":{"properties":{"timelines":{"items":{"$ref":"#/components/schemas/TimelineCount"},"type":"array","title":"Timelines"},"readiness":{"items":{"$ref":"#/components/schemas/ReadinessCount"},"type":"array","title":"Readiness"},"booking_mix":{"items":{"$ref":"#/components/schemas/BookingMixEntry"},"type":"array","title":"Booking Mix"},"total_leads":{"type":"integer","title":"Total Leads"},"total_bookings":{"type":"integer","title":"Total Bookings"}},"type":"object","required":["timelines","readiness","booking_mix","total_leads","total_bookings"],"title":"LeadInsightsResponse"},"LeadResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"school_id":{"type":"string","format":"uuid","title":"School Id"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"child_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Child Name"},"grade_interest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade Interest"},"children":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChildEntry"},"type":"array"},{"type":"null"}],"title":"Children"},"motivations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Motivations"},"timeline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timeline"},"readiness":{"type":"string","title":"Readiness"},"extracted_data":{"additionalProperties":true,"type":"object","title":"Extracted Data"},"status":{"type":"string","title":"Status"},"segment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Segment"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"booking":{"anyOf":[{"$ref":"#/components/schemas/BookingInfo"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","school_id","conversation_id","name","email","phone","child_name","grade_interest","children","motivations","timeline","readiness","extracted_data","status","created_at"],"title":"LeadResponse"},"LeadUpdateRequest":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"segment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Segment"},"lost_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lost Reason"},"readiness":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Readiness"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"child_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Child Name"},"grade_interest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade Interest"},"children":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChildEntry"},"type":"array"},{"type":"null"}],"title":"Children"},"timeline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timeline"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"add_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Add Note"},"email_opt_out":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Opt Out"},"sms_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Consent"},"sms_opt_out":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Opt Out"},"campuses":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Campuses"}},"type":"object","title":"LeadUpdateRequest"},"MessageEditRequest":{"properties":{"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"}},"type":"object","title":"MessageEditRequest"},"MotivationCount":{"properties":{"motivation":{"type":"string","title":"Motivation"},"count":{"type":"integer","title":"Count"},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["motivation","count","percentage"],"title":"MotivationCount"},"MotivationsResponse":{"properties":{"motivations":{"items":{"$ref":"#/components/schemas/MotivationCount"},"type":"array","title":"Motivations"},"grade_levels":{"items":{"$ref":"#/components/schemas/GradeCount"},"type":"array","title":"Grade Levels"},"total_completed_flows":{"type":"integer","title":"Total Completed Flows"}},"type":"object","required":["motivations","grade_levels","total_completed_flows"],"title":"MotivationsResponse"},"NotificationItem":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"title":{"type":"string","title":"Title"},"subtitle":{"type":"string","title":"Subtitle"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"}},"type":"object","required":["id","type","title","subtitle","created_at"],"title":"NotificationItem"},"NotificationsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NotificationItem"},"type":"array","title":"Items"},"total_count":{"type":"integer","title":"Total Count"}},"type":"object","required":["items","total_count"],"title":"NotificationsResponse"},"PageFlowResponse":{"properties":{"transitions":{"items":{"$ref":"#/components/schemas/PageTransition"},"type":"array","title":"Transitions"},"entry_pages":{"items":{"$ref":"#/components/schemas/TopEntryPage"},"type":"array","title":"Entry Pages"},"exit_pages":{"items":{"$ref":"#/components/schemas/TopExitPage"},"type":"array","title":"Exit Pages"},"common_paths":{"items":{"$ref":"#/components/schemas/CommonPath"},"type":"array","title":"Common Paths"},"total_sessions":{"type":"integer","title":"Total Sessions"}},"type":"object","required":["transitions","entry_pages","exit_pages","common_paths","total_sessions"],"title":"PageFlowResponse"},"PagePerformance":{"properties":{"page_path":{"type":"string","title":"Page Path"},"visitors":{"type":"integer","title":"Visitors"},"widget_opens":{"type":"integer","title":"Widget Opens"},"conversations":{"type":"integer","title":"Conversations"},"leads":{"type":"integer","title":"Leads"},"bookings":{"type":"integer","title":"Bookings"},"conversion_rate":{"type":"number","title":"Conversion Rate"}},"type":"object","required":["page_path","visitors","widget_opens","conversations","leads","bookings","conversion_rate"],"title":"PagePerformance"},"PagePerformanceResponse":{"properties":{"pages":{"items":{"$ref":"#/components/schemas/PagePerformance"},"type":"array","title":"Pages"},"total_visitors":{"type":"integer","title":"Total Visitors"}},"type":"object","required":["pages","total_visitors"],"title":"PagePerformanceResponse"},"PageTransition":{"properties":{"from_page":{"type":"string","title":"From Page"},"to_page":{"type":"string","title":"To Page"},"visitors":{"type":"integer","title":"Visitors"},"drop_off_rate":{"type":"number","title":"Drop Off Rate"}},"type":"object","required":["from_page","to_page","visitors","drop_off_rate"],"title":"PageTransition"},"PipedriveConnectRequest":{"properties":{"api_token":{"type":"string","minLength":8,"title":"Api Token"},"company_domain":{"type":"string","maxLength":200,"minLength":1,"title":"Company Domain"}},"type":"object","required":["api_token","company_domain"],"title":"PipedriveConnectRequest"},"PreviewChatRequest":{"properties":{"school_id":{"type":"string","format":"uuid","title":"School Id"},"message":{"type":"string","title":"Message"},"messages":{"items":{"$ref":"#/components/schemas/PreviewMessage"},"type":"array","title":"Messages"},"flow_answers":{"additionalProperties":true,"type":"object","title":"Flow Answers"},"page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Url"}},"type":"object","required":["school_id","message"],"title":"PreviewChatRequest"},"PreviewMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"}},"type":"object","required":["role","content"],"title":"PreviewMessage"},"PreviewRequest":{"properties":{"email":{"type":"string","title":"Email"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"sms_consent":{"type":"boolean","title":"Sms Consent","default":false},"form_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Form Name"}},"type":"object","required":["email"],"title":"PreviewRequest"},"ReadinessCount":{"properties":{"readiness":{"type":"string","title":"Readiness"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["readiness","count"],"title":"ReadinessCount"},"RoiResponse":{"properties":{"window_start":{"type":"string","title":"Window Start"},"families_engaged":{"type":"integer","title":"Families Engaged"},"leads":{"type":"integer","title":"Leads"},"bookings":{"type":"integer","title":"Bookings"},"enrolled":{"type":"integer","title":"Enrolled"},"after_hours_pct":{"type":"number","title":"After Hours Pct"},"configured":{"type":"boolean","title":"Configured"},"pipeline_low":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pipeline Low"},"pipeline_estimate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pipeline Estimate"},"roi_multiple":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Roi Multiple"}},"type":"object","required":["window_start","families_engaged","leads","bookings","enrolled","after_hours_pct","configured","pipeline_low","pipeline_estimate","roi_multiple"],"title":"RoiResponse","description":"Dashboard-home ROI hero. Window defaults to school-year-to-date."},"SchoolCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"domain":{"type":"string","title":"Domain"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"config_patch":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config Patch"}},"type":"object","required":["name","domain"],"title":"SchoolCreateRequest"},"SchoolEventAdminResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"school_id":{"type":"string","format":"uuid","title":"School Id"},"event_type":{"type":"string","title":"Event Type"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Url"},"capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capacity"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"registered_count":{"type":"integer","title":"Registered Count"}},"type":"object","required":["id","school_id","event_type","title","description","starts_at","ends_at","location","meeting_url","capacity","is_active","created_at","updated_at","registered_count"],"title":"SchoolEventAdminResponse"},"SchoolEventCreateRequest":{"properties":{"school_id":{"type":"string","format":"uuid","title":"School Id"},"event_type":{"type":"string","title":"Event Type","default":"open_house"},"title":{"type":"string","maxLength":512,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Url"},"capacity":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Capacity"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["school_id","title","starts_at"],"title":"SchoolEventCreateRequest"},"SchoolEventUpdateRequest":{"properties":{"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"title":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Url"},"capacity":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Capacity"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"SchoolEventUpdateRequest"},"SchoolResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"domain":{"type":"string","title":"Domain"},"api_key":{"type":"string","title":"Api Key"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","domain","api_key","config","created_at"],"title":"SchoolResponse"},"SchoolUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"config_patch":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config Patch"}},"type":"object","title":"SchoolUpdateRequest"},"SelectionRequest":{"properties":{"page_ids":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Page Ids"},"ad_account_ids":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Ad Account Ids"}},"type":"object","title":"SelectionRequest"},"SendTestRequest":{"properties":{"to_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Email"},"to_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Phone"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},"type":"object","title":"SendTestRequest"},"SendTextRequest":{"properties":{"body":{"type":"string","title":"Body"}},"type":"object","required":["body"],"title":"SendTextRequest"},"StaffCalendarCreate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"provider":{"type":"string","title":"Provider","default":"ics"},"ics_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ics Url"},"takes_bookings":{"type":"boolean","title":"Takes Bookings","default":true}},"type":"object","required":["name"],"title":"StaffCalendarCreate"},"StaffCalendarResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"school_id":{"type":"string","format":"uuid","title":"School Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"provider":{"type":"string","title":"Provider"},"takes_bookings":{"type":"boolean","title":"Takes Bookings"},"is_active":{"type":"boolean","title":"Is Active"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Status"},"sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Error"},"has_link":{"type":"boolean","title":"Has Link"},"oauth_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Account"},"connected":{"type":"boolean","title":"Connected"},"calendars":{"items":{"$ref":"#/components/schemas/CalendarConnectionView"},"type":"array","title":"Calendars","default":[]}},"type":"object","required":["id","school_id","name","email","provider","takes_bookings","is_active","last_synced_at","sync_status","sync_error","has_link","oauth_account","connected"],"title":"StaffCalendarResponse"},"StaffCalendarUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"ics_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ics Url"},"takes_bookings":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Takes Bookings"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"StaffCalendarUpdate"},"StatusChange":{"properties":{"object_type":{"type":"string","enum":["campaign","ad"],"title":"Object Type"},"object_id":{"type":"string","maxLength":40,"minLength":1,"title":"Object Id"},"status":{"type":"string","enum":["PAUSED","ACTIVE"],"title":"Status"}},"type":"object","required":["object_type","object_id","status"],"title":"StatusChange"},"SummarizeRequest":{"properties":{"conversation_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Conversation Ids"}},"type":"object","required":["conversation_ids"],"title":"SummarizeRequest"},"TimeBlockCount":{"properties":{"block":{"type":"string","title":"Block"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["block","count"],"title":"TimeBlockCount"},"TimelineCount":{"properties":{"timeline":{"type":"string","title":"Timeline"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["timeline","count"],"title":"TimelineCount"},"TopEntryPage":{"properties":{"page_path":{"type":"string","title":"Page Path"},"entries":{"type":"integer","title":"Entries"}},"type":"object","required":["page_path","entries"],"title":"TopEntryPage"},"TopExitPage":{"properties":{"page_path":{"type":"string","title":"Page Path"},"exits":{"type":"integer","title":"Exits"},"exit_rate":{"type":"number","title":"Exit Rate"}},"type":"object","required":["page_path","exits","exit_rate"],"title":"TopExitPage"},"TopQuestion":{"properties":{"question_text":{"type":"string","title":"Question Text"},"conversation_count":{"type":"integer","title":"Conversation Count"},"led_to_lead":{"type":"integer","title":"Led To Lead"},"led_to_booking":{"type":"integer","title":"Led To Booking"}},"type":"object","required":["question_text","conversation_count","led_to_lead","led_to_booking"],"title":"TopQuestion"},"TopQuestionsResponse":{"properties":{"questions":{"items":{"$ref":"#/components/schemas/TopQuestion"},"type":"array","title":"Questions"},"total_conversations":{"type":"integer","title":"Total Conversations"}},"type":"object","required":["questions","total_conversations"],"title":"TopQuestionsResponse"},"TrafficCampaign":{"properties":{"utm_campaign":{"type":"string","title":"Utm Campaign"},"utm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Medium"},"sessions":{"type":"integer","title":"Sessions"}},"type":"object","required":["utm_campaign","sessions"],"title":"TrafficCampaign"},"TrafficSourceEntry":{"properties":{"source_category":{"type":"string","title":"Source Category"},"sessions":{"type":"integer","title":"Sessions"},"leads":{"type":"integer","title":"Leads"},"bookings":{"type":"integer","title":"Bookings"},"conversion_rate":{"type":"number","title":"Conversion Rate"}},"type":"object","required":["source_category","sessions","leads","bookings","conversion_rate"],"title":"TrafficSourceEntry"},"TrafficSourcesResponse":{"properties":{"sources":{"items":{"$ref":"#/components/schemas/TrafficSourceEntry"},"type":"array","title":"Sources"},"campaigns":{"items":{"$ref":"#/components/schemas/TrafficCampaign"},"type":"array","title":"Campaigns"},"total_sessions":{"type":"integer","title":"Total Sessions"}},"type":"object","required":["sources","campaigns","total_sessions"],"title":"TrafficSourcesResponse"},"TrendPoint":{"properties":{"date":{"type":"string","title":"Date"},"conversations":{"type":"integer","title":"Conversations"},"leads":{"type":"integer","title":"Leads"},"bookings":{"type":"integer","title":"Bookings"}},"type":"object","required":["date","conversations","leads","bookings"],"title":"TrendPoint"},"TrendsResponse":{"properties":{"points":{"items":{"$ref":"#/components/schemas/TrendPoint"},"type":"array","title":"Points"},"granularity":{"type":"string","title":"Granularity"}},"type":"object","required":["points","granularity"],"title":"TrendsResponse"},"UserCreateRequest":{"properties":{"school_id":{"type":"string","format":"uuid","title":"School Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role","default":"school_staff"}},"type":"object","required":["school_id","email"],"title":"UserCreateRequest"},"UserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"school_id":{"type":"string","format":"uuid","title":"School Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","school_id","email","role","created_at"],"title":"UserResponse"},"UserUpdateRequest":{"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}},"type":"object","title":"UserUpdateRequest"},"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"},"VisitorLocationEntry":{"properties":{"city":{"type":"string","title":"City"},"region":{"type":"string","title":"Region"},"country":{"type":"string","title":"Country"},"postal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal"},"visitor_count":{"type":"integer","title":"Visitor Count"}},"type":"object","required":["city","region","country","visitor_count"],"title":"VisitorLocationEntry"},"VisitorLocationsResponse":{"properties":{"locations":{"items":{"$ref":"#/components/schemas/VisitorLocationEntry"},"type":"array","title":"Locations"},"total_located_visitors":{"type":"integer","title":"Total Located Visitors"},"group_by":{"type":"string","title":"Group By"}},"type":"object","required":["locations","total_located_visitors","group_by"],"title":"VisitorLocationsResponse"},"WidgetConfigResponse":{"properties":{"school_id":{"type":"string","format":"uuid","title":"School Id"},"school_name":{"type":"string","title":"School Name"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"flow":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Flow"},"funnel_actions":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Funnel Actions"},"languages":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Languages"},"suppressed":{"type":"boolean","title":"Suppressed","default":false}},"type":"object","required":["school_id","school_name","config","flow"],"title":"WidgetConfigResponse"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}