{"openapi":"3.1.0","info":{"title":"TenantLineBot","version":"0.1.0"},"paths":{"/api/v1/health/live":{"get":{"tags":["health"],"summary":"Liveness","description":"Liveness probe — the process is up. Deliberately checks nothing external.","operationId":"liveness_api_v1_health_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Liveness Api V1 Health Live Get"}}}}}}},"/api/v1/health":{"get":{"tags":["health"],"summary":"Health Check","description":"Readiness probe — reports each dependency and 503s when a required one is down.\n\nDeclared sync so Starlette runs it in its threadpool: the checks below are\nblocking calls that, against an unreachable host, block until the socket timeout.\nOn the event loop that would stall every other request in the worker — which is\nprecisely the outage this endpoint exists to report.","operationId":"health_check_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Check Api V1 Health Get"}}}}}}},"/api/v1/auth/register":{"post":{"tags":["authentication"],"summary":"Register","description":"Register a new organization and admin user.","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["authentication"],"summary":"Login","description":"Authenticate user and return tokens.","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify-email":{"get":{"tags":["authentication"],"summary":"Verify Email","description":"Consume a verification link: stamp email_verified_at and land on login.\n\nSoft verification — login is never gated on it. The stamp is deliverability\nPROOF (the address received, opened, clicked) and the E3 funnel step;\na typo'd signup email is otherwise invisible until the trial emails\nsilently go nowhere. Idempotent: a re-clicked link re-redirects.","operationId":"verify_email_api_v1_auth_verify_email_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/refresh":{"post":{"tags":["authentication"],"summary":"Refresh Token","description":"Refresh access token using refresh token.","operationId":"refresh_token_api_v1_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["authentication"],"summary":"Get Me","description":"Get current authenticated user profile.","operationId":"get_me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/auth/forgot-password":{"post":{"tags":["authentication"],"summary":"Forgot Password","description":"Send a password reset link.\n\nAlways answers 200 with the same body, whether or not the address is registered.\nA 404 here would turn this endpoint into a free membership oracle — an attacker\ncould enumerate which of a leaked address list hold accounts. Inactive users are\ntreated the same way for the same reason.\n\nRate limited per IP: the response is deliberately uninformative, but sending mail\nis not free and this route would otherwise be a usable spam relay against any\naddress the attacker names.","operationId":"forgot_password_api_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Forgot Password Api V1 Auth Forgot Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/reset-password":{"post":{"tags":["authentication"],"summary":"Reset Password","description":"Set a new password using a reset token.\n\nEvery rejection is the same 400 — unknown, expired, replayed, or belonging to a\ndeactivated account — so the response cannot be used to probe which tokens ever\nexisted.","operationId":"reset_password_api_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reset Password Api V1 Auth Reset Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties":{"get":{"tags":["properties"],"summary":"List Properties","description":"List properties for current user's organization.","operationId":"list_properties_api_v1_properties_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PropertyResponse"},"type":"array","title":"Response List Properties Api V1 Properties Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["properties"],"summary":"Create Property","description":"Create a new property (admin only).","operationId":"create_property_api_v1_properties_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/properties/{property_id}":{"get":{"tags":["properties"],"summary":"Get Property","description":"Get property details.","operationId":"get_property_api_v1_properties__property_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["properties"],"summary":"Update Property","description":"Update property details (admin only).","operationId":"update_property_api_v1_properties__property_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["properties"],"summary":"Delete Property","description":"Delete a property (admin only).","operationId":"delete_property_api_v1_properties__property_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/agent-config":{"get":{"tags":["properties"],"summary":"Get Agent Config","description":"Get AI agent configuration for a property.","operationId":"get_agent_config_api_v1_properties__property_id__agent_config_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAgentConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["properties"],"summary":"Update Agent Config","description":"Update AI agent configuration (admin only).","operationId":"update_agent_config_api_v1_properties__property_id__agent_config_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAgentConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAgentConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls/incoming":{"post":{"tags":["calls"],"summary":"Incoming Call","description":"Twilio webhook for incoming calls. Returns TwiML to forward via SIP to LiveKit.","operationId":"incoming_call_api_v1_calls_incoming_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/calls/status":{"post":{"tags":["calls"],"summary":"Call Status","description":"Twilio status callback — updates Call record on status changes.","operationId":"call_status_api_v1_calls_status_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/calls":{"get":{"tags":["calls"],"summary":"List Calls","description":"List calls for the current organization with optional filters.","operationId":"list_calls_api_v1_calls_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(inbound|outbound)$"},{"type":"null"}],"title":"Direction"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(queued|in_progress|completed|transferred|failed|no_answer)$"},{"type":"null"}],"title":"Status"}},{"name":"sentiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(positive|neutral|negative)$"},{"type":"null"}],"title":"Sentiment"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls/{call_id}":{"get":{"tags":["calls"],"summary":"Get Call","description":"Get call detail with transcript.","operationId":"get_call_api_v1_calls__call_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/units":{"get":{"tags":["units"],"summary":"List Units","description":"List units for a property.","operationId":"list_units_api_v1_properties__property_id__units_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UnitResponse"},"title":"Response List Units Api V1 Properties  Property Id  Units Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["units"],"summary":"Create Unit","description":"Create a unit (admin only).","operationId":"create_unit_api_v1_properties__property_id__units_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/units/{unit_id}":{"get":{"tags":["units"],"summary":"Get Unit","description":"Get a specific unit.","operationId":"get_unit_api_v1_properties__property_id__units__unit_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"unit_id","in":"path","required":true,"schema":{"type":"integer","title":"Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["units"],"summary":"Update Unit","description":"Update a unit (admin only).","operationId":"update_unit_api_v1_properties__property_id__units__unit_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"unit_id","in":"path","required":true,"schema":{"type":"integer","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["units"],"summary":"Delete Unit","description":"Delete a unit (admin only).","operationId":"delete_unit_api_v1_properties__property_id__units__unit_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"unit_id","in":"path","required":true,"schema":{"type":"integer","title":"Unit Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/policies":{"get":{"tags":["property-config"],"summary":"Get Policies","description":"Get property policies.","operationId":"get_policies_api_v1_properties__property_id__policies_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PolicyResponse"},{"type":"null"}],"title":"Response Get Policies Api V1 Properties  Property Id  Policies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["property-config"],"summary":"Update Policies","description":"Update property policies (admin only). Creates if not exists.","operationId":"update_policies_api_v1_properties__property_id__policies_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/specials":{"get":{"tags":["property-config"],"summary":"List Specials","description":"List property specials.","operationId":"list_specials_api_v1_properties__property_id__specials_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpecialResponse"},"title":"Response List Specials Api V1 Properties  Property Id  Specials Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["property-config"],"summary":"Create Special","description":"Create a property special (admin only).","operationId":"create_special_api_v1_properties__property_id__specials_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecialCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/specials/{special_id}":{"put":{"tags":["property-config"],"summary":"Update Special","description":"Update a property special (admin only).","operationId":"update_special_api_v1_properties__property_id__specials__special_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"special_id","in":"path","required":true,"schema":{"type":"integer","title":"Special Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecialUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["property-config"],"summary":"Delete Special","description":"Delete a property special (admin only).","operationId":"delete_special_api_v1_properties__property_id__specials__special_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"special_id","in":"path","required":true,"schema":{"type":"integer","title":"Special Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/amenities":{"get":{"tags":["property-config"],"summary":"List Amenities","description":"List property amenities.","operationId":"list_amenities_api_v1_properties__property_id__amenities_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AmenityResponse"},"title":"Response List Amenities Api V1 Properties  Property Id  Amenities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["property-config"],"summary":"Create Amenity","description":"Create a property amenity (admin only).","operationId":"create_amenity_api_v1_properties__property_id__amenities_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmenityCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmenityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/amenities/{amenity_id}":{"put":{"tags":["property-config"],"summary":"Update Amenity","description":"Update a property amenity (admin only).","operationId":"update_amenity_api_v1_properties__property_id__amenities__amenity_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"amenity_id","in":"path","required":true,"schema":{"type":"integer","title":"Amenity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmenityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmenityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["property-config"],"summary":"Delete Amenity","description":"Delete a property amenity (admin only).","operationId":"delete_amenity_api_v1_properties__property_id__amenities__amenity_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"amenity_id","in":"path","required":true,"schema":{"type":"integer","title":"Amenity Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/faqs":{"get":{"tags":["property-config"],"summary":"List Faqs","description":"List property FAQs.","operationId":"list_faqs_api_v1_properties__property_id__faqs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaqResponse"},"title":"Response List Faqs Api V1 Properties  Property Id  Faqs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["property-config"],"summary":"Create Faq","description":"Create a property FAQ (admin only).","operationId":"create_faq_api_v1_properties__property_id__faqs_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaqCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaqResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/faqs/{faq_id}":{"put":{"tags":["property-config"],"summary":"Update Faq","description":"Update a property FAQ (admin only).","operationId":"update_faq_api_v1_properties__property_id__faqs__faq_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"faq_id","in":"path","required":true,"schema":{"type":"integer","title":"Faq Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaqUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaqResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["property-config"],"summary":"Delete Faq","description":"Delete a property FAQ (admin only).","operationId":"delete_faq_api_v1_properties__property_id__faqs__faq_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"faq_id","in":"path","required":true,"schema":{"type":"integer","title":"Faq Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users":{"get":{"tags":["users"],"summary":"List Users","description":"List users in current organization (paginated).","operationId":"list_users_api_v1_users_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["users"],"summary":"Create User","description":"Create a user in current organization (admin only).","operationId":"create_user_api_v1_users_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"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/v1/users/{user_id}":{"get":{"tags":["users"],"summary":"Get User","description":"Get a user (org-scoped).","operationId":"get_user_api_v1_users__user_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"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"}}}}}},"put":{"tags":["users"],"summary":"Update User","description":"Update a user. Admins can update any user in org. Non-admins can only update themselves (limited fields).","operationId":"update_user_api_v1_users__user_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"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":"Soft-delete a user (admin only). Sets is_active=False.","operationId":"delete_user_api_v1_users__user_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/revoke-sessions":{"post":{"tags":["users"],"summary":"Revoke Sessions","description":"Sign this user out everywhere, immediately.\n\nThe mechanism existed — `tokens_valid_from`, checked on every request — and\nnothing could trigger it except a password reset. So the answer to \"someone\nleft their laptop on a train\" was either deactivate the account (which also\nstops them working) or force a password reset through their email (which\nneeds them to still have access to it).\n\nAdmins may revoke anyone in their organization; anyone may revoke\nthemselves, which is the \"sign out of all devices\" every product has and\nthe one people actually reach for.\n\nTakes effect on the next request rather than the next login: a live access\ntoken issued before this instant stops being accepted, which is the whole\npoint.","operationId":"revoke_sessions_api_v1_users__user_id__revoke_sessions_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads":{"get":{"tags":["leads"],"summary":"List Leads","description":"List leads (org-scoped, paginated, filterable).","operationId":"list_leads_api_v1_leads_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads/export":{"get":{"tags":["leads"],"summary":"Export Leads","description":"Export leads as CSV (admin only).","operationId":"export_leads_api_v1_leads_export_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads/{lead_id}":{"get":{"tags":["leads"],"summary":"Get Lead","description":"Get a single lead (org-scoped).","operationId":"get_lead_api_v1_leads__lead_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","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"}}}}}},"put":{"tags":["leads"],"summary":"Update Lead","description":"Update a lead (org-scoped).","operationId":"update_lead_api_v1_leads__lead_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadUpdate"}}}},"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/v1/leads/{lead_id}/add-to-waitlist":{"post":{"tags":["leads"],"summary":"Add Lead To Waitlist","description":"Add a lead to the waitlist (admin only).","operationId":"add_lead_to_waitlist_api_v1_leads__lead_id__add_to_waitlist_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Lead To Waitlist Api V1 Leads  Lead Id  Add To Waitlist Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tours":{"get":{"tags":["tours"],"summary":"List Tours","description":"List tours (org-scoped, paginated).","operationId":"list_tours_api_v1_tours_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tours"],"summary":"Create Tour","description":"Create a tour. Generates cancel token, creates calendar event, updates lead status.","operationId":"create_tour_api_v1_tours_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tours/{tour_id}":{"get":{"tags":["tours"],"summary":"Get Tour","description":"Get a single tour (org-scoped).","operationId":"get_tour_api_v1_tours__tour_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"tour_id","in":"path","required":true,"schema":{"type":"integer","title":"Tour Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tours"],"summary":"Update Tour","description":"Update a tour (admin only). Syncs calendar if date/time changed.","operationId":"update_tour_api_v1_tours__tour_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"tour_id","in":"path","required":true,"schema":{"type":"integer","title":"Tour Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tours"],"summary":"Delete Tour","description":"Cancel a tour (admin only). Deletes calendar event.","operationId":"delete_tour_api_v1_tours__tour_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"tour_id","in":"path","required":true,"schema":{"type":"integer","title":"Tour Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tours/{tour_id}/outcome":{"post":{"tags":["tours"],"summary":"Record Tour Outcome","description":"Record whether the prospect turned up. Leasing agents included.","operationId":"record_tour_outcome_api_v1_tours__tour_id__outcome_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"tour_id","in":"path","required":true,"schema":{"type":"integer","title":"Tour Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourOutcome"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/availability":{"get":{"tags":["tours"],"summary":"Get Availability","description":"Get available tour slots for a property.","operationId":"get_availability_api_v1_properties__property_id__availability_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"duration_minutes","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Duration Minutes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tours/cancel/{cancel_token}":{"get":{"tags":["tours"],"summary":"Cancel Tour Page","description":"The page behind the \"Cancel Tour\" link in tour emails. Renders only.","operationId":"cancel_tour_page_api_v1_tours_cancel__cancel_token__get","parameters":[{"name":"cancel_token","in":"path","required":true,"schema":{"type":"string","title":"Cancel 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":["tours"],"summary":"Cancel Tour By Token","description":"Cancel a tour using cancel token (public, no auth required).","operationId":"cancel_tour_by_token_api_v1_tours_cancel__cancel_token__post","parameters":[{"name":"cancel_token","in":"path","required":true,"schema":{"type":"string","title":"Cancel Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourCancelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Tour By Token Api V1 Tours Cancel  Cancel Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tours/reschedule/{cancel_token}":{"get":{"tags":["tours"],"summary":"Reschedule Tour Page","description":"The page behind the \"Reschedule Tour\" link in tour emails. Renders only.","operationId":"reschedule_tour_page_api_v1_tours_reschedule__cancel_token__get","parameters":[{"name":"cancel_token","in":"path","required":true,"schema":{"type":"string","title":"Cancel 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":["tours"],"summary":"Reschedule Tour By Token","description":"Reschedule a tour using cancel token (public, no auth required).","operationId":"reschedule_tour_by_token_api_v1_tours_reschedule__cancel_token__post","parameters":[{"name":"cancel_token","in":"path","required":true,"schema":{"type":"string","title":"Cancel Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourRescheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reschedule Tour By Token Api V1 Tours Reschedule  Cancel Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tours/confirm/{cancel_token}":{"get":{"tags":["tours"],"summary":"Confirm Tour Page","description":"The page behind the \"Confirm\" link in tour emails. Renders only.\n\nGET never confirms, for the same reason it never cancels: mail scanners\nprefetch links, and a prefetch that confirmed a tour would put a\n\"confirmed\" on the record that the prospect never gave — which is worse\nthan no confirmation at all, because the leasing office would rely on it.","operationId":"confirm_tour_page_api_v1_tours_confirm__cancel_token__get","parameters":[{"name":"cancel_token","in":"path","required":true,"schema":{"type":"string","title":"Cancel 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":["tours"],"summary":"Confirm Tour By Token","description":"Confirm a tour using its token (public, no auth required).\n\n`confirmed` was a declared status with no producer: the CHECK constraint\nallowed it, `/availability` treated it as occupying a slot, and the partial\nunique index counted it as live — but nothing in the system could ever set\nit, so the state was unreachable and \"has this prospect confirmed?\" was a\nquestion the schema posed and could not answer.\n\nReuses `cancel_token` rather than minting a second secret. It is already the\ncapability for the more destructive action on this tour, so a separate token\nwould add a credential without adding a restriction.","operationId":"confirm_tour_by_token_api_v1_tours_confirm__cancel_token__post","parameters":[{"name":"cancel_token","in":"path","required":true,"schema":{"type":"string","title":"Cancel Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Tour By Token Api V1 Tours Confirm  Cancel Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/callbacks":{"get":{"tags":["callbacks"],"summary":"List Callbacks","description":"The queue. Open first and oldest first, which is the order to work it in.","operationId":"list_callbacks_api_v1_callbacks_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["open","contacted","closed","cancelled"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CallbackResponse"},"title":"Response List Callbacks Api V1 Callbacks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/callbacks/{callback_id}":{"get":{"tags":["callbacks"],"summary":"Get Callback","operationId":"get_callback_api_v1_callbacks__callback_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"callback_id","in":"path","required":true,"schema":{"type":"integer","title":"Callback Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["callbacks"],"summary":"Update Callback","description":"Work an item. Any authenticated staff member may: whoever rings back is\nwho closes it, and that is not always an admin.","operationId":"update_callback_api_v1_callbacks__callback_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"callback_id","in":"path","required":true,"schema":{"type":"integer","title":"Callback Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCallbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/calendar/status":{"get":{"tags":["calendar-integration"],"summary":"Get Calendar Status","description":"Three separate facts, deliberately not collapsed into one.","operationId":"get_calendar_status_api_v1_integrations_calendar_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Calendar Status Api V1 Integrations Calendar Status Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/integrations/calendar/connect":{"post":{"tags":["calendar-integration"],"summary":"Connect Calendar","description":"Start the OAuth flow. Returns the URL to send the admin's browser to.","operationId":"connect_calendar_api_v1_integrations_calendar_connect_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"type":"string","default":"google","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Connect Calendar Api V1 Integrations Calendar Connect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/calendar/callback":{"get":{"tags":["calendar-integration"],"summary":"Calendar Callback","description":"Exchange the authorization code for a refresh token and store it.\n\nWhat is stored is the refresh token, never the access token: an access token\nlasts an hour, so storing one would give a calendar that works immediately\nafter connecting and then stops, which is the failure nobody catches because\nthe demo passes.","operationId":"calendar_callback_api_v1_integrations_calendar_callback_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Calendar Callback Api V1 Integrations Calendar Callback Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/calendar/disconnect":{"delete":{"tags":["calendar-integration"],"summary":"Disconnect Calendar","description":"Stop mirroring. Existing calendar events are left where they are.\n\nDeleting them would be a surprise: the leasing office's own calendar is\ntheirs, and a disconnect is not a request to erase appointments they may\nstill be relying on.","operationId":"disconnect_calendar_api_v1_integrations_calendar_disconnect_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Disconnect Calendar Api V1 Integrations Calendar Disconnect Delete"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","description":"List in-app notifications for current user (paginated).","operationId":"list_notifications_api_v1_notifications_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/{notification_id}/read":{"put":{"tags":["notifications"],"summary":"Mark Notification Read","description":"Mark a notification as read.","operationId":"mark_notification_read_api_v1_notifications__notification_id__read_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"integer","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Notification Read Api V1 Notifications  Notification Id  Read Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/preferences":{"get":{"tags":["notifications"],"summary":"Get Preferences","description":"Get notification preferences for current user.","operationId":"get_preferences_api_v1_notifications_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotificationPreferenceResponse"},{"type":"null"}],"title":"Response Get Preferences Api V1 Notifications Preferences Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"put":{"tags":["notifications"],"summary":"Update Preferences","description":"Update notification preferences for current user.","operationId":"update_preferences_api_v1_notifications_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPreferenceUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPreferenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/notifications/devices":{"get":{"tags":["notifications"],"summary":"List Devices","description":"List device tokens for current user.","operationId":"list_devices_api_v1_notifications_devices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DeviceTokenResponse"},"type":"array","title":"Response List Devices Api V1 Notifications Devices Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/notifications/devices/register":{"post":{"tags":["notifications"],"summary":"Register Device","description":"Register a device token for push notifications.","operationId":"register_device_api_v1_notifications_devices_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceTokenRegister"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/notifications/devices/{token}":{"delete":{"tags":["notifications"],"summary":"Unregister Device","description":"Unregister a device token.","operationId":"unregister_device_api_v1_notifications_devices__token__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/waitlist":{"get":{"tags":["waitlist"],"summary":"List Waitlist","description":"List waitlist entries (org-scoped, paginated).","operationId":"list_waitlist_api_v1_waitlist_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["waitlist"],"summary":"Create Waitlist Entry","description":"Add entry to waitlist (admin only).","operationId":"create_waitlist_entry_api_v1_waitlist_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/waitlist/{entry_id}":{"put":{"tags":["waitlist"],"summary":"Update Waitlist Entry","description":"Update waitlist entry (admin only).","operationId":"update_waitlist_entry_api_v1_waitlist__entry_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["waitlist"],"summary":"Delete Waitlist Entry","description":"Remove waitlist entry (admin only, sets status=removed).","operationId":"delete_waitlist_entry_api_v1_waitlist__entry_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/waitlist/{entry_id}/notify":{"post":{"tags":["waitlist"],"summary":"Notify Waitlist Entry","description":"Notify a waitlist entry that a unit is available (admin only).","operationId":"notify_waitlist_entry_api_v1_waitlist__entry_id__notify_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Notify Waitlist Entry Api V1 Waitlist  Entry Id  Notify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/do-not-call":{"get":{"tags":["do-not-call"],"summary":"List Do Not Call","description":"List do-not-call entries (org-scoped, paginated).","operationId":"list_do_not_call_api_v1_do_not_call_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoNotCallListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["do-not-call"],"summary":"Add To Do Not Call","description":"Add a phone number to the do-not-call list (admin only).","operationId":"add_to_do_not_call_api_v1_do_not_call_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoNotCallCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoNotCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/do-not-call/{entry_id}":{"delete":{"tags":["do-not-call"],"summary":"Remove From Do Not Call","description":"Remove a phone number from the do-not-call list (admin only, hard delete).","operationId":"remove_from_do_not_call_api_v1_do_not_call__entry_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent":{"post":{"tags":["consent"],"summary":"Create Consent","description":"Create a new consent record (admin only).","operationId":"create_consent_api_v1_consent_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["consent"],"summary":"List Consents","description":"List consent records (org-scoped, filterable).","operationId":"list_consents_api_v1_consent_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"phone","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},{"name":"consent_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/retention-policy":{"get":{"tags":["consent"],"summary":"Get Retention Policy","description":"How long recordings and transcripts are kept.\n\nRetention existed only as two deployment-wide environment variables read by\na nightly sweep. Nothing exposed them, so \"how long do you keep my\nrecordings?\" — a question a prospect can ask on a recorded call, and one a\nproperty admin is answerable for — could only be settled by reading a `.env`\non the host.\n\n**Deployment-wide, not per property**, and the response says so rather than\nletting a per-property screen imply otherwise. Whether a tenant should be\nable to set its own period is a real product question (different customers\nplausibly carry different obligations) and is recorded on TBX-4419 rather\nthan guessed at here.\n\nRead-only on purpose. The period is a legal determination counsel makes, not\na field an admin should be able to shorten on a Friday afternoon — and\nshortening it destroys evidence that a complaint may later depend on.\n\nBoth default to 0, which means **retention is disabled and nothing is ever\nswept**. That is the state most deployments are actually in, so the response\nreports it as a distinct fact rather than as \"0 days\".","operationId":"get_retention_policy_api_v1_consent_retention_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionPolicyResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/consent/{consent_id}":{"get":{"tags":["consent"],"summary":"Get Consent","description":"Get a single consent record (org-scoped).","operationId":"get_consent_api_v1_consent__consent_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"consent_id","in":"path","required":true,"schema":{"type":"integer","title":"Consent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/{consent_id}/revoke":{"put":{"tags":["consent"],"summary":"Revoke Consent","description":"Revoke a consent record (admin only).","operationId":"revoke_consent_api_v1_consent__consent_id__revoke_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"consent_id","in":"path","required":true,"schema":{"type":"integer","title":"Consent Id"}},{"name":"revoke_method","in":"query","required":false,"schema":{"type":"string","default":"admin_revoke","title":"Revoke Method"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent/verify":{"post":{"tags":["consent"],"summary":"Verify Consent","description":"Verify consent for a phone number + type.","operationId":"verify_consent_api_v1_consent_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/consent/phone/{phone}":{"get":{"tags":["consent"],"summary":"Get Consents By Phone","description":"Get all consent records for a phone number (admin only).","operationId":"get_consents_by_phone_api_v1_consent_phone__phone__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"phone","in":"path","required":true,"schema":{"type":"string","title":"Phone"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sms/incoming":{"post":{"tags":["sms"],"summary":"Sms Incoming","description":"Twilio SMS webhook (unauthenticated, signature-validated).","operationId":"sms_incoming_api_v1_sms_incoming_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/sms/status":{"post":{"tags":["sms"],"summary":"Sms Status","description":"Twilio message status callback — what became of an SMS we sent.\n\nTwilio accepting a message means `queued`. Whether it reached the handset is\nreported here, and nothing consumed it before: a NotificationLog row said\n\"sent\" whether the message arrived, hit a landline, or was blocked by the\ncarrier — and several callers treat \"sent\" as final, so a waitlist entry\nnotified by an undeliverable SMS was never notified again.\n\nSignature-validated like every other Twilio-facing route (pass 53): a forged\nevent could mark a failed message delivered, which is worse than not knowing.","operationId":"sms_status_api_v1_sms_status_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/sms/conversations":{"get":{"tags":["sms"],"summary":"List Conversations","description":"List SMS conversations (org-scoped, paginated).","operationId":"list_conversations_api_v1_sms_conversations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsConversationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sms/conversations/{conversation_id}":{"get":{"tags":["sms"],"summary":"Get Conversation","description":"Get SMS conversation with messages (org-scoped).","operationId":"get_conversation_api_v1_sms_conversations__conversation_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsConversationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sms/conversations/{conversation_id}/close":{"put":{"tags":["sms"],"summary":"Close Conversation","description":"Close an SMS conversation (admin only).","operationId":"close_conversation_api_v1_sms_conversations__conversation_id__close_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Close Conversation Api V1 Sms Conversations  Conversation Id  Close Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sms/send":{"post":{"tags":["sms"],"summary":"Send Sms","description":"Send a manual SMS (admin only, consent-verified).","operationId":"send_sms_api_v1_sms_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsSendRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Send Sms Api V1 Sms Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/outbound-calls/amd-callback":{"post":{"tags":["outbound-calls"],"summary":"Amd Callback","description":"Twilio AMD callback (transitional — kept for in-flight calls during migration).","operationId":"amd_callback_api_v1_outbound_calls_amd_callback_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/outbound-calls/initiate":{"post":{"tags":["outbound-calls"],"summary":"Initiate Outbound Call","description":"Manually initiate an outbound call (admin only, consent-verified).\n\nDeclared sync deliberately: initiate_call dials LiveKit through blocking I/O, so\nStarlette must run this in its threadpool. As an async def it blocked the event\nloop for the whole duration of the SIP call setup.","operationId":"initiate_outbound_call_api_v1_outbound_calls_initiate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundCallRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/outbound-calls/pending":{"get":{"tags":["outbound-calls"],"summary":"List Pending Outbound","description":"List queued outbound calls (admin only).","operationId":"list_pending_outbound_api_v1_outbound_calls_pending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOutboundCallListResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/web-chat/sessions":{"post":{"tags":["web-chat"],"summary":"Create Session","description":"Create a new web chat session (unauthenticated, for visitors).","operationId":"create_session_api_v1_web_chat_sessions_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebChatSessionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebChatSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["web-chat"],"summary":"List Sessions","description":"List web chat sessions (org-scoped, paginated).","operationId":"list_sessions_api_v1_web_chat_sessions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebChatSessionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web-chat/sessions/{session_id}":{"get":{"tags":["web-chat"],"summary":"Get Session","description":"Get web chat session with messages (org-scoped).","operationId":"get_session_api_v1_web_chat_sessions__session_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebChatSessionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web-chat/sessions/{session_id}/close":{"put":{"tags":["web-chat"],"summary":"Close Session","description":"Close a web chat session.","operationId":"close_session_api_v1_web_chat_sessions__session_id__close_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Close Session Api V1 Web Chat Sessions  Session Id  Close Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/create-checkout-session":{"post":{"tags":["billing"],"summary":"Create Checkout Session","description":"Create a Stripe Checkout session for subscription signup.","operationId":"create_checkout_session_api_v1_billing_create_checkout_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/billing/portal-session":{"post":{"tags":["billing"],"summary":"Create Portal Session","description":"Create a Stripe Customer Portal session.","operationId":"create_portal_session_api_v1_billing_portal_session_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"return_url","in":"query","required":true,"schema":{"type":"string","maxLength":2000,"title":"Return Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/subscription/change-plan":{"post":{"tags":["billing"],"summary":"Change Plan","description":"Change subscription plan (admin only, with proration).","operationId":"change_plan_api_v1_billing_subscription_change_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/billing/subscription":{"get":{"tags":["billing"],"summary":"Get Subscription Status","description":"Get current subscription status.","operationId":"get_subscription_status_api_v1_billing_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStatusResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/billing/entitlement":{"get":{"tags":["billing"],"summary":"Get Entitlement","description":"The org's current access state, for the dashboard paywall/banner. Any signed-in\nuser may read it (it drives their own UI); it exposes no billing detail.","operationId":"get_entitlement_api_v1_billing_entitlement_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitlementResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/billing/subscription/cancel":{"post":{"tags":["billing"],"summary":"Cancel Subscription","description":"Cancel subscription (admin only).","operationId":"cancel_subscription_api_v1_billing_subscription_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelSubscriptionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelSubscriptionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/billing/payment-methods":{"get":{"tags":["billing"],"summary":"List Payment Methods","description":"List payment methods (admin only).","operationId":"list_payment_methods_api_v1_billing_payment_methods_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodListResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/billing/payment-methods/default":{"post":{"tags":["billing"],"summary":"Set Default Payment Method","description":"Set default payment method (admin only).","operationId":"set_default_payment_method_api_v1_billing_payment_methods_default_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDefaultPaymentMethodRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDefaultPaymentMethodResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/billing/invoices":{"get":{"tags":["billing"],"summary":"List Invoices","description":"List billing history / invoices (admin only).","operationId":"list_invoices_api_v1_billing_invoices_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/webhook":{"post":{"tags":["billing"],"summary":"Stripe Webhook","description":"Stripe webhook endpoint (unauthenticated, signature-validated).","operationId":"stripe_webhook_api_v1_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/usage/current":{"get":{"tags":["usage"],"summary":"Get Current Usage","description":"Get current period usage vs plan limits.","operationId":"get_current_usage_api_v1_usage_current_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageSummaryResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/usage/history":{"get":{"tags":["usage"],"summary":"Get Usage History","description":"Get usage history by billing period (admin only).","operationId":"get_usage_history_api_v1_usage_history_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":24,"minimum":1,"default":12,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onboarding/organization":{"post":{"tags":["onboarding"],"summary":"Create Organization","description":"Step 1: Create organization and admin user (unauthenticated).","operationId":"create_organization_api_v1_onboarding_organization_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingOrgRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Organization Api V1 Onboarding Organization Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onboarding/plan":{"post":{"tags":["onboarding"],"summary":"Select Plan","description":"Step 2: Select plan and initiate billing.","operationId":"select_plan_api_v1_onboarding_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingPlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Select Plan Api V1 Onboarding Plan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/onboarding/property":{"post":{"tags":["onboarding"],"summary":"Create Property","description":"Step 3: Create first property.","operationId":"create_property_api_v1_onboarding_property_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingPropertyRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Property Api V1 Onboarding Property Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/onboarding/phone-number":{"post":{"tags":["onboarding"],"summary":"Provision Phone Number","description":"Step 4: Provision a Twilio phone number for a property.","operationId":"provision_phone_number_api_v1_onboarding_phone_number_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingPhoneRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Provision Phone Number Api V1 Onboarding Phone Number Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/onboarding/ai-config":{"post":{"tags":["onboarding"],"summary":"Configure Ai","description":"Step 5: Configure AI agent for a property.","operationId":"configure_ai_api_v1_onboarding_ai_config_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingAiConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Configure Ai Api V1 Onboarding Ai Config Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/onboarding/available-numbers":{"get":{"tags":["onboarding"],"summary":"List Available Numbers","description":"List available Twilio phone numbers by area code.","operationId":"list_available_numbers_api_v1_onboarding_available_numbers_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"area_code","in":"query","required":true,"schema":{"type":"string","maxLength":3,"title":"Area Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailableNumberResponse"},"title":"Response List Available Numbers Api V1 Onboarding Available Numbers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onboarding/status":{"get":{"tags":["onboarding"],"summary":"Onboarding Status","description":"Get onboarding completion status.","operationId":"onboarding_status_api_v1_onboarding_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatusResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/plans":{"get":{"tags":["plans"],"summary":"List Plans","description":"List all public subscription plans with features (no auth required).","operationId":"list_plans_api_v1_plans_get","parameters":[{"name":"context","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Context"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plans/{plan_code}":{"get":{"tags":["plans"],"summary":"Get Plan","description":"Get a single plan with features (no auth required).","operationId":"get_plan_api_v1_plans__plan_code__get","parameters":[{"name":"plan_code","in":"path","required":true,"schema":{"type":"string","title":"Plan Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/training/feedback":{"get":{"tags":["training"],"summary":"List Feedback","description":"List conversation feedback (org-scoped).","operationId":"list_feedback_api_v1_training_feedback_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"call_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Id"}},{"name":"rating","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rating"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["training"],"summary":"Create Feedback","description":"Submit feedback on an AI conversation response.","operationId":"create_feedback_api_v1_training_feedback_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/training/feedback/{feedback_id}":{"get":{"tags":["training"],"summary":"Get Feedback","description":"Get a single feedback record (org-scoped).","operationId":"get_feedback_api_v1_training_feedback__feedback_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"integer","title":"Feedback Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/training/examples":{"get":{"tags":["training"],"summary":"List Examples","description":"List training examples (org-scoped).","operationId":"list_examples_api_v1_training_examples_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingExampleListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["training"],"summary":"Create Example","description":"Create a training example (admin only).","operationId":"create_example_api_v1_training_examples_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingExampleCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingExampleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/training/examples/{example_id}":{"put":{"tags":["training"],"summary":"Update Example","description":"Update a training example (admin only, org-scoped).","operationId":"update_example_api_v1_training_examples__example_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"example_id","in":"path","required":true,"schema":{"type":"integer","title":"Example Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingExampleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingExampleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["training"],"summary":"Delete Example","description":"Delete a training example (admin only, org-scoped).","operationId":"delete_example_api_v1_training_examples__example_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"example_id","in":"path","required":true,"schema":{"type":"integer","title":"Example Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/training/prompts":{"get":{"tags":["training"],"summary":"List Prompts","description":"List prompt templates (org-scoped).","operationId":"list_prompts_api_v1_training_prompts_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptTemplateListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["training"],"summary":"Create Prompt","description":"Create a prompt template (admin only).","operationId":"create_prompt_api_v1_training_prompts_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptTemplateCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/training/prompts/{prompt_id}":{"put":{"tags":["training"],"summary":"Update Prompt","description":"Update a prompt template (admin only, org-scoped). Bumps version on template change.","operationId":"update_prompt_api_v1_training_prompts__prompt_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","title":"Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptTemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/daily":{"get":{"tags":["analytics"],"summary":"List Daily Analytics","description":"List daily analytics records (org-scoped, filterable by date range and property).","operationId":"list_daily_analytics_api_v1_analytics_daily_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsDailyListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/summary":{"get":{"tags":["analytics"],"summary":"Get Analytics Summary","description":"Get aggregated analytics summary for a date range (org-scoped).","operationId":"get_analytics_summary_api_v1_analytics_summary_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ils/sources":{"get":{"tags":["ils"],"summary":"List Ils Sources","description":"List ILS lead sources (admin only, org-scoped).","operationId":"list_ils_sources_api_v1_ils_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IlsLeadSourceListResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["ils"],"summary":"Create Ils Source","description":"Create an ILS lead source (admin only).","operationId":"create_ils_source_api_v1_ils_sources_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IlsLeadSourceCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IlsLeadSourceCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/ils/sources/{source_id}":{"delete":{"tags":["ils"],"summary":"Delete Ils Source","description":"Delete an ILS lead source (admin only, org-scoped).","operationId":"delete_ils_source_api_v1_ils_sources__source_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ils/webhook/{source_id}/{secret}":{"post":{"tags":["ils"],"summary":"Receive Ils Webhook","description":"Public webhook endpoint for ILS lead ingestion (no auth required).","operationId":"receive_ils_webhook_api_v1_ils_webhook__source_id___secret__post","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}},{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IlsWebhookPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Receive Ils Webhook Api V1 Ils Webhook  Source Id   Secret  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ils/ingestions":{"get":{"tags":["ils"],"summary":"List Ingestions","description":"List ILS ingestion records (admin only, org-scoped, paginated).","operationId":"list_ingestions_api_v1_ils_ingestions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IlsIngestionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks":{"get":{"tags":["webhooks"],"summary":"List Webhooks","description":"List webhook registrations (admin only, org-scoped).","operationId":"list_webhooks_api_v1_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientWebhookListResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["webhooks"],"summary":"Create Webhook","description":"Create a webhook registration (admin only).","operationId":"create_webhook_api_v1_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientWebhookCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientWebhookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/webhooks/{webhook_id}":{"delete":{"tags":["webhooks"],"summary":"Delete Webhook","description":"Delete a webhook registration (admin only, org-scoped).","operationId":"delete_webhook_api_v1_webhooks__webhook_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/logs":{"get":{"tags":["webhooks"],"summary":"List Webhook Logs","description":"List webhook delivery logs (admin only, org-scoped, paginated).","operationId":"list_webhook_logs_api_v1_webhooks_logs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"webhook_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Webhook Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryLogListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/{webhook_id}/test":{"post":{"tags":["webhooks"],"summary":"Test Webhook","description":"Send a test event to a webhook (admin only).","operationId":"test_webhook_api_v1_webhooks__webhook_id__test_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ab-tests":{"post":{"tags":["ab-testing"],"summary":"Create Ab Test","description":"Create an A/B test (admin only). Requires at least 2 variants.","operationId":"create_ab_test_api_v1_ab_tests_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbTestCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ab-testing"],"summary":"List Ab Tests","description":"List A/B tests (admin only, org-scoped, paginated with status filter).","operationId":"list_ab_tests_api_v1_ab_tests_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbTestListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ab-tests/{test_id}":{"get":{"tags":["ab-testing"],"summary":"Get Ab Test","description":"Get a single A/B test (admin only, org-scoped).","operationId":"get_ab_test_api_v1_ab_tests__test_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"integer","title":"Test Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["ab-testing"],"summary":"Update Ab Test","description":"Update an A/B test (admin only, org-scoped). Validates status transitions.","operationId":"update_ab_test_api_v1_ab_tests__test_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"integer","title":"Test Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbTestUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ab-testing"],"summary":"Delete Ab Test","description":"Delete an A/B test (admin only, org-scoped). Only draft tests can be deleted.","operationId":"delete_ab_test_api_v1_ab_tests__test_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"integer","title":"Test Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ab-tests/{test_id}/results":{"get":{"tags":["ab-testing"],"summary":"Get Ab Test Results","description":"Get A/B test results with per-variant aggregated stats.","operationId":"get_ab_test_results_api_v1_ab_tests__test_id__results_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"integer","title":"Test Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbTestResultsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations":{"get":{"tags":["admin"],"summary":"List Organizations","description":"Every organization, with enough to triage a support request.","operationId":"list_organizations_api_v1_admin_organizations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"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":{"type":"array","items":{"$ref":"#/components/schemas/AdminOrganizationSummary"},"title":"Response List Organizations Api V1 Admin Organizations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}":{"get":{"tags":["admin"],"summary":"Get Organization","description":"One organization's shape: who is in it, what it runs, whether it works.","operationId":"get_organization_api_v1_admin_organizations__organization_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOrganizationDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/access-log":{"get":{"tags":["admin"],"summary":"Read Access Log","description":"Who has been looking at whom.\n\nAn audit trail nobody can read is a log file, not an audit. Reading it is\nitself recorded — an operator checking whether their own access was noticed\nis exactly the access worth noticing.","operationId":"read_access_log_api_v1_admin_access_log_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organization Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminAccessLogEntry"},"title":"Response Read Access Log Api V1 Admin Access Log Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/branding":{"get":{"tags":["branding"],"summary":"Get Branding","description":"Get organization branding config (admin only). Creates default if not exists.","operationId":"get_branding_api_v1_branding_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"put":{"tags":["branding"],"summary":"Update Branding","description":"Update organization branding (admin only, org-scoped).","operationId":"update_branding_api_v1_branding_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/facebook/incoming":{"post":{"tags":["Facebook"],"summary":"Facebook Incoming","description":"Facebook Messenger webhook (shared-secret authenticated, rate limited).","operationId":"facebook_incoming_api_v1_facebook_incoming_post","parameters":[{"name":"x-channel-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Channel-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookIncomingRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Facebook Incoming Api V1 Facebook Incoming Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/facebook/conversations":{"get":{"tags":["Facebook"],"summary":"List Conversations","description":"List Facebook conversations (org-scoped, paginated).","operationId":"list_conversations_api_v1_facebook_conversations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookConversationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/facebook/conversations/{conversation_id}":{"get":{"tags":["Facebook"],"summary":"Get Conversation","description":"Get Facebook conversation with messages (org-scoped).","operationId":"get_conversation_api_v1_facebook_conversations__conversation_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookConversationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/facebook/conversations/{conversation_id}/close":{"put":{"tags":["Facebook"],"summary":"Close Conversation","description":"Close a Facebook conversation (admin only).","operationId":"close_conversation_api_v1_facebook_conversations__conversation_id__close_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Close Conversation Api V1 Facebook Conversations  Conversation Id  Close Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/facebook/send":{"post":{"tags":["Facebook"],"summary":"Send Facebook Message","description":"Send a Facebook message (admin only).","operationId":"send_facebook_message_api_v1_facebook_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookSendRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Send Facebook Message Api V1 Facebook Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/instagram/incoming":{"post":{"tags":["Instagram"],"summary":"Instagram Incoming","description":"Instagram DM webhook (shared-secret authenticated, rate limited).","operationId":"instagram_incoming_api_v1_instagram_incoming_post","parameters":[{"name":"x-channel-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Channel-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramIncomingRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Instagram Incoming Api V1 Instagram Incoming Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/instagram/conversations":{"get":{"tags":["Instagram"],"summary":"List Conversations","description":"List Instagram conversations (org-scoped, paginated).","operationId":"list_conversations_api_v1_instagram_conversations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramConversationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/instagram/conversations/{conversation_id}":{"get":{"tags":["Instagram"],"summary":"Get Conversation","description":"Get Instagram conversation with messages (org-scoped).","operationId":"get_conversation_api_v1_instagram_conversations__conversation_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramConversationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/instagram/conversations/{conversation_id}/close":{"put":{"tags":["Instagram"],"summary":"Close Conversation","description":"Close an Instagram conversation (admin only).","operationId":"close_conversation_api_v1_instagram_conversations__conversation_id__close_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Close Conversation Api V1 Instagram Conversations  Conversation Id  Close Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/instagram/send":{"post":{"tags":["Instagram"],"summary":"Send Instagram Message","description":"Send an Instagram message (admin only).","operationId":"send_instagram_message_api_v1_instagram_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramSendRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Send Instagram Message Api V1 Instagram Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/whatsapp/incoming":{"post":{"tags":["WhatsApp"],"summary":"Whatsapp Incoming","description":"WhatsApp Business webhook (shared-secret authenticated, rate limited).","operationId":"whatsapp_incoming_api_v1_whatsapp_incoming_post","parameters":[{"name":"x-channel-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Channel-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppIncomingRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whatsapp Incoming Api V1 Whatsapp Incoming Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/whatsapp/conversations":{"get":{"tags":["WhatsApp"],"summary":"List Conversations","description":"List WhatsApp conversations (org-scoped, paginated).","operationId":"list_conversations_api_v1_whatsapp_conversations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppConversationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/whatsapp/conversations/{conversation_id}":{"get":{"tags":["WhatsApp"],"summary":"Get Conversation","description":"Get WhatsApp conversation with messages (org-scoped).","operationId":"get_conversation_api_v1_whatsapp_conversations__conversation_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppConversationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/whatsapp/conversations/{conversation_id}/close":{"put":{"tags":["WhatsApp"],"summary":"Close Conversation","description":"Close a WhatsApp conversation (admin only).","operationId":"close_conversation_api_v1_whatsapp_conversations__conversation_id__close_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Close Conversation Api V1 Whatsapp Conversations  Conversation Id  Close Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/whatsapp/send":{"post":{"tags":["WhatsApp"],"summary":"Send Whatsapp Message","description":"Send a WhatsApp message (admin only).","operationId":"send_whatsapp_message_api_v1_whatsapp_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppSendRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Send Whatsapp Message Api V1 Whatsapp Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/email-inquiries/incoming":{"post":{"tags":["Email Inquiries"],"summary":"Email Inquiry Incoming","description":"Email inquiry webhook (shared-secret authenticated, rate limited).","operationId":"email_inquiry_incoming_api_v1_email_inquiries_incoming_post","parameters":[{"name":"x-channel-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Channel-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInquiryIncomingRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Email Inquiry Incoming Api V1 Email Inquiries Incoming Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email-inquiries":{"get":{"tags":["Email Inquiries"],"summary":"List Inquiries","description":"List email inquiries (org-scoped, paginated).","operationId":"list_inquiries_api_v1_email_inquiries_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInquiryListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email-inquiries/{inquiry_id}":{"get":{"tags":["Email Inquiries"],"summary":"Get Inquiry","description":"Get email inquiry with replies (org-scoped).","operationId":"get_inquiry_api_v1_email_inquiries__inquiry_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"inquiry_id","in":"path","required":true,"schema":{"type":"integer","title":"Inquiry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInquiryDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email-inquiries/{inquiry_id}/reply":{"post":{"tags":["Email Inquiries"],"summary":"Reply To Inquiry","description":"Reply to an email inquiry (admin only).","operationId":"reply_to_inquiry_api_v1_email_inquiries__inquiry_id__reply_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"inquiry_id","in":"path","required":true,"schema":{"type":"integer","title":"Inquiry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInquiryReplyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reply To Inquiry Api V1 Email Inquiries  Inquiry Id  Reply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pms/connections":{"get":{"tags":["pms"],"summary":"List Connections","description":"List PMS connections for the current organization.","operationId":"list_connections_api_v1_pms_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSConnectionListResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["pms"],"summary":"Create Connection","description":"Create a new PMS connection.","operationId":"create_connection_api_v1_pms_connections_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSConnectionCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/pms/connections/{connection_id}":{"get":{"tags":["pms"],"summary":"Get Connection","description":"Get a specific PMS connection.","operationId":"get_connection_api_v1_pms_connections__connection_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["pms"],"summary":"Update Connection","description":"Update a PMS connection.","operationId":"update_connection_api_v1_pms_connections__connection_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSConnectionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pms"],"summary":"Delete Connection","description":"Delete a PMS connection and all its mappings.","operationId":"delete_connection_api_v1_pms_connections__connection_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pms/connections/{connection_id}/test":{"post":{"tags":["pms"],"summary":"Test Connection","description":"Test a PMS connection.","operationId":"test_connection_api_v1_pms_connections__connection_id__test_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSConnectionTestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pms/connections/{connection_id}/sync":{"post":{"tags":["pms"],"summary":"Trigger Sync","description":"Trigger a manual sync operation.","operationId":"trigger_sync_api_v1_pms_connections__connection_id__sync_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSSyncTrigger"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSSyncLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pms/connections/{connection_id}/sync-log":{"get":{"tags":["pms"],"summary":"Get Sync Log","description":"Get sync history for a connection.","operationId":"get_sync_log_api_v1_pms_connections__connection_id__sync_log_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSSyncLogListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pms/connections/{connection_id}/properties":{"get":{"tags":["pms"],"summary":"List Pms Properties","description":"List properties from the PMS (via adapter).","operationId":"list_pms_properties_api_v1_pms_connections__connection_id__properties_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PMSExternalProperty"},"title":"Response List Pms Properties Api V1 Pms Connections  Connection Id  Properties Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pms/connections/{connection_id}/property-mappings":{"get":{"tags":["pms"],"summary":"List Property Mappings","description":"List property mappings for a connection.","operationId":"list_property_mappings_api_v1_pms_connections__connection_id__property_mappings_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSPropertyMappingListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pms"],"summary":"Create Property Mapping","description":"Map a local property to a PMS property.","operationId":"create_property_mapping_api_v1_pms_connections__connection_id__property_mappings_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSPropertyMappingCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSPropertyMappingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pms/property-mappings/{mapping_id}":{"delete":{"tags":["pms"],"summary":"Delete Property Mapping","description":"Remove a property mapping.","operationId":"delete_property_mapping_api_v1_pms_property_mappings__mapping_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"integer","title":"Mapping Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pms/property-mappings/{mapping_id}/unit-mappings":{"get":{"tags":["pms"],"summary":"List Unit Mappings","description":"List unit mappings for a property mapping.","operationId":"list_unit_mappings_api_v1_pms_property_mappings__mapping_id__unit_mappings_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"integer","title":"Mapping Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSUnitMappingListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pms"],"summary":"Create Unit Mapping","description":"Map a local unit to a PMS unit.","operationId":"create_unit_mapping_api_v1_pms_property_mappings__mapping_id__unit_mappings_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"integer","title":"Mapping Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSUnitMappingCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMSUnitMappingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pms/unit-mappings/{mapping_id}":{"delete":{"tags":["pms"],"summary":"Delete Unit Mapping","description":"Remove a unit mapping.","operationId":"delete_unit_mapping_api_v1_pms_unit_mappings__mapping_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"integer","title":"Mapping Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-providers/credentials":{"get":{"tags":["voice-providers"],"summary":"List Credentials","description":"Every credential this organization holds. Never their values.","operationId":"list_credentials_api_v1_voice_providers_credentials_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCredentialListResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["voice-providers"],"summary":"Create Credential","operationId":"create_credential_api_v1_voice_providers_credentials_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCredentialCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/voice-providers/credentials/{credential_id}":{"patch":{"tags":["voice-providers"],"summary":"Update Credential","description":"Rotate the secret, or rename it. The vendor is immutable.\n\nRe-pointing a credential at a different vendor would silently hand, say, an\nOpenAI key to Deepgram through whichever chain entries already reference it.\nDelete and recreate instead — which forces the entries to be repointed\ndeliberately, and is refused while any of them still hold it.","operationId":"update_credential_api_v1_voice_providers_credentials__credential_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"integer","title":"Credential Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCredentialUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["voice-providers"],"summary":"Delete Credential","description":"Refused while any chain entry still references it.\n\nThe database enforces this with ON DELETE RESTRICT; this returns 409 with a\ncount rather than letting an IntegrityError become a 500. Deleting it out\nfrom under a live chain would take a provider off the air on the next call.","operationId":"delete_credential_api_v1_voice_providers_credentials__credential_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"integer","title":"Credential Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-providers/chains":{"get":{"tags":["voice-providers"],"summary":"List Organization Chain","description":"The organization's default chains — readable by any member.\n\nRead is not admin-gated on purpose: a leasing agent asking \"which voice does\nthis use\" is a reasonable question, and the response carries no secret. The\nwrites below are all admin-only.","operationId":"list_organization_chain_api_v1_voice_providers_chains_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceProviderConfigListResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["voice-providers"],"summary":"Create Organization Chain Entry","operationId":"create_organization_chain_entry_api_v1_voice_providers_chains_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceProviderConfigCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceProviderConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/voice-providers/properties/{property_id}/chains":{"get":{"tags":["voice-providers"],"summary":"List Property Chain","description":"A property's overrides only — not what it resolves to.\n\nEmpty here means \"inherits\", which is a different and useful fact from\n\"resolves to nothing\". Use the resolution endpoint for the effective chain.","operationId":"list_property_chain_api_v1_voice_providers_properties__property_id__chains_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceProviderConfigListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["voice-providers"],"summary":"Create Property Chain Entry","operationId":"create_property_chain_entry_api_v1_voice_providers_properties__property_id__chains_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceProviderConfigCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceProviderConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-providers/chains/{config_id}":{"patch":{"tags":["voice-providers"],"summary":"Update Chain Entry","operationId":"update_chain_entry_api_v1_voice_providers_chains__config_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"integer","title":"Config Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceProviderConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceProviderConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["voice-providers"],"summary":"Delete Chain Entry","description":"Always allowed.\n\nDeleting the last entry of a chain does not take the property off the air:\nresolution falls through to the organization's chain and then to the shipped\nsystem defaults. That floor is why this can be a plain delete rather than a\nguarded one.","operationId":"delete_chain_entry_api_v1_voice_providers_chains__config_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"integer","title":"Config Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-providers/properties/{property_id}/resolved":{"get":{"tags":["voice-providers"],"summary":"Resolved Chains","description":"What a call to this property will actually use, and where each entry came from.\n\nThe `source` field on every entry — \"property\", \"organization\" or \"system\" —\nis the point. Without it, an operator looking at an unexpected voice cannot\ntell an override from an inherited default from a fallback to the shipped\nstack, and has to reason about three tables to find out.","operationId":"resolved_chains_api_v1_voice_providers_properties__property_id__resolved_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedChainsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-providers/layers":{"get":{"tags":["voice-providers"],"summary":"List Layers","description":"The layers and vendors this deployment can build.\n\nServed so the dashboard's select lists come from the same source of truth as the\ndatabase's CHECK constraints, rather than a hard-coded copy that drifts.\n\nAuthenticated, though it carries nothing sensitive — a static vendor enum.\nIt was reachable with no credentials at all, which the route-coverage matrix\ncaught. There is no caller for it outside the dashboard, and an\nunauthenticated route on an internal admin API is a thing to justify rather\nthan to leave lying around.","operationId":"list_layers_api_v1_voice_providers_layers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Layers Api V1 Voice Providers Layers Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/voice-providers/chains/{config_id}/validate":{"post":{"tags":["voice-providers"],"summary":"Validate Chain Entry","description":"Actually reach this provider and report what happened.\n\nMoves a misconfiguration from \"the caller hears nothing\" to \"the admin sees\na red row\" — a typo'd base URL, a revoked key and a downed inference host\nare indistinguishable from the config screen and indistinguishable to the\ncaller, and only one of those two audiences can fix it.\n\nAdmin-only because it spends a real request against the tenant's provider\nand because the outcome text distinguishes \"credential rejected\" from \"host\nunreachable\", which is a small amount of information about their setup.\n\nIt never reports a success it did not observe: a vendor with no probe\nimplemented comes back `reachable=False` with a message saying exactly that,\nrather than a green that means nothing.","operationId":"validate_chain_entry_api_v1_voice_providers_chains__config_id__validate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"integer","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderValidationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-providers/chains/{config_id}/catalog":{"post":{"tags":["voice-providers"],"summary":"Check Chain Entry Catalog","description":"Does this server actually offer the model and voice that are configured?\n\n`/validate` proves the server is reachable, which is a weaker claim than it\nsounds: a reachable server happily 404s an unknown model at the first\nrequest of a live call. This closes that gap — a typo is caught in the\ndashboard rather than by a caller hearing silence.\n\n**\"Could not check\" is reported as its own answer, never as failure.** A\nvendor that publishes no catalog returns `checked=false` with a sentence\nsaying so, and `model_ok` stays null. Collapsing the two would make an\nunverifiable provider indistinguishable from a broken one, and an admin\nwould go looking for a fault that does not exist.","operationId":"check_chain_entry_catalog_api_v1_voice_providers_chains__config_id__catalog_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"integer","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogCheckResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/property-context/{property_id}":{"get":{"tags":["agent-internal"],"summary":"Get Property Context","description":"Return full property context for building the agent system prompt.","operationId":"get_property_context_api_v1_agent_property_context__property_id__get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPropertyContext"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/property-lookup":{"get":{"tags":["agent-internal"],"summary":"Lookup Property","description":"Resolve a called phone number to its property.\n\nThe agent's inbound rooms are named by the LiveKit dispatch rule and carry no\nproperty id; what the SIP participant does carry is the number that was called\n(sip.trunkPhoneNumber). This endpoint is the same lookup /calls/incoming used\nto admit the call, so the two ends of the SIP leg resolve the same property.","operationId":"lookup_property_api_v1_agent_property_lookup_get","parameters":[{"name":"phone_number","in":"query","required":true,"schema":{"type":"string","title":"Phone Number"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/provider-chains/{property_id}":{"get":{"tags":["agent-internal"],"summary":"Get Provider Chains","description":"The ordered STT/LLM/TTS chains this property should use, WITH credentials.\n\nThe one endpoint in this router that returns secrets, and it has to: the\nagent process is what opens the connection to Deepgram or OpenAI, so it is\nthe thing that needs the key. Nothing else may call this — it is behind\n`verify_agent_key` like the rest of the router, and the whole router is\nunreachable from the public dashboard surface.\n\nThe agent is trusted with these keys already (it holds `OPENAI_API_KEY` and\nfriends in its environment today); what changes is that it now receives the\nkey belonging to *this property's organization* rather than one shared\nprocess-wide key spending an unrelated tenant's quota.\n\nThe response is deliberately NOT logged anywhere in this router, and\n`ResolvedProvider.redacted()` exists for every other consumer.","operationId":"get_provider_chains_api_v1_agent_provider_chains__property_id__get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Provider Chains Api V1 Agent Provider Chains  Property Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/calls":{"post":{"tags":["agent-internal"],"summary":"Create Call","description":"Create a Call DB record when agent session starts.","operationId":"create_call_api_v1_agent_calls_post","parameters":[{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCallRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/calls/{call_id}":{"patch":{"tags":["agent-internal"],"summary":"Update Call","description":"Update call record on completion.","operationId":"update_call_api_v1_agent_calls__call_id__patch","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","title":"Call Id"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/calls/{call_id}/transcripts":{"post":{"tags":["agent-internal"],"summary":"Save Transcripts","description":"Batch insert transcripts for a call.","operationId":"save_transcripts_api_v1_agent_calls__call_id__transcripts_post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","title":"Call Id"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveTranscriptsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/calls/{call_id}/provider-turns":{"post":{"tags":["agent-internal"],"summary":"Save Provider Turns","description":"Record which provider served each turn of this call, and how fast.\n\nWritten once at the end of a call rather than per turn: a network round trip\non every utterance would put telemetry on the latency path it is trying to\nmeasure, and the measurement would include itself.\n\nTolerant by design. A `layer` or a negative latency the database would\nreject is dropped rather than 400ing the whole batch — this is the last call\nin a hangup sequence, and losing the transcript and the billing write to\nsalvage a telemetry row is the wrong trade. What is dropped is counted and\nreturned, so the loss is visible rather than silent.","operationId":"save_provider_turns_api_v1_agent_calls__call_id__provider_turns_post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","title":"Call Id"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveProviderTurnsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Provider Turns Api V1 Agent Calls  Call Id  Provider Turns Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/calls/{call_id}/post-processing":{"post":{"tags":["agent-internal"],"summary":"Trigger Post Processing","description":"Trigger Celery post-call tasks (summary, lead finalization, analytics).","operationId":"trigger_post_processing_api_v1_agent_calls__call_id__post_processing_post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","title":"Call Id"}},{"name":"property_id","in":"query","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/leads":{"post":{"tags":["agent-internal"],"summary":"Create Lead","description":"Create a lead from an agent tool call.","operationId":"create_lead_api_v1_agent_leads_post","parameters":[{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLeadRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/callbacks":{"post":{"tags":["agent-internal"],"summary":"Create Callback","description":"Take a callback request when the caller could not reach a person.\n\nThe agent could already transfer, and could already read out the office\nnumber when transferring failed. What it could not do was leave anything\nbehind: the caller asked for a person, was turned away, and nothing recorded\nthat it happened. This is the row that turns \"call us back\" into \"we will\ncall you\".\n\nDeduplicated within a call: the model may raise this more than once in one\nconversation (it fails a transfer, then the caller asks again), and two rows\nmeans two people ringing the same prospect about the same thing.","operationId":"create_callback_api_v1_agent_callbacks_post","parameters":[{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCallbackRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCallbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/tours":{"post":{"tags":["agent-internal"],"summary":"Book Tour","description":"Book a tour from an agent tool call.","operationId":"book_tour_api_v1_agent_tours_post","parameters":[{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookTourRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookTourResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/tours/availability":{"get":{"tags":["agent-internal"],"summary":"Check Tour Availability","description":"Check available tour slots for a date.","operationId":"check_tour_availability_api_v1_agent_tours_availability_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"date","in":"query","required":true,"schema":{"type":"string","title":"Date"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourAvailabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/calls/{call_id}/transfer":{"post":{"tags":["agent-internal"],"summary":"Transfer Call","description":"Initiate a call transfer.","operationId":"transfer_call_api_v1_agent_calls__call_id__transfer_post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","title":"Call Id"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/capacity/check":{"post":{"tags":["agent-internal"],"summary":"Check Capacity","description":"Check concurrent call capacity for a property.","operationId":"check_capacity_api_v1_agent_capacity_check_post","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapacityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/capacity/acquire":{"post":{"tags":["agent-internal"],"summary":"Acquire Capacity","description":"Atomically reserve a call slot, or refuse if the property is at capacity.\n\nAlso the entitlement choke point. /calls/incoming refuses an unentitled\norganization before Twilio ever dials LiveKit, so this should not fire on\nthe inbound path — it fires for anything that reaches the agent another way\n(an outbound room, a replayed dispatch, a future channel), and it is the\nlast point before a session starts and inference begins costing money.\n\nOn the RESERVE rather than the check: a gate on a read-only report refuses\nnothing.\n\nReplaces the agent's check-then-increment, which raced: the reserve and the limit\ncheck happen in one Redis INCR here, so two calls starting together cannot both\nslip past the ceiling.","operationId":"acquire_capacity_api_v1_agent_capacity_acquire_post","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/capacity/increment":{"post":{"tags":["agent-internal"],"summary":"Increment Capacity","description":"Increment active call count for a property.","operationId":"increment_capacity_api_v1_agent_capacity_increment_post","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/capacity/decrement":{"post":{"tags":["agent-internal"],"summary":"Decrement Capacity","description":"Decrement active call count for a property.","operationId":"decrement_capacity_api_v1_agent_capacity_decrement_post","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"integer","title":"Property Id"}},{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/safe-completion":{"post":{"tags":["agent-internal"],"summary":"Check Safe Completion","description":"Run an utterance through the Safe Completion gate before it is spoken.\n\nLives on the backend rather than in the agent process so that voice, SMS and web\nchat share one implementation and one audit table. A copy of the rules living in\nthe agent would drift, and drift is exactly what a fair-housing audit looks for.\n\nThe agent must speak `delivered_text`, not its own generation — that is the whole\ncontrol. The gate fails closed: any internal error returns the safe fallback.","operationId":"check_safe_completion_api_v1_agent_safe_completion_post","parameters":[{"name":"x-agent-key","in":"header","required":true,"schema":{"type":"string","title":"X-Agent-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafeCompletionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafeCompletionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/livekit/webhook":{"post":{"tags":["livekit"],"summary":"Livekit Webhook","description":"LiveKit webhook receiver for room and participant lifecycle events.","operationId":"livekit_webhook_api_v1_livekit_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/resend/webhook":{"post":{"tags":["resend"],"summary":"Resend Webhook","description":"Record what became of a message we sent.","operationId":"resend_webhook_api_v1_resend_webhook_post","parameters":[{"name":"svix-id","in":"header","required":false,"schema":{"type":"string","default":"","title":"Svix-Id"}},{"name":"svix-timestamp","in":"header","required":false,"schema":{"type":"string","default":"","title":"Svix-Timestamp"}},{"name":"svix-signature","in":"header","required":false,"schema":{"type":"string","default":"","title":"Svix-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resend Webhook Api V1 Resend Webhook Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ses/events":{"post":{"tags":["ses"],"summary":"Ses Events","operationId":"ses_events_api_v1_ses_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ses Events Api V1 Ses Events Post"}}}}}}},"/api/v1/email/unsubscribe/{token}":{"get":{"tags":["email"],"summary":"Unsubscribe Page","description":"The page behind the unsubscribe link. Renders only, never suppresses.","operationId":"unsubscribe_page_api_v1_email_unsubscribe__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["email"],"summary":"Unsubscribe","description":"Opt the address out — writes email_suppression_list, which every send checks.","operationId":"unsubscribe_api_v1_email_unsubscribe__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unsubscribe Api V1 Email Unsubscribe  Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/callstow/grants":{"post":{"tags":["Callstow integration"],"summary":"Create Grant","operationId":"create_grant_api_v1_integrations_callstow_grants_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/integrations/callstow/grants/{grant_id}/revoke":{"post":{"tags":["Callstow integration"],"summary":"Revoke Grant","operationId":"revoke_grant_api_v1_integrations_callstow_grants__grant_id__revoke_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"integer","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/callstow/grant":{"get":{"tags":["Callstow integration"],"summary":"Grant Metadata","operationId":"grant_metadata_api_v1_integrations_callstow_grant_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/callstow/resolve":{"post":{"tags":["Callstow integration"],"summary":"Resolve","operationId":"resolve_api_v1_integrations_callstow_resolve_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resolve"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/callstow/search":{"post":{"tags":["Callstow integration"],"summary":"Search","operationId":"search_api_v1_integrations_callstow_search_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Search"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AbTestCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"test_type":{"type":"string","title":"Test Type"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"variants":{"items":{"$ref":"#/components/schemas/AbTestVariant"},"type":"array","title":"Variants"}},"type":"object","required":["name","test_type","variants"],"title":"AbTestCreate"},"AbTestListResponse":{"properties":{"tests":{"items":{"$ref":"#/components/schemas/AbTestResponse"},"type":"array","title":"Tests"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["tests","total","page","page_size"],"title":"AbTestListResponse"},"AbTestResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"test_type":{"type":"string","title":"Test Type"},"status":{"type":"string","title":"Status"},"variants":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Variants"},"winner_variant_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Winner Variant Index"},"total_assignments":{"type":"integer","title":"Total Assignments"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start At"},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","organization_id","property_id","name","description","test_type","status","variants","winner_variant_index","total_assignments","start_at","end_at","created_at","updated_at"],"title":"AbTestResponse"},"AbTestResultsResponse":{"properties":{"test":{"$ref":"#/components/schemas/AbTestResponse"},"variant_stats":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Variant Stats"},"total_assignments":{"type":"integer","title":"Total Assignments"}},"type":"object","required":["test","variant_stats","total_assignments"],"title":"AbTestResultsResponse"},"AbTestUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"winner_variant_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Winner Variant Index"}},"type":"object","title":"AbTestUpdate"},"AbTestVariant":{"properties":{"prompt_template_id":{"type":"integer","title":"Prompt Template Id"},"weight":{"type":"integer","title":"Weight"},"label":{"type":"string","title":"Label"}},"type":"object","required":["prompt_template_id","weight","label"],"title":"AbTestVariant"},"AdminAccessLogEntry":{"properties":{"id":{"type":"integer","title":"Id"},"actor_email":{"type":"string","title":"Actor Email"},"target_organization_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Organization Id"},"target_organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Organization Name"},"action":{"type":"string","title":"Action"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","actor_email","target_organization_id","target_organization_name","action","detail","created_at"],"title":"AdminAccessLogEntry"},"AdminOrganizationDetail":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"is_active":{"type":"boolean","title":"Is Active"},"trial_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trial Status"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"subscription_plan_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subscription Plan Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"active_users":{"type":"integer","title":"Active Users"},"total_calls":{"type":"integer","title":"Total Calls"},"properties":{"items":{"$ref":"#/components/schemas/AdminPropertySummary"},"type":"array","title":"Properties"}},"type":"object","required":["id","name","slug","is_active","trial_status","trial_ends_at","subscription_plan_id","created_at","active_users","total_calls","properties"],"title":"AdminOrganizationDetail"},"AdminOrganizationSummary":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"is_active":{"type":"boolean","title":"Is Active"},"trial_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trial Status"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"subscription_plan_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subscription Plan Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","slug","is_active","trial_status","trial_ends_at","subscription_plan_id","created_at"],"title":"AdminOrganizationSummary"},"AdminPropertySummary":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"is_active":{"type":"boolean","title":"Is Active"},"has_phone_number":{"type":"boolean","title":"Has Phone Number"},"timezone":{"type":"string","title":"Timezone"}},"type":"object","required":["id","name","is_active","has_phone_number","timezone"],"title":"AdminPropertySummary"},"AgentPropertyContext":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"property_name":{"type":"string","title":"Property Name"},"organization_id":{"type":"integer","title":"Organization Id"},"agent_name":{"type":"string","title":"Agent Name","default":"Sarah"},"personality":{"type":"string","title":"Personality","default":"professional"},"greeting_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Greeting Template"},"address":{"type":"string","title":"Address","default":""},"phone":{"type":"string","title":"Phone","default":""},"office_hours":{"additionalProperties":true,"type":"object","title":"Office Hours"},"faqs":{"items":{"$ref":"#/components/schemas/FaqInfo"},"type":"array","title":"Faqs"},"amenities":{"items":{"type":"string"},"type":"array","title":"Amenities"},"available_units":{"items":{"$ref":"#/components/schemas/UnitInfo"},"type":"array","title":"Available Units"},"specials":{"items":{"$ref":"#/components/schemas/SpecialInfo"},"type":"array","title":"Specials"},"custom_instructions":{"type":"string","title":"Custom Instructions","default":""},"transfer_phone_number":{"type":"string","title":"Transfer Phone Number","default":""},"data_capture_fields":{"items":{"type":"string"},"type":"array","title":"Data Capture Fields"},"emergency_keywords":{"items":{"type":"string"},"type":"array","title":"Emergency Keywords"},"voicemail_detection_enabled":{"type":"boolean","title":"Voicemail Detection Enabled","default":true},"voicemail_message_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voicemail Message Template"},"max_concurrent_calls":{"type":"integer","title":"Max Concurrent Calls","default":5}},"type":"object","required":["property_id","property_name","organization_id"],"title":"AgentPropertyContext","description":"Full property context for building the agent system prompt."},"AiAgentConfigResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"agent_name":{"type":"string","title":"Agent Name"},"greeting_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Greeting Template"},"after_hours_greeting_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After Hours Greeting Template"},"personality":{"type":"string","title":"Personality"},"elevenlabs_voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Elevenlabs Voice Id"},"language_primary":{"type":"string","title":"Language Primary"},"transfer_mode":{"type":"string","title":"Transfer Mode"},"transfer_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Phone Number"},"business_hours_mode":{"type":"string","title":"Business Hours Mode"},"max_loop_count":{"type":"integer","title":"Max Loop Count"},"max_concurrent_calls":{"type":"integer","title":"Max Concurrent Calls"},"referral_source_enabled":{"type":"boolean","title":"Referral Source Enabled"},"outbound_enabled":{"type":"boolean","title":"Outbound Enabled"},"sms_enabled":{"type":"boolean","title":"Sms Enabled"},"custom_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Instructions"},"maintenance_triage_enabled":{"type":"boolean","title":"Maintenance Triage Enabled"},"maintenance_transfer_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maintenance Transfer Number"}},"type":"object","required":["id","property_id","agent_name","greeting_template","after_hours_greeting_template","personality","elevenlabs_voice_id","language_primary","transfer_mode","transfer_phone_number","business_hours_mode","max_loop_count","max_concurrent_calls","referral_source_enabled","outbound_enabled","sms_enabled","custom_instructions","maintenance_triage_enabled","maintenance_transfer_number"],"title":"AiAgentConfigResponse"},"AiAgentConfigUpdate":{"properties":{"agent_name":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Agent Name"},"greeting_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Greeting Template"},"after_hours_greeting_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After Hours Greeting Template"},"personality":{"anyOf":[{"type":"string","pattern":"^(professional|friendly|casual)$"},{"type":"null"}],"title":"Personality"},"elevenlabs_voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Elevenlabs Voice Id"},"language_primary":{"anyOf":[{"type":"string","maxLength":5},{"type":"null"}],"title":"Language Primary"},"transfer_mode":{"anyOf":[{"type":"string","pattern":"^(warm|cold)$"},{"type":"null"}],"title":"Transfer Mode"},"transfer_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Phone Number"},"business_hours_mode":{"anyOf":[{"type":"string","pattern":"^(always_ai|after_hours_only|ai_with_overflow)$"},{"type":"null"}],"title":"Business Hours Mode"},"max_loop_count":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Max Loop Count"},"max_concurrent_calls":{"anyOf":[{"type":"integer","maximum":50.0,"minimum":1.0},{"type":"null"}],"title":"Max Concurrent Calls"},"referral_source_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Referral Source Enabled"},"outbound_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Outbound Enabled"},"sms_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Enabled"},"custom_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Instructions"},"maintenance_triage_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Maintenance Triage Enabled"},"maintenance_transfer_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maintenance Transfer Number"}},"type":"object","title":"AiAgentConfigUpdate"},"AmenityCreate":{"properties":{"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_featured":{"type":"boolean","title":"Is Featured","default":false}},"type":"object","required":["name"],"title":"AmenityCreate"},"AmenityResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_featured":{"type":"boolean","title":"Is Featured"}},"type":"object","required":["id","property_id","category","name","description","is_featured"],"title":"AmenityResponse"},"AmenityUpdate":{"properties":{"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category"},"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_featured":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Featured"}},"type":"object","title":"AmenityUpdate"},"AnalyticsDailyListResponse":{"properties":{"records":{"items":{"$ref":"#/components/schemas/CallAnalyticsDailyResponse"},"type":"array","title":"Records"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["records","total","page","page_size"],"title":"AnalyticsDailyListResponse"},"AnalyticsSummaryResponse":{"properties":{"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"},"total_calls":{"type":"integer","title":"Total Calls"},"inbound_calls":{"type":"integer","title":"Inbound Calls"},"outbound_calls":{"type":"integer","title":"Outbound Calls"},"avg_duration_seconds":{"type":"integer","title":"Avg Duration Seconds"},"calls_resolved":{"type":"integer","title":"Calls Resolved"},"calls_transferred":{"type":"integer","title":"Calls Transferred"},"calls_abandoned":{"type":"integer","title":"Calls Abandoned"},"tours_scheduled":{"type":"integer","title":"Tours Scheduled"},"leads_captured":{"type":"integer","title":"Leads Captured"},"leads_waitlisted":{"type":"integer","title":"Leads Waitlisted"},"sms_conversations":{"type":"integer","title":"Sms Conversations"},"sms_messages_sent":{"type":"integer","title":"Sms Messages Sent"},"sms_messages_received":{"type":"integer","title":"Sms Messages Received"},"sentiment_positive":{"type":"integer","title":"Sentiment Positive"},"sentiment_neutral":{"type":"integer","title":"Sentiment Neutral"},"sentiment_negative":{"type":"integer","title":"Sentiment Negative"},"returning_callers":{"type":"integer","title":"Returning Callers"},"new_callers":{"type":"integer","title":"New Callers"},"resolution_rate":{"type":"number","title":"Resolution Rate"},"answer_rate":{"type":"number","title":"Answer Rate"}},"type":"object","required":["period_start","period_end","total_calls","inbound_calls","outbound_calls","avg_duration_seconds","calls_resolved","calls_transferred","calls_abandoned","tours_scheduled","leads_captured","leads_waitlisted","sms_conversations","sms_messages_sent","sms_messages_received","sentiment_positive","sentiment_neutral","sentiment_negative","returning_callers","new_callers","resolution_rate","answer_rate"],"title":"AnalyticsSummaryResponse"},"AvailabilityResponse":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"slots":{"items":{"$ref":"#/components/schemas/AvailabilitySlot"},"type":"array","title":"Slots"}},"type":"object","required":["property_id","slots"],"title":"AvailabilityResponse"},"AvailabilitySlot":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"start_time":{"type":"string","format":"time","title":"Start Time"},"end_time":{"type":"string","format":"time","title":"End Time"}},"type":"object","required":["date","start_time","end_time"],"title":"AvailabilitySlot"},"AvailableNumberResponse":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"friendly_name":{"type":"string","title":"Friendly Name"},"locality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locality"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},"type":"object","required":["phone_number","friendly_name"],"title":"AvailableNumberResponse"},"BillingHistoryResponse":{"properties":{"invoices":{"items":{"$ref":"#/components/schemas/InvoiceResponse"},"type":"array","title":"Invoices"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["invoices","total","page","page_size"],"title":"BillingHistoryResponse"},"BookTourRequest":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"organization_id":{"type":"integer","title":"Organization Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"prospect_name":{"type":"string","title":"Prospect Name"},"prospect_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Phone"},"prospect_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Prospect Email"},"scheduled_date":{"type":"string","format":"date","title":"Scheduled Date"},"scheduled_time":{"type":"string","format":"time","title":"Scheduled Time"},"duration_minutes":{"type":"integer","title":"Duration Minutes","default":30},"call_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Id"}},"type":"object","required":["property_id","organization_id","prospect_name","scheduled_date","scheduled_time"],"title":"BookTourRequest"},"BookTourResponse":{"properties":{"tour_id":{"type":"integer","title":"Tour Id"},"status":{"type":"string","title":"Status"},"scheduled_date":{"type":"string","format":"date","title":"Scheduled Date"},"scheduled_time":{"type":"string","format":"time","title":"Scheduled Time"}},"type":"object","required":["tour_id","status","scheduled_date","scheduled_time"],"title":"BookTourResponse"},"BrandingResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"favicon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon Url"},"primary_color":{"type":"string","title":"Primary Color"},"secondary_color":{"type":"string","title":"Secondary Color"},"accent_color":{"type":"string","title":"Accent Color"},"font_family":{"type":"string","title":"Font Family"},"email_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Logo Url"},"support_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Email"},"support_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Phone"},"footer_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Text"},"custom_css":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Css"},"show_powered_by":{"type":"boolean","title":"Show Powered By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","organization_id","logo_url","favicon_url","primary_color","secondary_color","accent_color","font_family","email_logo_url","support_email","support_phone","footer_text","custom_css","show_powered_by","created_at","updated_at"],"title":"BrandingResponse"},"BrandingUpdate":{"properties":{"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"favicon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon Url"},"primary_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Color"},"secondary_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secondary Color"},"accent_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent Color"},"font_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Family"},"email_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Logo Url"},"support_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Email"},"support_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Phone"},"footer_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Text"},"custom_css":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Css"},"show_powered_by":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Powered By"}},"type":"object","title":"BrandingUpdate"},"CallAnalyticsDailyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"organization_id":{"type":"integer","title":"Organization Id"},"date":{"type":"string","format":"date","title":"Date"},"total_calls":{"type":"integer","title":"Total Calls"},"inbound_calls":{"type":"integer","title":"Inbound Calls"},"outbound_calls":{"type":"integer","title":"Outbound Calls"},"avg_duration_seconds":{"type":"integer","title":"Avg Duration Seconds"},"calls_resolved":{"type":"integer","title":"Calls Resolved"},"calls_transferred":{"type":"integer","title":"Calls Transferred"},"calls_abandoned":{"type":"integer","title":"Calls Abandoned"},"calls_queued":{"type":"integer","title":"Calls Queued"},"tours_scheduled":{"type":"integer","title":"Tours Scheduled"},"leads_captured":{"type":"integer","title":"Leads Captured"},"leads_waitlisted":{"type":"integer","title":"Leads Waitlisted"},"sms_conversations":{"type":"integer","title":"Sms Conversations"},"sms_messages_sent":{"type":"integer","title":"Sms Messages Sent"},"sms_messages_received":{"type":"integer","title":"Sms Messages Received"},"sentiment_positive":{"type":"integer","title":"Sentiment Positive"},"sentiment_neutral":{"type":"integer","title":"Sentiment Neutral"},"sentiment_negative":{"type":"integer","title":"Sentiment Negative"},"avg_quality_score":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Avg Quality Score"},"returning_callers":{"type":"integer","title":"Returning Callers"},"new_callers":{"type":"integer","title":"New Callers"},"top_topics":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Top Topics"},"top_referral_sources":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Top Referral Sources"},"languages_used":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Languages Used"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","property_id","organization_id","date","total_calls","inbound_calls","outbound_calls","avg_duration_seconds","calls_resolved","calls_transferred","calls_abandoned","calls_queued","tours_scheduled","leads_captured","leads_waitlisted","sms_conversations","sms_messages_sent","sms_messages_received","sentiment_positive","sentiment_neutral","sentiment_negative","avg_quality_score","returning_callers","new_callers","top_topics","top_referral_sources","languages_used","created_at"],"title":"CallAnalyticsDailyResponse"},"CallDetailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"organization_id":{"type":"integer","title":"Organization Id"},"twilio_call_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twilio Call Sid"},"direction":{"type":"string","title":"Direction"},"caller_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Phone"},"caller_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Name"},"is_returning_caller":{"type":"boolean","title":"Is Returning Caller"},"status":{"type":"string","title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"consent_given":{"type":"boolean","title":"Consent Given"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"language_detected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Detected"},"transferred_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transferred To"},"transfer_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Reason"},"transfer_mode_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Mode Used"},"topics":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Topics"},"quality_score":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Quality Score"},"recording_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Url"},"recording_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recording Duration Seconds"},"transcripts":{"items":{"$ref":"#/components/schemas/CallTranscriptResponse"},"type":"array","title":"Transcripts","default":[]}},"type":"object","required":["id","property_id","organization_id","twilio_call_sid","direction","caller_phone","caller_name","is_returning_caller","status","started_at","ended_at","duration_seconds","sentiment","resolution","ai_summary","consent_given","created_at","language_detected","transferred_to","transfer_reason","transfer_mode_used","topics","quality_score","recording_url","recording_duration_seconds"],"title":"CallDetailResponse"},"CallListResponse":{"properties":{"calls":{"items":{"$ref":"#/components/schemas/CallResponse"},"type":"array","title":"Calls"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["calls","total","page","page_size"],"title":"CallListResponse"},"CallResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"organization_id":{"type":"integer","title":"Organization Id"},"twilio_call_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twilio Call Sid"},"direction":{"type":"string","title":"Direction"},"caller_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Phone"},"caller_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Name"},"is_returning_caller":{"type":"boolean","title":"Is Returning Caller"},"status":{"type":"string","title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"consent_given":{"type":"boolean","title":"Consent Given"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","property_id","organization_id","twilio_call_sid","direction","caller_phone","caller_name","is_returning_caller","status","started_at","ended_at","duration_seconds","sentiment","resolution","ai_summary","consent_given","created_at"],"title":"CallResponse"},"CallTranscriptResponse":{"properties":{"id":{"type":"integer","title":"Id"},"call_id":{"type":"integer","title":"Call Id"},"sequence_number":{"type":"integer","title":"Sequence Number"},"speaker":{"type":"string","title":"Speaker"},"text":{"type":"string","title":"Text"},"confidence":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"},"timestamp_ms":{"type":"integer","title":"Timestamp Ms"}},"type":"object","required":["id","call_id","sequence_number","speaker","text","confidence","timestamp_ms"],"title":"CallTranscriptResponse"},"CallbackResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"call_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"caller_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Name"},"caller_phone":{"type":"string","title":"Caller Phone"},"reason":{"type":"string","title":"Reason"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"preferred_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Time"},"status":{"type":"string","title":"Status"},"resolution_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Notes"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"resolved_by_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resolved By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","property_id","call_id","lead_id","caller_name","caller_phone","reason","topic","preferred_time","status","resolution_notes","resolved_at","resolved_by_user_id","created_at"],"title":"CallbackResponse"},"CancelSubscriptionRequest":{"properties":{"at_period_end":{"type":"boolean","title":"At Period End","default":true}},"type":"object","title":"CancelSubscriptionRequest"},"CancelSubscriptionResponse":{"properties":{"status":{"type":"string","title":"Status"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End"},"effective_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Effective Date"}},"type":"object","required":["status","cancel_at_period_end"],"title":"CancelSubscriptionResponse"},"CapacityResponse":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"active_calls":{"type":"integer","title":"Active Calls"},"max_concurrent":{"type":"integer","title":"Max Concurrent"},"at_capacity":{"type":"boolean","title":"At Capacity"}},"type":"object","required":["property_id","active_calls","max_concurrent","at_capacity"],"title":"CapacityResponse"},"CatalogCheckResult":{"properties":{"config_id":{"type":"integer","title":"Config Id"},"layer":{"type":"string","title":"Layer"},"vendor":{"type":"string","title":"Vendor"},"checked":{"type":"boolean","title":"Checked"},"model_ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Model Ok"},"voice_ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Voice Ok"},"detail":{"type":"string","title":"Detail"},"available_models":{"items":{"type":"string"},"type":"array","title":"Available Models"},"available_voices":{"items":{"type":"string"},"type":"array","title":"Available Voices"}},"type":"object","required":["config_id","layer","vendor","checked","model_ok","voice_ok","detail"],"title":"CatalogCheckResult","description":"What the server says it has, next to what was configured.\n\n`checked=False` means the server publishes no catalog — NOT that the\nconfiguration is wrong. The two must stay distinguishable, or an\nunverifiable provider looks identical to a broken one."},"ChangePlanRequest":{"properties":{"plan_code":{"type":"string","maxLength":30,"title":"Plan Code"},"billing_cycle":{"type":"string","pattern":"^(monthly|yearly)$","title":"Billing Cycle","default":"monthly"}},"type":"object","required":["plan_code"],"title":"ChangePlanRequest"},"ChangePlanResponse":{"properties":{"status":{"type":"string","title":"Status"},"new_plan":{"type":"string","title":"New Plan"},"billing_cycle":{"type":"string","title":"Billing Cycle"},"effective_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Effective Date"}},"type":"object","required":["status","new_plan","billing_cycle"],"title":"ChangePlanResponse"},"CheckoutSessionResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"},"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["checkout_url","session_id"],"title":"CheckoutSessionResponse"},"ClientWebhookCreate":{"properties":{"event_type":{"type":"string","title":"Event Type"},"target_url":{"type":"string","title":"Target Url"}},"type":"object","required":["event_type","target_url"],"title":"ClientWebhookCreate"},"ClientWebhookListResponse":{"properties":{"webhooks":{"items":{"$ref":"#/components/schemas/ClientWebhookResponse"},"type":"array","title":"Webhooks"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["webhooks","total"],"title":"ClientWebhookListResponse"},"ClientWebhookResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"event_type":{"type":"string","title":"Event Type"},"target_url":{"type":"string","title":"Target Url"},"secret":{"type":"string","title":"Secret"},"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"}},"type":"object","required":["id","organization_id","event_type","target_url","secret","is_active","created_at","updated_at"],"title":"ClientWebhookResponse"},"ConsentCreate":{"properties":{"contact_phone":{"type":"string","maxLength":20,"minLength":10,"title":"Contact Phone"},"contact_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Contact Email"},"consent_type":{"type":"string","pattern":"^(voice_outbound|sms_marketing|sms_transactional|voice_ai|recording)$","title":"Consent Type"},"capture_method":{"type":"string","pattern":"^(web_form|lease_app|sms_keyword|ivr|verbal|written)$","title":"Capture Method"},"capture_evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capture Evidence"},"capture_ip":{"anyOf":[{"type":"string","maxLength":45},{"type":"null"}],"title":"Capture Ip"},"ai_disclosure_given":{"type":"boolean","title":"Ai Disclosure Given","default":false},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"}},"type":"object","required":["contact_phone","consent_type","capture_method"],"title":"ConsentCreate"},"ConsentListResponse":{"properties":{"consents":{"items":{"$ref":"#/components/schemas/ConsentResponse"},"type":"array","title":"Consents"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["consents","total","page","page_size"],"title":"ConsentListResponse"},"ConsentResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"contact_phone":{"type":"string","title":"Contact Phone"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"consent_type":{"type":"string","title":"Consent Type"},"consent_status":{"type":"string","title":"Consent Status"},"capture_method":{"type":"string","title":"Capture Method"},"capture_evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capture Evidence"},"capture_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capture Ip"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"captured_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Captured By"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"revoke_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoke Method"},"ai_disclosure_given":{"type":"boolean","title":"Ai Disclosure Given"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","contact_phone","contact_email","consent_type","consent_status","capture_method","capture_evidence","capture_ip","captured_at","captured_by","revoked_at","revoke_method","ai_disclosure_given","expires_at","property_id","created_at"],"title":"ConsentResponse"},"ConsentVerifyRequest":{"properties":{"phone":{"type":"string","maxLength":20,"minLength":10,"title":"Phone"},"consent_type":{"type":"string","pattern":"^(voice_outbound|sms_marketing|sms_transactional|voice_ai|recording)$","title":"Consent Type"}},"type":"object","required":["phone","consent_type"],"title":"ConsentVerifyRequest"},"ConsentVerifyResponse":{"properties":{"allowed":{"type":"boolean","title":"Allowed"},"consent_record_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Consent Record Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["allowed"],"title":"ConsentVerifyResponse"},"CreateCallRequest":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"organization_id":{"type":"integer","title":"Organization Id"},"caller_phone":{"type":"string","title":"Caller Phone","default":""},"direction":{"type":"string","title":"Direction","default":"inbound"},"twilio_call_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twilio Call Sid"},"livekit_room_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Livekit Room Name"},"agent_prompt_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Prompt Version"},"agent_prompt_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Prompt Hash"}},"type":"object","required":["property_id","organization_id"],"title":"CreateCallRequest"},"CreateCallResponse":{"properties":{"call_id":{"type":"integer","title":"Call Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["call_id","status"],"title":"CreateCallResponse"},"CreateCallbackRequest":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"caller_phone":{"type":"string","maxLength":20,"minLength":7,"title":"Caller Phone"},"reason":{"type":"string","enum":["transfer_failed","outside_office_hours","caller_requested","agent_could_not_help"],"title":"Reason"},"caller_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Caller Name"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"preferred_time":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Preferred Time"},"call_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"}},"type":"object","required":["property_id","caller_phone","reason"],"title":"CreateCallbackRequest","description":"From the agent, mid-call."},"CreateCallbackResponse":{"properties":{"callback_id":{"type":"integer","title":"Callback Id"},"status":{"type":"string","enum":["open","contacted","closed","cancelled"],"title":"Status"}},"type":"object","required":["callback_id","status"],"title":"CreateCallbackResponse"},"CreateCheckoutSessionRequest":{"properties":{"plan_code":{"type":"string","maxLength":30,"title":"Plan Code"},"billing_cycle":{"type":"string","pattern":"^(monthly|yearly)$","title":"Billing Cycle","default":"monthly"},"success_url":{"type":"string","maxLength":2000,"title":"Success Url"},"cancel_url":{"type":"string","maxLength":2000,"title":"Cancel Url"}},"type":"object","required":["plan_code","success_url","cancel_url"],"title":"CreateCheckoutSessionRequest"},"CreateLeadRequest":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"organization_id":{"type":"integer","title":"Organization Id"},"caller_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Name"},"caller_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Phone"},"caller_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Caller Email"},"desired_bedrooms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Desired Bedrooms"},"desired_move_in":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desired Move In"},"source":{"type":"string","title":"Source","default":"inbound_call"},"call_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Id"},"sms_marketing_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Marketing Consent"}},"type":"object","required":["property_id","organization_id"],"title":"CreateLeadRequest"},"CreateLeadResponse":{"properties":{"lead_id":{"type":"integer","title":"Lead Id"},"status":{"type":"string","title":"Status"},"consent_recorded":{"items":{"type":"string"},"type":"array","title":"Consent Recorded","default":[]}},"type":"object","required":["lead_id","status"],"title":"CreateLeadResponse"},"DeviceTokenRegister":{"properties":{"token":{"type":"string","maxLength":500,"minLength":1,"title":"Token"},"platform":{"type":"string","pattern":"^(ios|android)$","title":"Platform"}},"type":"object","required":["token","platform"],"title":"DeviceTokenRegister"},"DeviceTokenResponse":{"properties":{"id":{"type":"integer","title":"Id"},"user_id":{"type":"integer","title":"User Id"},"token":{"type":"string","title":"Token"},"platform":{"type":"string","title":"Platform"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","user_id","token","platform","is_active","created_at"],"title":"DeviceTokenResponse"},"DoNotCallCreate":{"properties":{"phone_number":{"type":"string","maxLength":20,"minLength":1,"title":"Phone Number"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["phone_number"],"title":"DoNotCallCreate"},"DoNotCallListResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/DoNotCallResponse"},"type":"array","title":"Entries"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["entries","total","page","page_size"],"title":"DoNotCallListResponse"},"DoNotCallResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"phone_number":{"type":"string","title":"Phone Number"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"added_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Added By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","phone_number","reason","added_by","created_at"],"title":"DoNotCallResponse"},"EmailInquiryDetailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"from_email":{"type":"string","title":"From Email"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"to_email":{"type":"string","title":"To Email"},"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body"},"status":{"type":"string","title":"Status"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"replies":{"items":{"$ref":"#/components/schemas/EmailInquiryReplyResponse"},"type":"array","title":"Replies","default":[]}},"type":"object","required":["id","organization_id","property_id","from_email","from_name","to_email","subject","body","status","ai_summary","lead_id","created_at"],"title":"EmailInquiryDetailResponse"},"EmailInquiryIncomingRequest":{"properties":{"from_email":{"type":"string","format":"email","title":"From Email"},"from_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"From Name"},"to_email":{"type":"string","format":"email","title":"To Email"},"subject":{"type":"string","maxLength":500,"minLength":1,"title":"Subject"},"body":{"type":"string","maxLength":50000,"minLength":1,"title":"Body"},"property_id":{"type":"integer","title":"Property Id"}},"type":"object","required":["from_email","to_email","subject","body","property_id"],"title":"EmailInquiryIncomingRequest"},"EmailInquiryListResponse":{"properties":{"inquiries":{"items":{"$ref":"#/components/schemas/EmailInquiryResponse"},"type":"array","title":"Inquiries"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["inquiries","total","page","page_size"],"title":"EmailInquiryListResponse"},"EmailInquiryReplyRequest":{"properties":{"body":{"type":"string","maxLength":10000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"EmailInquiryReplyRequest"},"EmailInquiryReplyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"inquiry_id":{"type":"integer","title":"Inquiry Id"},"body":{"type":"string","title":"Body"},"status":{"type":"string","title":"Status"},"ai_generated":{"type":"boolean","title":"Ai Generated"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","inquiry_id","body","status","ai_generated","sent_at","created_at"],"title":"EmailInquiryReplyResponse"},"EmailInquiryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"from_email":{"type":"string","title":"From Email"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"to_email":{"type":"string","title":"To Email"},"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body"},"status":{"type":"string","title":"Status"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","property_id","from_email","from_name","to_email","subject","body","status","ai_summary","lead_id","created_at"],"title":"EmailInquiryResponse"},"EntitlementResponse":{"properties":{"state":{"type":"string","title":"State"},"has_access":{"type":"boolean","title":"Has Access"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"trial_days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trial Days Remaining"}},"type":"object","required":["state","has_access"],"title":"EntitlementResponse","description":"What access the org has right now, for the dashboard's paywall/banner."},"FacebookConversationDetailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"contact_id":{"type":"string","title":"Contact Id"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"status":{"type":"string","title":"Status"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"message_count":{"type":"integer","title":"Message Count"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"messages":{"items":{"$ref":"#/components/schemas/FacebookMessageResponse"},"type":"array","title":"Messages","default":[]}},"type":"object","required":["id","organization_id","property_id","contact_id","contact_name","page_id","status","last_message_at","message_count","ai_summary","lead_id","created_at"],"title":"FacebookConversationDetailResponse"},"FacebookConversationListResponse":{"properties":{"conversations":{"items":{"$ref":"#/components/schemas/FacebookConversationResponse"},"type":"array","title":"Conversations"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["conversations","total","page","page_size"],"title":"FacebookConversationListResponse"},"FacebookConversationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"contact_id":{"type":"string","title":"Contact Id"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"status":{"type":"string","title":"Status"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"message_count":{"type":"integer","title":"Message Count"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","property_id","contact_id","contact_name","page_id","status","last_message_at","message_count","ai_summary","lead_id","created_at"],"title":"FacebookConversationResponse"},"FacebookIncomingRequest":{"properties":{"sender_id":{"type":"string","maxLength":100,"minLength":1,"title":"Sender Id"},"recipient_id":{"type":"string","maxLength":100,"minLength":1,"title":"Recipient Id"},"message_text":{"type":"string","maxLength":2000,"minLength":1,"title":"Message Text"},"message_id":{"type":"string","maxLength":100,"minLength":1,"title":"Message Id"}},"type":"object","required":["sender_id","recipient_id","message_text","message_id"],"title":"FacebookIncomingRequest"},"FacebookMessageResponse":{"properties":{"id":{"type":"integer","title":"Id"},"conversation_id":{"type":"integer","title":"Conversation Id"},"direction":{"type":"string","title":"Direction"},"body":{"type":"string","title":"Body"},"status":{"type":"string","title":"Status"},"ai_generated":{"type":"boolean","title":"Ai Generated"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","conversation_id","direction","body","status","ai_generated","created_at"],"title":"FacebookMessageResponse"},"FacebookSendRequest":{"properties":{"contact_id":{"type":"string","maxLength":100,"minLength":1,"title":"Contact Id"},"body":{"type":"string","maxLength":2000,"minLength":1,"title":"Body"},"property_id":{"type":"integer","title":"Property Id"}},"type":"object","required":["contact_id","body","property_id"],"title":"FacebookSendRequest"},"FaqCreate":{"properties":{"question":{"type":"string","minLength":1,"title":"Question"},"answer":{"type":"string","minLength":1,"title":"Answer"},"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category"},"priority":{"type":"integer","title":"Priority","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["question","answer"],"title":"FaqCreate"},"FaqInfo":{"properties":{"question":{"type":"string","title":"Question"},"answer":{"type":"string","title":"Answer"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"freshness":{"type":"string","title":"Freshness","default":"current"},"qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qualifier"}},"type":"object","required":["question","answer"],"title":"FaqInfo"},"FaqResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"question":{"type":"string","title":"Question"},"answer":{"type":"string","title":"Answer"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"priority":{"type":"integer","title":"Priority"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","property_id","question","answer","category","priority","is_active"],"title":"FaqResponse"},"FaqUpdate":{"properties":{"question":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Question"},"answer":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Answer"},"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"FaqUpdate"},"FeedbackCreate":{"properties":{"call_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Id"},"sms_conversation_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Conversation Id"},"transcript_segment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transcript Segment Id"},"rating":{"type":"string","pattern":"^(good|bad|needs_improvement)$","title":"Rating"},"corrected_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrected Response"},"feedback_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Notes"}},"type":"object","required":["rating"],"title":"FeedbackCreate"},"FeedbackListResponse":{"properties":{"feedback":{"items":{"$ref":"#/components/schemas/FeedbackResponse"},"type":"array","title":"Feedback"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["feedback","total","page","page_size"],"title":"FeedbackListResponse"},"FeedbackResponse":{"properties":{"id":{"type":"integer","title":"Id"},"call_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Id"},"sms_conversation_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Conversation Id"},"organization_id":{"type":"integer","title":"Organization Id"},"reviewed_by":{"type":"integer","title":"Reviewed By"},"transcript_segment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transcript Segment Id"},"rating":{"type":"string","title":"Rating"},"corrected_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrected Response"},"feedback_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Notes"},"applied_to_training":{"type":"boolean","title":"Applied To Training"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","call_id","sms_conversation_id","organization_id","reviewed_by","transcript_segment_id","rating","corrected_response","feedback_notes","applied_to_training","created_at"],"title":"FeedbackResponse"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"GrantCreate":{"properties":{"source_user_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Source User Id"},"property_ids":{"items":{"type":"integer"},"type":"array","maxItems":100,"minItems":1,"title":"Property Ids"},"expires_in_days":{"type":"integer","maximum":90.0,"minimum":1.0,"title":"Expires In Days","default":30}},"additionalProperties":false,"type":"object","required":["source_user_id","property_ids"],"title":"GrantCreate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IlsIngestionListResponse":{"properties":{"ingestions":{"items":{"$ref":"#/components/schemas/IlsIngestionResponse"},"type":"array","title":"Ingestions"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["ingestions","total","page","page_size"],"title":"IlsIngestionListResponse"},"IlsIngestionResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"ils_source_id":{"type":"integer","title":"Ils Source Id"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"source_type":{"type":"string","title":"Source Type"},"parsed_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parsed Data"},"status":{"type":"string","title":"Status"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"auto_responded":{"type":"boolean","title":"Auto Responded"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","ils_source_id","property_id","lead_id","source_type","parsed_data","status","error_message","auto_responded","created_at"],"title":"IlsIngestionResponse"},"IlsLeadSourceCreate":{"properties":{"source_type":{"type":"string","title":"Source Type"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"email_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Address"}},"type":"object","required":["source_type"],"title":"IlsLeadSourceCreate"},"IlsLeadSourceCreateResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"source_type":{"type":"string","title":"Source Type"},"email_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Address"},"has_webhook_secret":{"type":"boolean","title":"Has Webhook Secret"},"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"},"webhook_secret":{"type":"string","title":"Webhook Secret"}},"type":"object","required":["id","organization_id","property_id","source_type","email_address","has_webhook_secret","is_active","created_at","updated_at","webhook_secret"],"title":"IlsLeadSourceCreateResponse"},"IlsLeadSourceListResponse":{"properties":{"sources":{"items":{"$ref":"#/components/schemas/IlsLeadSourceResponse"},"type":"array","title":"Sources"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["sources","total"],"title":"IlsLeadSourceListResponse"},"IlsLeadSourceResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"source_type":{"type":"string","title":"Source Type"},"email_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Address"},"has_webhook_secret":{"type":"boolean","title":"Has Webhook Secret"},"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"}},"type":"object","required":["id","organization_id","property_id","source_type","email_address","has_webhook_secret","is_active","created_at","updated_at"],"title":"IlsLeadSourceResponse"},"IlsWebhookPayload":{"properties":{"sender_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Email"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body":{"type":"string","title":"Body"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"}},"type":"object","required":["body"],"title":"IlsWebhookPayload","description":"Payload received from an ILS webhook."},"InstagramConversationDetailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"contact_id":{"type":"string","title":"Contact Id"},"contact_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Username"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"status":{"type":"string","title":"Status"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"message_count":{"type":"integer","title":"Message Count"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"messages":{"items":{"$ref":"#/components/schemas/InstagramMessageResponse"},"type":"array","title":"Messages","default":[]}},"type":"object","required":["id","organization_id","property_id","contact_id","contact_username","account_id","status","last_message_at","message_count","ai_summary","lead_id","created_at"],"title":"InstagramConversationDetailResponse"},"InstagramConversationListResponse":{"properties":{"conversations":{"items":{"$ref":"#/components/schemas/InstagramConversationResponse"},"type":"array","title":"Conversations"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["conversations","total","page","page_size"],"title":"InstagramConversationListResponse"},"InstagramConversationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"contact_id":{"type":"string","title":"Contact Id"},"contact_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Username"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"status":{"type":"string","title":"Status"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"message_count":{"type":"integer","title":"Message Count"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","property_id","contact_id","contact_username","account_id","status","last_message_at","message_count","ai_summary","lead_id","created_at"],"title":"InstagramConversationResponse"},"InstagramIncomingRequest":{"properties":{"sender_id":{"type":"string","maxLength":100,"minLength":1,"title":"Sender Id"},"recipient_id":{"type":"string","maxLength":100,"minLength":1,"title":"Recipient Id"},"message_text":{"type":"string","maxLength":1000,"minLength":1,"title":"Message Text"},"message_id":{"type":"string","maxLength":100,"minLength":1,"title":"Message Id"}},"type":"object","required":["sender_id","recipient_id","message_text","message_id"],"title":"InstagramIncomingRequest"},"InstagramMessageResponse":{"properties":{"id":{"type":"integer","title":"Id"},"conversation_id":{"type":"integer","title":"Conversation Id"},"direction":{"type":"string","title":"Direction"},"body":{"type":"string","title":"Body"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url"},"status":{"type":"string","title":"Status"},"ai_generated":{"type":"boolean","title":"Ai Generated"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","conversation_id","direction","body","media_url","status","ai_generated","created_at"],"title":"InstagramMessageResponse"},"InstagramSendRequest":{"properties":{"contact_id":{"type":"string","maxLength":100,"minLength":1,"title":"Contact Id"},"body":{"type":"string","maxLength":1000,"minLength":1,"title":"Body"},"property_id":{"type":"integer","title":"Property Id"}},"type":"object","required":["contact_id","body","property_id"],"title":"InstagramSendRequest"},"InvoiceResponse":{"properties":{"id":{"type":"integer","title":"Id"},"stripe_invoice_id":{"type":"string","title":"Stripe Invoice Id"},"amount_due":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount Due"},"amount_paid":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount Paid"},"currency":{"type":"string","title":"Currency"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"paid":{"type":"boolean","title":"Paid"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"invoice_pdf":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Pdf"},"hosted_invoice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosted Invoice Url"},"period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period End"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","stripe_invoice_id","amount_due","amount_paid","currency","status","paid","paid_at","invoice_pdf","hosted_invoice_url","period_start","period_end","created_at"],"title":"InvoiceResponse"},"LeadListResponse":{"properties":{"leads":{"items":{"$ref":"#/components/schemas/LeadResponse"},"type":"array","title":"Leads"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["leads","total","page","page_size"],"title":"LeadListResponse"},"LeadResponse":{"properties":{"id":{"type":"integer","title":"Id"},"call_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Id"},"property_id":{"type":"integer","title":"Property Id"},"organization_id":{"type":"integer","title":"Organization Id"},"caller_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Name"},"caller_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Phone"},"caller_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Email"},"desired_move_in_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Desired Move In Date"},"desired_bedrooms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Desired Bedrooms"},"desired_budget_max":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Desired Budget Max"},"interested_unit_ids":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Interested Unit Ids"},"referral_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referral Source"},"household_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Household Size"},"has_pets":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Pets"},"pet_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pet Details"},"needs_program":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Needs Program"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"status":{"type":"string","title":"Status"},"source":{"type":"string","title":"Source"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","call_id","property_id","organization_id","caller_name","caller_phone","caller_email","desired_move_in_date","desired_bedrooms","desired_budget_max","interested_unit_ids","referral_source","household_size","has_pets","pet_details","needs_program","notes","status","source","created_at","updated_at"],"title":"LeadResponse"},"LeadUpdate":{"properties":{"caller_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Caller Name"},"caller_phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Caller Phone"},"caller_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Caller Email"},"desired_move_in_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Desired Move In Date"},"desired_bedrooms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Desired Bedrooms"},"desired_budget_max":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Desired Budget Max"},"interested_unit_ids":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Interested Unit Ids"},"referral_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referral Source"},"household_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Household Size"},"has_pets":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Pets"},"pet_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pet Details"},"needs_program":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Needs Program"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"status":{"anyOf":[{"type":"string","pattern":"^(new|contacted|tour_scheduled|applied|closed|waitlisted)$"},{"type":"null"}],"title":"Status"}},"type":"object","title":"LeadUpdate"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"NotificationListResponse":{"properties":{"notifications":{"items":{"$ref":"#/components/schemas/NotificationResponse"},"type":"array","title":"Notifications"},"total":{"type":"integer","title":"Total"},"unread_count":{"type":"integer","title":"Unread Count"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["notifications","total","unread_count","page","page_size"],"title":"NotificationListResponse"},"NotificationPreferenceResponse":{"properties":{"id":{"type":"integer","title":"Id"},"user_id":{"type":"integer","title":"User Id"},"preferences":{"additionalProperties":true,"type":"object","title":"Preferences"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","user_id","preferences","created_at","updated_at"],"title":"NotificationPreferenceResponse"},"NotificationPreferenceUpdate":{"properties":{"preferences":{"additionalProperties":true,"type":"object","title":"Preferences","description":"Notification preferences: {type: {channel: bool}}"}},"type":"object","required":["preferences"],"title":"NotificationPreferenceUpdate"},"NotificationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"recipient_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recipient User Id"},"recipient_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Phone"},"recipient_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Email"},"channel":{"type":"string","title":"Channel"},"type":{"type":"string","title":"Type"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"status":{"type":"string","title":"Status"},"is_read":{"type":"boolean","title":"Is Read"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","property_id","recipient_user_id","recipient_phone","recipient_email","channel","type","subject","body","status","is_read","created_at"],"title":"NotificationResponse"},"OnboardingAiConfigRequest":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"agent_name":{"type":"string","maxLength":100,"title":"Agent Name","default":"Sarah"},"personality":{"type":"string","title":"Personality","default":"professional"},"welcome_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Message"}},"type":"object","required":["property_id"],"title":"OnboardingAiConfigRequest"},"OnboardingOrgRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":2,"title":"Name"},"slug":{"type":"string","maxLength":100,"minLength":2,"pattern":"^[a-z0-9]([a-z0-9-]*[a-z0-9])?$","title":"Slug"},"admin_email":{"type":"string","format":"email","title":"Admin Email"},"admin_password":{"type":"string","maxLength":100,"minLength":8,"title":"Admin Password"},"admin_first_name":{"type":"string","maxLength":100,"title":"Admin First Name"},"admin_last_name":{"type":"string","maxLength":100,"title":"Admin Last Name"},"phone":{"anyOf":[{"type":"string","maxLength":20,"minLength":10},{"type":"null"}],"title":"Phone"},"timezone":{"type":"string","title":"Timezone","default":"America/New_York"},"utm_source":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Utm Campaign"},"referrer":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Referrer"},"invite_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Code"}},"type":"object","required":["name","slug","admin_email","admin_password","admin_first_name","admin_last_name"],"title":"OnboardingOrgRequest"},"OnboardingPhoneRequest":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"area_code":{"type":"string","maxLength":3,"minLength":3,"pattern":"^\\d{3}$","title":"Area Code"}},"type":"object","required":["property_id","area_code"],"title":"OnboardingPhoneRequest"},"OnboardingPlanRequest":{"properties":{"plan_code":{"type":"string","maxLength":30,"title":"Plan Code"},"billing_cycle":{"type":"string","pattern":"^(monthly|yearly)$","title":"Billing Cycle","default":"monthly"},"success_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Success Url"},"cancel_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Cancel Url"}},"type":"object","required":["plan_code"],"title":"OnboardingPlanRequest"},"OnboardingPropertyRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":2,"title":"Name"},"address":{"type":"string","maxLength":255,"title":"Address"},"city":{"type":"string","maxLength":100,"title":"City"},"state":{"type":"string","maxLength":2,"title":"State"},"zip":{"type":"string","maxLength":10,"title":"Zip"},"phone":{"anyOf":[{"type":"string","maxLength":20,"minLength":10},{"type":"null"}],"title":"Phone"}},"type":"object","required":["name","address","city","state","zip"],"title":"OnboardingPropertyRequest"},"OnboardingStatusResponse":{"properties":{"organization_created":{"type":"boolean","title":"Organization Created"},"plan_selected":{"type":"boolean","title":"Plan Selected"},"property_created":{"type":"boolean","title":"Property Created"},"phone_provisioned":{"type":"boolean","title":"Phone Provisioned"},"ai_configured":{"type":"boolean","title":"Ai Configured"},"complete":{"type":"boolean","title":"Complete"}},"type":"object","required":["organization_created","plan_selected","property_created","phone_provisioned","ai_configured","complete"],"title":"OnboardingStatusResponse"},"OutboundCallRequest":{"properties":{"phone":{"type":"string","maxLength":20,"minLength":10,"title":"Phone"},"property_id":{"type":"integer","title":"Property Id"},"reason":{"type":"string","pattern":"^(tour_reminder|lead_followup|manual)$","title":"Reason","default":"manual"}},"type":"object","required":["phone","property_id"],"title":"OutboundCallRequest"},"OutboundCallResponse":{"properties":{"call_id":{"type":"integer","title":"Call Id"},"status":{"type":"string","title":"Status"},"direction":{"type":"string","title":"Direction"},"phone":{"type":"string","title":"Phone"},"reason":{"type":"string","title":"Reason"},"compliance_passed":{"type":"boolean","title":"Compliance Passed"}},"type":"object","required":["call_id","status","direction","phone","reason","compliance_passed"],"title":"OutboundCallResponse"},"PMSConnectionCreate":{"properties":{"pms_type":{"type":"string","pattern":"^(entrata|realpage|appfolio|yardi)$","title":"Pms Type"},"base_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Base Url"},"api_key":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"Api Key"},"oauth_token":{"anyOf":[{"type":"string","maxLength":5000,"minLength":1},{"type":"null"}],"title":"Oauth Token"},"oauth_refresh_token":{"anyOf":[{"type":"string","maxLength":5000,"minLength":1},{"type":"null"}],"title":"Oauth Refresh Token"},"webhook_secret":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Webhook Secret"},"sync_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sync Config"}},"type":"object","required":["pms_type"],"title":"PMSConnectionCreate"},"PMSConnectionListResponse":{"properties":{"connections":{"items":{"$ref":"#/components/schemas/PMSConnectionResponse"},"type":"array","title":"Connections"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["connections","total"],"title":"PMSConnectionListResponse"},"PMSConnectionResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"pms_type":{"type":"string","title":"Pms Type"},"connection_status":{"type":"string","title":"Connection Status"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"has_api_key":{"type":"boolean","title":"Has Api Key","default":false},"has_oauth_token":{"type":"boolean","title":"Has Oauth Token","default":false},"has_webhook_secret":{"type":"boolean","title":"Has Webhook Secret","default":false},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"last_sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Sync Status"},"last_error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error Message"},"sync_config":{"additionalProperties":true,"type":"object","title":"Sync Config"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","organization_id","pms_type","connection_status","base_url","last_sync_at","last_sync_status","last_error_message","sync_config","created_at","updated_at"],"title":"PMSConnectionResponse"},"PMSConnectionTestResult":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"PMSConnectionTestResult"},"PMSConnectionUpdate":{"properties":{"base_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Base Url"},"api_key":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"Api Key"},"oauth_token":{"anyOf":[{"type":"string","maxLength":5000,"minLength":1},{"type":"null"}],"title":"Oauth Token"},"oauth_refresh_token":{"anyOf":[{"type":"string","maxLength":5000,"minLength":1},{"type":"null"}],"title":"Oauth Refresh Token"},"webhook_secret":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Webhook Secret"},"sync_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sync Config"}},"type":"object","title":"PMSConnectionUpdate"},"PMSExternalProperty":{"properties":{"external_id":{"type":"string","title":"External Id"},"name":{"type":"string","title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"unit_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Count"}},"type":"object","required":["external_id","name"],"title":"PMSExternalProperty"},"PMSPropertyMappingCreate":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"external_property_id":{"type":"string","maxLength":200,"minLength":1,"title":"External Property Id"},"external_property_name":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"External Property Name"},"sync_enabled":{"type":"boolean","title":"Sync Enabled","default":true}},"type":"object","required":["property_id","external_property_id"],"title":"PMSPropertyMappingCreate"},"PMSPropertyMappingListResponse":{"properties":{"mappings":{"items":{"$ref":"#/components/schemas/PMSPropertyMappingResponse"},"type":"array","title":"Mappings"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["mappings","total"],"title":"PMSPropertyMappingListResponse"},"PMSPropertyMappingResponse":{"properties":{"id":{"type":"integer","title":"Id"},"pms_connection_id":{"type":"integer","title":"Pms Connection Id"},"property_id":{"type":"integer","title":"Property Id"},"external_property_id":{"type":"string","title":"External Property Id"},"external_property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Property Name"},"sync_enabled":{"type":"boolean","title":"Sync Enabled"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","pms_connection_id","property_id","external_property_id","external_property_name","sync_enabled","last_synced_at","created_at","updated_at"],"title":"PMSPropertyMappingResponse"},"PMSSyncLogListResponse":{"properties":{"logs":{"items":{"$ref":"#/components/schemas/PMSSyncLogResponse"},"type":"array","title":"Logs"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["logs","total","page","page_size"],"title":"PMSSyncLogListResponse"},"PMSSyncLogResponse":{"properties":{"id":{"type":"integer","title":"Id"},"pms_connection_id":{"type":"integer","title":"Pms Connection Id"},"sync_type":{"type":"string","title":"Sync Type"},"sync_direction":{"type":"string","title":"Sync Direction"},"status":{"type":"string","title":"Status"},"records_processed":{"type":"integer","title":"Records Processed"},"records_created":{"type":"integer","title":"Records Created"},"records_updated":{"type":"integer","title":"Records Updated"},"records_failed":{"type":"integer","title":"Records Failed"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"}},"type":"object","required":["id","pms_connection_id","sync_type","sync_direction","status","records_processed","records_created","records_updated","records_failed","error_message","started_at","completed_at","duration_ms"],"title":"PMSSyncLogResponse"},"PMSSyncTrigger":{"properties":{"sync_type":{"type":"string","pattern":"^(properties|units|availability|leads_inbound|leads_outbound|tours)$","title":"Sync Type"},"sync_direction":{"type":"string","pattern":"^(inbound|outbound)$","title":"Sync Direction"}},"type":"object","required":["sync_type","sync_direction"],"title":"PMSSyncTrigger"},"PMSUnitMappingCreate":{"properties":{"unit_id":{"type":"integer","title":"Unit Id"},"external_unit_id":{"type":"string","maxLength":200,"minLength":1,"title":"External Unit Id"}},"type":"object","required":["unit_id","external_unit_id"],"title":"PMSUnitMappingCreate"},"PMSUnitMappingListResponse":{"properties":{"mappings":{"items":{"$ref":"#/components/schemas/PMSUnitMappingResponse"},"type":"array","title":"Mappings"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["mappings","total"],"title":"PMSUnitMappingListResponse"},"PMSUnitMappingResponse":{"properties":{"id":{"type":"integer","title":"Id"},"pms_property_mapping_id":{"type":"integer","title":"Pms Property Mapping Id"},"unit_id":{"type":"integer","title":"Unit Id"},"external_unit_id":{"type":"string","title":"External Unit Id"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","pms_property_mapping_id","unit_id","external_unit_id","last_synced_at","created_at","updated_at"],"title":"PMSUnitMappingResponse"},"Participant":{"properties":{"kind":{"type":"string","enum":["email","phone"],"title":"Kind"},"value":{"type":"string","maxLength":255,"minLength":1,"title":"Value"}},"additionalProperties":false,"type":"object","required":["kind","value"],"title":"Participant"},"PaymentMethodListResponse":{"properties":{"payment_methods":{"items":{"$ref":"#/components/schemas/PaymentMethodResponse"},"type":"array","title":"Payment Methods"}},"type":"object","required":["payment_methods"],"title":"PaymentMethodListResponse"},"PaymentMethodResponse":{"properties":{"id":{"type":"string","title":"Id"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last4"},"exp_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exp Month"},"exp_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exp Year"},"is_default":{"type":"boolean","title":"Is Default","default":false}},"type":"object","required":["id"],"title":"PaymentMethodResponse"},"PendingOutboundCallListResponse":{"properties":{"calls":{"items":{"$ref":"#/components/schemas/PendingOutboundCallResponse"},"type":"array","title":"Calls"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["calls","total"],"title":"PendingOutboundCallListResponse"},"PendingOutboundCallResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"caller_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Phone"},"outbound_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outbound Reason"},"outbound_attempt_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Outbound Attempt Number"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","property_id","caller_phone","outbound_reason","outbound_attempt_number","status","created_at"],"title":"PendingOutboundCallResponse"},"PlanListResponse":{"properties":{"plans":{"items":{"$ref":"#/components/schemas/PlanResponse"},"type":"array","title":"Plans"}},"type":"object","required":["plans"],"title":"PlanListResponse"},"PlanResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"price_monthly":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Monthly"},"price_yearly":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Yearly"},"max_users":{"type":"integer","title":"Max Users"},"max_properties":{"type":"integer","title":"Max Properties"},"max_phone_numbers":{"type":"integer","title":"Max Phone Numbers"},"max_inbound_calls_monthly":{"type":"integer","title":"Max Inbound Calls Monthly"},"max_outbound_calls_monthly":{"type":"integer","title":"Max Outbound Calls Monthly"},"max_sms_monthly":{"type":"integer","title":"Max Sms Monthly"},"is_highlighted":{"type":"boolean","title":"Is Highlighted"},"badge_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Badge Text"},"accent_color":{"type":"string","title":"Accent Color"},"features":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Features","default":[]}},"type":"object","required":["id","name","code","description","price_monthly","price_yearly","max_users","max_properties","max_phone_numbers","max_inbound_calls_monthly","max_outbound_calls_monthly","max_sms_monthly","is_highlighted","badge_text","accent_color"],"title":"PlanResponse"},"PolicyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"pet_policy":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pet Policy"},"parking_policy":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parking Policy"},"smoking_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smoking Policy"},"lease_terms":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Lease Terms"},"guest_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guest Policy"},"noise_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Noise Policy"},"move_in_requirements":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Move In Requirements"},"supported_programs":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Supported Programs"},"utilities_included":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Utilities Included"},"custom_policies":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Policies"}},"type":"object","required":["id","property_id","pet_policy","parking_policy","smoking_policy","lease_terms","guest_policy","noise_policy","move_in_requirements","supported_programs","utilities_included","custom_policies"],"title":"PolicyResponse"},"PolicyUpdate":{"properties":{"pet_policy":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pet Policy"},"parking_policy":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parking Policy"},"smoking_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smoking Policy"},"lease_terms":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Lease Terms"},"guest_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guest Policy"},"noise_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Noise Policy"},"move_in_requirements":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Move In Requirements"},"supported_programs":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Supported Programs"},"utilities_included":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Utilities Included"},"custom_policies":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Policies"}},"type":"object","title":"PolicyUpdate"},"PortalSessionResponse":{"properties":{"portal_url":{"type":"string","title":"Portal Url"}},"type":"object","required":["portal_url"],"title":"PortalSessionResponse"},"PromptTemplateCreate":{"properties":{"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"template":{"type":"string","maxLength":50000,"minLength":1,"title":"Template"}},"type":"object","required":["name","template"],"title":"PromptTemplateCreate"},"PromptTemplateListResponse":{"properties":{"templates":{"items":{"$ref":"#/components/schemas/PromptTemplateResponse"},"type":"array","title":"Templates"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["templates","total","page","page_size"],"title":"PromptTemplateListResponse"},"PromptTemplateResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"organization_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organization Id"},"name":{"type":"string","title":"Name"},"template":{"type":"string","title":"Template"},"version":{"type":"integer","title":"Version"},"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"}},"type":"object","required":["id","property_id","organization_id","name","template","version","is_active","created_at","updated_at"],"title":"PromptTemplateResponse"},"PromptTemplateUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"template":{"anyOf":[{"type":"string","maxLength":50000,"minLength":1},{"type":"null"}],"title":"Template"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"PromptTemplateUpdate"},"PropertyCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"State"},"zip":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Zip"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"timezone":{"type":"string","title":"Timezone","default":"America/New_York"},"office_hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Office Hours"}},"type":"object","required":["name"],"title":"PropertyCreate"},"PropertyLookupResponse":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"organization_id":{"type":"integer","title":"Organization Id"}},"type":"object","required":["property_id","organization_id"],"title":"PropertyLookupResponse","description":"Resolve a called phone number to its property, for the agent.\n\nRoom names carry no property id (the dispatch rule names rooms), so the SIP\ncalled number — sip.trunkPhoneNumber on the inbound participant — is the only\ndurable link between a ringing room and a tenant. This is the inverse of the\nlookup /calls/incoming does when it forwards the call."},"PropertyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"name":{"type":"string","title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"twilio_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twilio Phone Number"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"timezone":{"type":"string","title":"Timezone"},"is_active":{"type":"boolean","title":"Is Active"},"office_hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Office Hours"}},"type":"object","required":["id","organization_id","name","address","city","state","zip","phone","twilio_phone_number","website_url","timezone","is_active","office_hours"],"title":"PropertyResponse"},"PropertyUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"State"},"zip":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Zip"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"office_hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Office Hours"}},"type":"object","title":"PropertyUpdate"},"ProviderCredentialCreate":{"properties":{"vendor":{"type":"string","title":"Vendor"},"label":{"type":"string","maxLength":100,"minLength":1,"title":"Label"},"secret":{"type":"string","maxLength":4000,"minLength":1,"title":"Secret"}},"type":"object","required":["vendor","label","secret"],"title":"ProviderCredentialCreate"},"ProviderCredentialListResponse":{"properties":{"credentials":{"items":{"$ref":"#/components/schemas/ProviderCredentialResponse"},"type":"array","title":"Credentials"}},"type":"object","required":["credentials"],"title":"ProviderCredentialListResponse"},"ProviderCredentialResponse":{"properties":{"id":{"type":"integer","title":"Id"},"vendor":{"type":"string","title":"Vendor"},"label":{"type":"string","title":"Label"},"last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Four"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"in_use_by":{"type":"integer","title":"In Use By","description":"How many chain entries reference this credential. Deleting one that is in use is refused."}},"type":"object","required":["id","vendor","label","last_four","created_at","updated_at","in_use_by"],"title":"ProviderCredentialResponse","description":"Everything an operator can see about a stored credential.\n\nDeliberately NOT `model_config = ConfigDict(from_attributes=True)` over the\nORM row with a field exclusion: an exclusion list is a denial that has to be\nmaintained, and the day someone adds a column is the day it stops being\ncomplete. This is an allow-list, constructed by hand in the router.\n\n`last_four` is the whole affordance for confirming a rotation landed. It is\nfour characters of a secret that is already known to whoever pasted it, and\nit is the difference between \"I think I updated the key\" and knowing."},"ProviderCredentialUpdate":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Label"},"secret":{"anyOf":[{"type":"string","maxLength":4000,"minLength":1},{"type":"null"}],"title":"Secret"}},"type":"object","title":"ProviderCredentialUpdate","description":"Rotation only.\n\nThe vendor cannot be changed: a chain entry points at this credential and\nexpects a key for a particular service, so re-pointing it would silently\nhand an OpenAI key to Deepgram. Delete and recreate instead, which forces\nthe chain entries to be repointed deliberately."},"ProviderTurnRecord":{"properties":{"sequence_number":{"type":"integer","title":"Sequence Number"},"layer":{"type":"string","title":"Layer"},"vendor":{"type":"string","title":"Vendor"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"latency_ms":{"type":"integer","title":"Latency Ms","default":0},"first_token_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Token Ms"},"fallback_used":{"type":"boolean","title":"Fallback Used","default":false},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["sequence_number","layer","vendor"],"title":"ProviderTurnRecord","description":"One layer's work on one turn, as the agent observed it."},"ProviderValidationResult":{"properties":{"config_id":{"type":"integer","title":"Config Id"},"layer":{"type":"string","title":"Layer"},"vendor":{"type":"string","title":"Vendor"},"reachable":{"type":"boolean","title":"Reachable"},"detail":{"type":"string","title":"Detail"},"latency_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latency Ms"}},"type":"object","required":["config_id","layer","vendor","reachable","detail"],"title":"ProviderValidationResult","description":"The outcome of actually reaching a configured provider."},"RefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshRequest"},"RegisterRequest":{"properties":{"organization_name":{"type":"string","maxLength":200,"minLength":1,"title":"Organization Name"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"first_name":{"type":"string","maxLength":100,"minLength":1,"title":"First Name"},"last_name":{"type":"string","maxLength":100,"minLength":1,"title":"Last Name"},"utm_source":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Utm Campaign"},"referrer":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Referrer"},"invite_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Code"}},"type":"object","required":["organization_name","email","password","first_name","last_name"],"title":"RegisterRequest"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","maxLength":256,"minLength":1,"title":"Token"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"}},"type":"object","required":["token","password"],"title":"ResetPasswordRequest"},"Resolve":{"properties":{"resources":{"items":{"$ref":"#/components/schemas/Resource"},"type":"array","maxItems":20,"minItems":1,"title":"Resources"}},"additionalProperties":false,"type":"object","required":["resources"],"title":"Resolve"},"ResolvedChainsResponse":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"organization_id":{"type":"integer","title":"Organization Id"},"stt":{"items":{"$ref":"#/components/schemas/ResolvedProviderView"},"type":"array","title":"Stt"},"llm":{"items":{"$ref":"#/components/schemas/ResolvedProviderView"},"type":"array","title":"Llm"},"tts":{"items":{"$ref":"#/components/schemas/ResolvedProviderView"},"type":"array","title":"Tts"}},"type":"object","required":["property_id","organization_id","stt","llm","tts"],"title":"ResolvedChainsResponse"},"ResolvedProviderView":{"properties":{"layer":{"type":"string","title":"Layer"},"vendor":{"type":"string","title":"Vendor"},"priority":{"type":"integer","title":"Priority"},"source":{"type":"string","title":"Source"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"timeout_ms":{"type":"integer","title":"Timeout Ms"},"has_credential":{"type":"boolean","title":"Has Credential"}},"type":"object","required":["layer","vendor","priority","source","model","voice","base_url","timeout_ms","has_credential"],"title":"ResolvedProviderView","description":"One entry of a resolved chain, as an operator sees it.\n\n`source` is the field that makes this endpoint worth having: it says whether\nan entry came from the property, the organization, or the shipped defaults,\nwhich is the question behind almost every \"why is this property behaving\nlike that\" support conversation."},"Resource":{"properties":{"kind":{"type":"string","enum":["lead","property","tour","call","bot_message"],"title":"Kind"},"external_id":{"type":"string","maxLength":100,"minLength":1,"title":"External Id"},"revision":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Revision"}},"additionalProperties":false,"type":"object","required":["kind","external_id"],"title":"Resource"},"RetentionPolicyResponse":{"properties":{"recording_retention_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recording Retention Days"},"transcript_retention_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transcript Retention Days"},"recording_retention_enabled":{"type":"boolean","title":"Recording Retention Enabled"},"transcript_retention_enabled":{"type":"boolean","title":"Transcript Retention Enabled"},"scope":{"type":"string","title":"Scope"}},"type":"object","required":["recording_retention_days","transcript_retention_days","recording_retention_enabled","transcript_retention_enabled","scope"],"title":"RetentionPolicyResponse","description":"How long call recordings and transcripts are kept.\n\n`None` with `*_enabled = False` means retention is **off** and nothing is\never swept — which is different from \"kept for 0 days\", and is the state a\ndeployment is in until somebody sets the environment variables. Reporting\nthem as separate fields stops a dashboard rendering \"0 days\" and implying\nimmediate deletion, which is the opposite of the truth."},"SafeCompletionRequest":{"properties":{"call_id":{"type":"integer","title":"Call Id"},"property_id":{"type":"integer","title":"Property Id"},"caller_input":{"type":"string","title":"Caller Input","default":""},"llm_output":{"type":"string","title":"Llm Output"},"sequence_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sequence Number"}},"type":"object","required":["call_id","property_id","llm_output"],"title":"SafeCompletionRequest","description":"An utterance to check before it is spoken."},"SafeCompletionResponse":{"properties":{"classification":{"type":"string","title":"Classification"},"delivered_text":{"type":"string","title":"Delivered Text"},"was_substituted":{"type":"boolean","title":"Was Substituted"},"should_transfer":{"type":"boolean","title":"Should Transfer"},"trigger_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Category"},"template_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Key"}},"type":"object","required":["classification","delivered_text","was_substituted","should_transfer"],"title":"SafeCompletionResponse","description":"What the agent is allowed to say.\n\n`delivered_text` is authoritative — the agent speaks this, not what it generated.\n`should_transfer` is surfaced separately so the agent can hand off rather than\nonly reading the escalation line aloud."},"SaveProviderTurnsRequest":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"turns":{"items":{"$ref":"#/components/schemas/ProviderTurnRecord"},"type":"array","title":"Turns"}},"type":"object","required":["property_id","turns"],"title":"SaveProviderTurnsRequest"},"SaveTranscriptsRequest":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"transcripts":{"items":{"$ref":"#/components/schemas/TranscriptEntry"},"type":"array","title":"Transcripts"}},"type":"object","required":["property_id","transcripts"],"title":"SaveTranscriptsRequest"},"Search":{"properties":{"participants":{"items":{"$ref":"#/components/schemas/Participant"},"type":"array","maxItems":20,"title":"Participants"},"resources":{"items":{"$ref":"#/components/schemas/Resource"},"type":"array","maxItems":20,"title":"Resources"},"query":{"type":"string","maxLength":400,"title":"Query","default":""},"limit":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Limit","default":20},"cursor":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Cursor"}},"additionalProperties":false,"type":"object","title":"Search"},"SetDefaultPaymentMethodRequest":{"properties":{"payment_method_id":{"type":"string","title":"Payment Method Id"}},"type":"object","required":["payment_method_id"],"title":"SetDefaultPaymentMethodRequest"},"SetDefaultPaymentMethodResponse":{"properties":{"status":{"type":"string","title":"Status"},"payment_method_id":{"type":"string","title":"Payment Method Id"}},"type":"object","required":["status","payment_method_id"],"title":"SetDefaultPaymentMethodResponse"},"SmsConversationDetailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"contact_phone":{"type":"string","title":"Contact Phone"},"twilio_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twilio Phone Number"},"status":{"type":"string","title":"Status"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"message_count":{"type":"integer","title":"Message Count"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"messages":{"items":{"$ref":"#/components/schemas/SmsMessageResponse"},"type":"array","title":"Messages","default":[]}},"type":"object","required":["id","organization_id","property_id","contact_phone","twilio_phone_number","status","last_message_at","message_count","ai_summary","lead_id","created_at"],"title":"SmsConversationDetailResponse"},"SmsConversationListResponse":{"properties":{"conversations":{"items":{"$ref":"#/components/schemas/SmsConversationResponse"},"type":"array","title":"Conversations"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["conversations","total","page","page_size"],"title":"SmsConversationListResponse"},"SmsConversationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"contact_phone":{"type":"string","title":"Contact Phone"},"twilio_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twilio Phone Number"},"status":{"type":"string","title":"Status"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"message_count":{"type":"integer","title":"Message Count"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","property_id","contact_phone","twilio_phone_number","status","last_message_at","message_count","ai_summary","lead_id","created_at"],"title":"SmsConversationResponse"},"SmsMessageResponse":{"properties":{"id":{"type":"integer","title":"Id"},"conversation_id":{"type":"integer","title":"Conversation Id"},"direction":{"type":"string","title":"Direction"},"from_number":{"type":"string","title":"From Number"},"to_number":{"type":"string","title":"To Number"},"body":{"type":"string","title":"Body"},"status":{"type":"string","title":"Status"},"is_keyword_response":{"type":"boolean","title":"Is Keyword Response"},"ai_generated":{"type":"boolean","title":"Ai Generated"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","conversation_id","direction","from_number","to_number","body","status","is_keyword_response","ai_generated","created_at"],"title":"SmsMessageResponse"},"SmsSendRequest":{"properties":{"phone":{"type":"string","maxLength":20,"minLength":10,"title":"Phone"},"body":{"type":"string","maxLength":1600,"minLength":1,"title":"Body"},"property_id":{"type":"integer","title":"Property Id"}},"type":"object","required":["phone","body","property_id"],"title":"SmsSendRequest"},"SpecialCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"discount_type":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Discount Type"},"discount_value":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Discount Value"},"applicable_unit_types":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Applicable Unit Types"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["title"],"title":"SpecialCreate"},"SpecialInfo":{"properties":{"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description","default":""},"applicable_unit_types":{"items":{"type":"string"},"type":"array","title":"Applicable Unit Types"}},"type":"object","required":["title"],"title":"SpecialInfo"},"SpecialResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"discount_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discount Type"},"discount_value":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Discount Value"},"applicable_unit_types":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Applicable Unit Types"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","property_id","title","description","discount_type","discount_value","applicable_unit_types","start_date","end_date","is_active"],"title":"SpecialResponse"},"SpecialUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"discount_type":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Discount Type"},"discount_value":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Discount Value"},"applicable_unit_types":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Applicable Unit Types"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"SpecialUpdate"},"SubscriptionStatusResponse":{"properties":{"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"plan_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Code"},"status":{"type":"string","title":"Status"},"billing_cycle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Cycle"},"current_period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period Start"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End","default":false},"amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount"},"currency":{"type":"string","title":"Currency","default":"usd"}},"type":"object","required":["status"],"title":"SubscriptionStatusResponse"},"Token":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"user":{"anyOf":[{"$ref":"#/components/schemas/UserResponse"},{"type":"null"}]}},"type":"object","required":["access_token","refresh_token"],"title":"Token"},"TourAvailabilityResponse":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"slots":{"items":{"$ref":"#/components/schemas/TourSlot"},"type":"array","title":"Slots"}},"type":"object","required":["date","slots"],"title":"TourAvailabilityResponse"},"TourCancelRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"TourCancelRequest"},"TourCreate":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"call_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Id"},"scheduled_date":{"type":"string","format":"date","title":"Scheduled Date"},"scheduled_time":{"type":"string","format":"time","title":"Scheduled Time"},"duration_minutes":{"type":"integer","maximum":120.0,"minimum":15.0,"title":"Duration Minutes","default":30},"prospect_name":{"type":"string","maxLength":200,"minLength":1,"title":"Prospect Name"},"prospect_phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Prospect Phone"},"prospect_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Email"},"unit_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Unit Ids"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["property_id","scheduled_date","scheduled_time","prospect_name"],"title":"TourCreate"},"TourListResponse":{"properties":{"tours":{"items":{"$ref":"#/components/schemas/TourResponse"},"type":"array","title":"Tours"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["tours","total","page","page_size"],"title":"TourListResponse"},"TourOutcome":{"properties":{"status":{"type":"string","pattern":"^(completed|no_show)$","title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["status"],"title":"TourOutcome","description":"What happened at the tour. The only thing a leasing agent may change.\n\nDeliberately not a subset of `TourUpdate`: the point of a separate schema is\nthat it cannot grow. A field added to `TourUpdate` for an admin form would\nsilently become writable by a leasing agent if this reused it."},"TourRescheduleRequest":{"properties":{"new_date":{"type":"string","format":"date","title":"New Date"},"new_time":{"type":"string","format":"time","title":"New Time"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["new_date","new_time"],"title":"TourRescheduleRequest"},"TourResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"organization_id":{"type":"integer","title":"Organization Id"},"call_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"scheduled_date":{"type":"string","format":"date","title":"Scheduled Date"},"scheduled_time":{"type":"string","format":"time","title":"Scheduled Time"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"prospect_name":{"type":"string","title":"Prospect Name"},"prospect_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Phone"},"prospect_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Email"},"unit_ids":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Unit Ids"},"status":{"type":"string","title":"Status"},"reminder_sent":{"type":"boolean","title":"Reminder Sent"},"calendar_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendar Event Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"cancel_token":{"type":"string","title":"Cancel Token"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","property_id","organization_id","call_id","lead_id","scheduled_date","scheduled_time","duration_minutes","prospect_name","prospect_phone","prospect_email","unit_ids","status","reminder_sent","calendar_event_id","notes","cancel_token","created_at","updated_at"],"title":"TourResponse"},"TourSlot":{"properties":{"time":{"type":"string","format":"time","title":"Time"},"available":{"type":"boolean","title":"Available"}},"type":"object","required":["time","available"],"title":"TourSlot"},"TourUpdate":{"properties":{"scheduled_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Scheduled Date"},"scheduled_time":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Scheduled Time"},"duration_minutes":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":15.0},{"type":"null"}],"title":"Duration Minutes"},"prospect_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Prospect Name"},"prospect_phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Prospect Phone"},"prospect_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Email"},"unit_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Unit Ids"},"status":{"anyOf":[{"type":"string","pattern":"^(scheduled|confirmed|completed|cancelled|no_show)$"},{"type":"null"}],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"TourUpdate"},"TrainingExampleCreate":{"properties":{"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"category":{"type":"string","pattern":"^(greeting|availability|pricing|tours|pets|programs|specials|faq|escalation|maintenance|objection_handling)$","title":"Category"},"input_text":{"type":"string","maxLength":5000,"minLength":1,"title":"Input Text"},"expected_output":{"type":"string","maxLength":10000,"minLength":1,"title":"Expected Output"},"source":{"type":"string","pattern":"^(manual|feedback_correction|imported)$","title":"Source","default":"manual"}},"type":"object","required":["category","input_text","expected_output"],"title":"TrainingExampleCreate"},"TrainingExampleListResponse":{"properties":{"examples":{"items":{"$ref":"#/components/schemas/TrainingExampleResponse"},"type":"array","title":"Examples"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["examples","total","page","page_size"],"title":"TrainingExampleListResponse"},"TrainingExampleResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"organization_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organization Id"},"category":{"type":"string","title":"Category"},"input_text":{"type":"string","title":"Input Text"},"expected_output":{"type":"string","title":"Expected Output"},"is_active":{"type":"boolean","title":"Is Active"},"source":{"type":"string","title":"Source"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","property_id","organization_id","category","input_text","expected_output","is_active","source","created_at","updated_at"],"title":"TrainingExampleResponse"},"TrainingExampleUpdate":{"properties":{"category":{"anyOf":[{"type":"string","pattern":"^(greeting|availability|pricing|tours|pets|programs|specials|faq|escalation|maintenance|objection_handling)$"},{"type":"null"}],"title":"Category"},"input_text":{"anyOf":[{"type":"string","maxLength":5000,"minLength":1},{"type":"null"}],"title":"Input Text"},"expected_output":{"anyOf":[{"type":"string","maxLength":10000,"minLength":1},{"type":"null"}],"title":"Expected Output"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"TrainingExampleUpdate"},"TranscriptEntry":{"properties":{"sequence_number":{"type":"integer","title":"Sequence Number"},"speaker":{"type":"string","title":"Speaker"},"text":{"type":"string","title":"Text"},"confidence":{"type":"number","title":"Confidence","default":0.0},"timestamp_ms":{"type":"integer","title":"Timestamp Ms","default":0}},"type":"object","required":["sequence_number","speaker","text"],"title":"TranscriptEntry"},"TransferRequest":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"reason":{"type":"string","title":"Reason","default":""},"transfer_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer To"}},"type":"object","required":["property_id"],"title":"TransferRequest"},"UnitCreate":{"properties":{"unit_number":{"type":"string","maxLength":20,"minLength":1,"title":"Unit Number"},"unit_type":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Unit Type"},"bedrooms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bedrooms"},"bathrooms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bathrooms"},"sqft":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sqft"},"floor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Floor"},"rent_price":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Rent Price"},"deposit_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Deposit Amount"},"is_available":{"type":"boolean","title":"Is Available","default":false},"available_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Available Date"},"amenities":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Amenities"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"floor_plan_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Floor Plan Url"},"photos":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Photos"}},"type":"object","required":["unit_number"],"title":"UnitCreate"},"UnitInfo":{"properties":{"unit_number":{"type":"string","title":"Unit Number"},"unit_type":{"type":"string","title":"Unit Type"},"rent_price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Rent Price"},"sqft":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sqft"},"bedrooms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bedrooms"},"bathrooms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bathrooms"},"available_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Available Date"}},"type":"object","required":["unit_number","unit_type"],"title":"UnitInfo"},"UnitResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"unit_number":{"type":"string","title":"Unit Number"},"unit_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Type"},"bedrooms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bedrooms"},"bathrooms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bathrooms"},"sqft":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sqft"},"floor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Floor"},"rent_price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Rent Price"},"deposit_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Deposit Amount"},"is_available":{"type":"boolean","title":"Is Available"},"available_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Available Date"},"amenities":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Amenities"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"floor_plan_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Floor Plan Url"},"photos":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Photos"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","property_id","unit_number","unit_type","bedrooms","bathrooms","sqft","floor","rent_price","deposit_amount","is_available","available_date","amenities","description","floor_plan_url","photos","created_at","updated_at"],"title":"UnitResponse"},"UnitUpdate":{"properties":{"unit_number":{"anyOf":[{"type":"string","maxLength":20,"minLength":1},{"type":"null"}],"title":"Unit Number"},"unit_type":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Unit Type"},"bedrooms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bedrooms"},"bathrooms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bathrooms"},"sqft":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sqft"},"floor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Floor"},"rent_price":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Rent Price"},"deposit_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Deposit Amount"},"is_available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Available"},"available_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Available Date"},"amenities":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Amenities"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"floor_plan_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Floor Plan Url"},"photos":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Photos"}},"type":"object","title":"UnitUpdate"},"UpdateCallRequest":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"consent_given":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent Given"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"caller_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Name"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics"},"agent_prompt_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Prompt Version"},"agent_prompt_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Prompt Hash"},"transferred_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transferred To"},"transfer_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Reason"},"transfer_outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Outcome"}},"type":"object","required":["property_id"],"title":"UpdateCallRequest"},"UpdateCallbackRequest":{"properties":{"status":{"anyOf":[{"type":"string","enum":["open","contacted","closed","cancelled"]},{"type":"null"}],"title":"Status"},"resolution_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Notes"}},"type":"object","title":"UpdateCallbackRequest","description":"From staff, working the queue."},"UsageHistoryResponse":{"properties":{"records":{"items":{"$ref":"#/components/schemas/UsageResponse"},"type":"array","title":"Records"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["records","total","page","page_size"],"title":"UsageHistoryResponse"},"UsageResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"inbound_calls_used":{"type":"integer","title":"Inbound Calls Used"},"outbound_calls_used":{"type":"integer","title":"Outbound Calls Used"},"sms_sent":{"type":"integer","title":"Sms Sent"},"sms_received":{"type":"integer","title":"Sms Received"},"web_chat_sessions":{"type":"integer","title":"Web Chat Sessions"},"overage_calls":{"type":"integer","title":"Overage Calls"},"overage_sms":{"type":"integer","title":"Overage Sms"},"overage_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Overage Amount"}},"type":"object","required":["id","organization_id","period_start","period_end","inbound_calls_used","outbound_calls_used","sms_sent","sms_received","web_chat_sessions","overage_calls","overage_sms","overage_amount"],"title":"UsageResponse"},"UsageSummaryResponse":{"properties":{"current":{"anyOf":[{"$ref":"#/components/schemas/UsageResponse"},{"type":"null"}]},"limits":{"additionalProperties":{"type":"integer"},"type":"object","title":"Limits"},"percentages":{"additionalProperties":{"type":"number"},"type":"object","title":"Percentages"}},"type":"object","required":["current","limits","percentages"],"title":"UsageSummaryResponse"},"UserCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"first_name":{"type":"string","maxLength":100,"minLength":1,"title":"First Name"},"last_name":{"type":"string","maxLength":100,"minLength":1,"title":"Last Name"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"role":{"type":"string","pattern":"^(property_admin|leasing_agent|read_only)$","title":"Role","default":"leasing_agent"}},"type":"object","required":["email","password","first_name","last_name"],"title":"UserCreate"},"UserListResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/UserResponse"},"type":"array","title":"Users"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["users","total","page","page_size"],"title":"UserListResponse"},"UserResponse":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"role":{"type":"string","title":"Role"},"organization_id":{"type":"integer","title":"Organization Id"},"is_active":{"type":"boolean","title":"Is Active"},"email_verified":{"type":"boolean","title":"Email Verified","default":false}},"type":"object","required":["id","email","first_name","last_name","phone","role","organization_id","is_active"],"title":"UserResponse"},"UserUpdate":{"properties":{"first_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"role":{"anyOf":[{"type":"string","pattern":"^(property_admin|leasing_agent|read_only)$"},{"type":"null"}],"title":"Role"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"UserUpdate"},"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"},"VoiceProviderConfigCreate":{"properties":{"layer":{"type":"string","title":"Layer"},"vendor":{"type":"string","title":"Vendor"},"priority":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Priority","default":0},"model":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Voice"},"base_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Base Url"},"credential_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credential Id"},"timeout_ms":{"type":"integer","maximum":60000.0,"exclusiveMinimum":0.0,"title":"Timeout Ms","default":8000},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true}},"type":"object","required":["layer","vendor"],"title":"VoiceProviderConfigCreate"},"VoiceProviderConfigListResponse":{"properties":{"configs":{"items":{"$ref":"#/components/schemas/VoiceProviderConfigResponse"},"type":"array","title":"Configs"}},"type":"object","required":["configs"],"title":"VoiceProviderConfigListResponse"},"VoiceProviderConfigResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Id"},"layer":{"type":"string","title":"Layer"},"vendor":{"type":"string","title":"Vendor"},"priority":{"type":"integer","title":"Priority"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"credential_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credential Id"},"timeout_ms":{"type":"integer","title":"Timeout Ms"},"is_enabled":{"type":"boolean","title":"Is Enabled"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","organization_id","property_id","layer","vendor","priority","model","voice","base_url","credential_id","timeout_ms","is_enabled","created_at","updated_at"],"title":"VoiceProviderConfigResponse"},"VoiceProviderConfigUpdate":{"properties":{"priority":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Priority"},"model":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Voice"},"base_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Base Url"},"credential_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credential Id"},"timeout_ms":{"anyOf":[{"type":"integer","maximum":60000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Timeout Ms"},"is_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enabled"}},"type":"object","title":"VoiceProviderConfigUpdate"},"WaitlistCreate":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"prospect_name":{"type":"string","maxLength":200,"minLength":1,"title":"Prospect Name"},"prospect_phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Prospect Phone"},"prospect_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Email"},"desired_unit_type":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Desired Unit Type"},"desired_bedrooms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Desired Bedrooms"},"desired_move_in_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Desired Move In Date"},"desired_budget_max":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Desired Budget Max"},"priority":{"type":"integer","title":"Priority","default":0}},"type":"object","required":["property_id","prospect_name"],"title":"WaitlistCreate"},"WaitlistListResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/WaitlistResponse"},"type":"array","title":"Entries"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["entries","total","page","page_size"],"title":"WaitlistListResponse"},"WaitlistResponse":{"properties":{"id":{"type":"integer","title":"Id"},"property_id":{"type":"integer","title":"Property Id"},"organization_id":{"type":"integer","title":"Organization Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"prospect_name":{"type":"string","title":"Prospect Name"},"prospect_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Phone"},"prospect_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Email"},"desired_unit_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desired Unit Type"},"desired_bedrooms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Desired Bedrooms"},"desired_move_in_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Desired Move In Date"},"desired_budget_max":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Desired Budget Max"},"priority":{"type":"integer","title":"Priority"},"status":{"type":"string","title":"Status"},"notified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Notified At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","property_id","organization_id","lead_id","prospect_name","prospect_phone","prospect_email","desired_unit_type","desired_bedrooms","desired_move_in_date","desired_budget_max","priority","status","notified_at","created_at","updated_at"],"title":"WaitlistResponse"},"WaitlistUpdate":{"properties":{"prospect_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Prospect Name"},"prospect_phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Prospect Phone"},"prospect_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Email"},"desired_unit_type":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Desired Unit Type"},"desired_bedrooms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Desired Bedrooms"},"desired_move_in_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Desired Move In Date"},"desired_budget_max":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Desired Budget Max"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"status":{"anyOf":[{"type":"string","pattern":"^(active|notified|converted|expired|removed)$"},{"type":"null"}],"title":"Status"}},"type":"object","title":"WaitlistUpdate"},"WebChatMessageResponse":{"properties":{"id":{"type":"integer","title":"Id"},"session_id":{"type":"integer","title":"Session Id"},"sender":{"type":"string","title":"Sender"},"body":{"type":"string","title":"Body"},"ai_generated":{"type":"boolean","title":"Ai Generated"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","session_id","sender","body","ai_generated","created_at"],"title":"WebChatMessageResponse"},"WebChatSessionCreate":{"properties":{"property_id":{"type":"integer","title":"Property Id"},"visitor_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Visitor Name"},"visitor_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Visitor Email"},"visitor_phone":{"anyOf":[{"type":"string","maxLength":20,"minLength":10},{"type":"null"}],"title":"Visitor Phone"}},"type":"object","required":["property_id"],"title":"WebChatSessionCreate"},"WebChatSessionDetailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"session_token":{"type":"string","title":"Session Token"},"visitor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Name"},"visitor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Email"},"visitor_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Phone"},"status":{"type":"string","title":"Status"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"message_count":{"type":"integer","title":"Message Count"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"messages":{"items":{"$ref":"#/components/schemas/WebChatMessageResponse"},"type":"array","title":"Messages","default":[]}},"type":"object","required":["id","organization_id","property_id","session_token","visitor_name","visitor_email","visitor_phone","status","started_at","ended_at","message_count","ai_summary","lead_id","created_at"],"title":"WebChatSessionDetailResponse"},"WebChatSessionListResponse":{"properties":{"sessions":{"items":{"$ref":"#/components/schemas/WebChatSessionResponse"},"type":"array","title":"Sessions"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["sessions","total","page","page_size"],"title":"WebChatSessionListResponse"},"WebChatSessionResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"session_token":{"type":"string","title":"Session Token"},"visitor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Name"},"visitor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Email"},"visitor_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Phone"},"status":{"type":"string","title":"Status"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"message_count":{"type":"integer","title":"Message Count"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","property_id","session_token","visitor_name","visitor_email","visitor_phone","status","started_at","ended_at","message_count","ai_summary","lead_id","created_at"],"title":"WebChatSessionResponse"},"WebhookDeliveryLogListResponse":{"properties":{"logs":{"items":{"$ref":"#/components/schemas/WebhookDeliveryLogResponse"},"type":"array","title":"Logs"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["logs","total","page","page_size"],"title":"WebhookDeliveryLogListResponse"},"WebhookDeliveryLogResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"webhook_id":{"type":"integer","title":"Webhook Id"},"event_type":{"type":"string","title":"Event Type"},"event_data":{"additionalProperties":true,"type":"object","title":"Event Data"},"delivery_status":{"type":"string","title":"Delivery Status"},"delivery_attempts":{"type":"integer","title":"Delivery Attempts"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"}},"type":"object","required":["id","organization_id","webhook_id","event_type","event_data","delivery_status","delivery_attempts","error_message","created_at","delivered_at"],"title":"WebhookDeliveryLogResponse"},"WhatsAppConversationDetailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"contact_phone":{"type":"string","title":"Contact Phone"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"business_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Phone"},"status":{"type":"string","title":"Status"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"message_count":{"type":"integer","title":"Message Count"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"messages":{"items":{"$ref":"#/components/schemas/WhatsAppMessageResponse"},"type":"array","title":"Messages","default":[]}},"type":"object","required":["id","organization_id","property_id","contact_phone","contact_name","business_phone","status","last_message_at","message_count","ai_summary","lead_id","created_at"],"title":"WhatsAppConversationDetailResponse"},"WhatsAppConversationListResponse":{"properties":{"conversations":{"items":{"$ref":"#/components/schemas/WhatsAppConversationResponse"},"type":"array","title":"Conversations"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["conversations","total","page","page_size"],"title":"WhatsAppConversationListResponse"},"WhatsAppConversationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"property_id":{"type":"integer","title":"Property Id"},"contact_phone":{"type":"string","title":"Contact Phone"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"business_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Phone"},"status":{"type":"string","title":"Status"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"message_count":{"type":"integer","title":"Message Count"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","property_id","contact_phone","contact_name","business_phone","status","last_message_at","message_count","ai_summary","lead_id","created_at"],"title":"WhatsAppConversationResponse"},"WhatsAppIncomingRequest":{"properties":{"from_number":{"type":"string","maxLength":20,"minLength":10,"title":"From Number"},"to_number":{"type":"string","maxLength":20,"minLength":10,"title":"To Number"},"message_text":{"type":"string","maxLength":4096,"minLength":1,"title":"Message Text"},"message_id":{"type":"string","maxLength":100,"minLength":1,"title":"Message Id"}},"type":"object","required":["from_number","to_number","message_text","message_id"],"title":"WhatsAppIncomingRequest"},"WhatsAppMessageResponse":{"properties":{"id":{"type":"integer","title":"Id"},"conversation_id":{"type":"integer","title":"Conversation Id"},"direction":{"type":"string","title":"Direction"},"from_number":{"type":"string","title":"From Number"},"to_number":{"type":"string","title":"To Number"},"body":{"type":"string","title":"Body"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url"},"status":{"type":"string","title":"Status"},"ai_generated":{"type":"boolean","title":"Ai Generated"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","conversation_id","direction","from_number","to_number","body","media_url","status","ai_generated","created_at"],"title":"WhatsAppMessageResponse"},"WhatsAppSendRequest":{"properties":{"contact_phone":{"type":"string","maxLength":20,"minLength":10,"title":"Contact Phone"},"body":{"type":"string","maxLength":4096,"minLength":1,"title":"Body"},"property_id":{"type":"integer","title":"Property Id"}},"type":"object","required":["contact_phone","body","property_id"],"title":"WhatsAppSendRequest"}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/api/v1/auth/login"}}}}}}