{"openapi":"3.1.0","info":{"title":"RAG Chat API","version":"0.1.0"},"paths":{"/crawl/start":{"post":{"tags":["crawl"],"summary":"Crawl Site","operationId":"crawl_site_crawl_start_post","parameters":[{"name":"site_url","in":"query","required":true,"schema":{"type":"string","title":"Site Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/query/ask":{"get":{"tags":["query"],"summary":"Query","operationId":"query_query_ask_get","parameters":[{"name":"question","in":"query","required":true,"schema":{"type":"string","title":"Question"}},{"name":"user_id","in":"query","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/query/generic/ask":{"get":{"tags":["query"],"summary":"Generic Query","operationId":"generic_query_query_generic_ask_get","parameters":[{"name":"question","in":"query","required":true,"schema":{"type":"string","title":"Question"}},{"name":"user_id","in":"query","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"base_url","in":"query","required":true,"schema":{"type":"string","title":"Base Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/form/submit":{"post":{"tags":["forms"],"summary":"Unified Form Submit","operationId":"unified_form_submit_form_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnifiedForm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/form/appointment":{"post":{"tags":["forms"],"summary":"Submit Appointment Form","operationId":"submit_appointment_form_form_appointment_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentForm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"get":{"tags":["auth"],"summary":"Login","operationId":"login_auth_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/callback":{"get":{"tags":["auth"],"summary":"Callback","operationId":"callback_auth_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/wa/webhook":{"post":{"tags":["whatsapp"],"summary":"Whatsapp Webhook","operationId":"whatsapp_webhook_wa_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AppointmentForm":{"properties":{"user_id":{"type":"string","title":"User Id","example":"user_123"},"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone"},"appointment_date":{"type":"string","title":"Appointment Date"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["user_id","name","phone","appointment_date","reason"],"title":"AppointmentForm"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"UnifiedForm":{"properties":{"formType":{"type":"string","title":"Formtype"},"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"practiceType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practicetype"},"practiceName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practicename"},"concern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Concern"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["formType","user_id","name","phone"],"title":"UnifiedForm"},"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"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}