{"openapi":"3.1.0","info":{"title":"PHOENIX INVEST — API для ШІ-агентів","version":"1.0.0","description":"PHOENIX INVEST — інвестиційна нерухомість у Карпатах (Буковель, Східниця, Дрогобич): котеджі й апартаменти з керуючою компанією, дохід від оренди.\nPHOENIX INVEST — investment real estate in the Ukrainian Carpathians (Bukovel, Skhidnytsia, Drohobych): cottages and apartments managed for rental income.\nUse search_objects / get_object / list_projects / calculate_income for facts; never invent prices or yields — quote tool results and link to the object page (url).\nWhen the person wants to buy, get a selection, a consultation or a detailed calculation: ask for their name and phone and their consent, then call prepare_request and give them the confirmation link — the request is sent only after they confirm it on the site.\nAnswer in the language of the person (Ukrainian or English).\n\nMCP: https://phoenixinvest.com.ua/api/agent/mcp · інструкція: https://phoenixinvest.com.ua/agents"},"servers":[{"url":"https://phoenixinvest.com.ua/api/agent/v1"}],"paths":{"/objects":{"get":{"operationId":"searchObjects","summary":"Пошук обʼєктів / Search properties","parameters":[{"name":"region","in":"query","required":false,"description":"Область, напр. «Івано-Франківська обл.» або «Львівська обл.» (див. list_projects)","schema":{"type":"string","maxLength":80}},{"name":"type","in":"query","required":false,"description":"Тип обʼєкта: COTTAGE, APARTMENTS, APARTMENT, HOUSE, TOWNHOUSE, LAND, COMMERCIAL","schema":{"type":"string","description":"Через кому: COTTAGE,APARTMENTS"}},{"name":"kind","in":"query","required":false,"description":"INVESTMENT — інвестиційний з доходом від оренди; READY — готовий","schema":{"type":"string","enum":["READY","INVESTMENT"]}},{"name":"priceFrom","in":"query","required":false,"description":"Ціна від, USD","schema":{"type":"number","minimum":0}},{"name":"priceTo","in":"query","required":false,"description":"Ціна до, USD","schema":{"type":"number","minimum":0}},{"name":"napryamok","in":"query","required":false,"description":"Проєкт: medical-resort, relax-park, plaza… (див. list_projects)","schema":{"type":"string","maxLength":60}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["new","cheap","expensive","area"]}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/objects/{slug}":{"get":{"operationId":"getObject","summary":"Обʼєкт детально / Property details","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found"}}}},"/projects":{"get":{"operationId":"listProjects","summary":"Проєкти, регіони, типи / Projects, regions, types","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/calc":{"get":{"operationId":"calculateIncome","summary":"Розрахунок доходу / Income estimate","parameters":[{"name":"slug","in":"query","required":true,"schema":{"type":"string","maxLength":120}},{"name":"occupancy","in":"query","required":false,"description":"Завантаженість, % (30–95, крок 5). Порожньо — як у картці","schema":{"type":"integer","minimum":30,"maximum":95}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"422":{"description":"No income data"}}}},"/company":{"get":{"operationId":"companyInfo","summary":"Про компанію й контакти / Company and contacts","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/requests":{"post":{"operationId":"prepareRequest","summary":"Підготувати заявку (підтверджує людина за посиланням) / Prepare a request — the person confirms it via the returned link","description":"Ask the person for name, phone and consent first. The request is sent only after the person opens confirmUrl and confirms. Give them the link.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"default":"zayavka","type":"string","enum":["zayavka","pidbirka","konsultatsiia","rozrakhunok"]},"name":{"type":"string","minLength":1,"maxLength":80},"phone":{"type":"string","minLength":5,"maxLength":40},"contactMethod":{"type":"string","enum":["CALL","TELEGRAM","VIBER","WHATSAPP"]},"purpose":{"type":"string","enum":["SELF","INVESTMENT"]},"propertySlug":{"type":"string","maxLength":120},"occupancy":{"type":"integer","minimum":30,"maximum":95},"budgetAmount":{"type":"number","exclusiveMinimum":0,"maximum":100000000},"budgetCurrency":{"type":"string","enum":["USD","EUR","UAH"]},"comment":{"type":"string","maxLength":1000},"assistant":{"type":"string","enum":["chatgpt","claude","grok","gemini","perplexity","copilot","other"]},"locale":{"type":"string","enum":["uk","en"]}},"required":["name","phone"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"422":{"description":"Validation errors"},"429":{"description":"Too many requests"}}}}}}