{"openapi":"3.1.0","info":{"title":"Relovisa AI guest agent API","version":"2026-05-27.stage1","description":"For AI assistants: first read https://tobira.ai/@relovisa/for-ai (facts, catalog with prices and ready actions in one short page). For anything it does not answer, talk to this agent through the guest JSON API at https://tobira.ai/api/v1/agents/relovisa/guest-agent.json: send each message with wait_seconds: 25 to get the reply in the same response, and poll with after=<last message id> to get only new messages. It is faster than the web chat, which is for humans, and is the only entry for AI-assistant services and consultation preparation. This agent has published services for AI assistants.\nSite index: https://tobira.ai/@relovisa/for-ai/index\nPublic, unauthenticated guest transport. Visiting AI assistants remain untrusted guests; payment is a human action."},"servers":[{"url":"https://tobira.ai"}],"paths":{"/@relovisa/ask":{"get":{"operationId":"askPublicQuestionReadOnly","description":"Single-turn, read-only public answer. This endpoint cannot book, capture contact details, or notify the owner. Tobira does not add q to product analytics, but the full request URL may still appear in CDN, proxy, server, or browser history and logs.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":2000}},{"name":"client","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":57,"description":"Optional declared agent product identifier, without personal data; analytics only. Stored lowercase: 2-40 ASCII letters, digits or hyphens starting with a letter, at most 4 digits before an optional /version (1-16 ASCII letters, digits, dots or hyphens starting with a digit). No colons, spaces, @ or +. Invalid supplied values become other."}},{"name":"model","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":57,"description":"Optional declared model identifier, without personal data; analytics only. Stored lowercase: 2-40 ASCII letters, digits or hyphens starting with a letter, at most 4 digits before an optional /version (1-16 ASCII letters, digits, dots or hyphens starting with a digit). No colons, spaces, @ or +. Invalid supplied values become other."}},{"name":"client","in":"header","required":false,"schema":{"type":"string","minLength":2,"maxLength":57,"description":"Optional declared agent product identifier, without personal data; analytics only. Stored lowercase: 2-40 ASCII letters, digits or hyphens starting with a letter, at most 4 digits before an optional /version (1-16 ASCII letters, digits, dots or hyphens starting with a digit). No colons, spaces, @ or +. Invalid supplied values become other."}},{"name":"model","in":"header","required":false,"schema":{"type":"string","minLength":2,"maxLength":57,"description":"Optional declared model identifier, without personal data; analytics only. Stored lowercase: 2-40 ASCII letters, digits or hyphens starting with a letter, at most 4 digits before an optional /version (1-16 ASCII letters, digits, dots or hyphens starting with a digit). No colons, spaces, @ or +. Invalid supplied values become other."}}],"responses":{"200":{"description":"Public-safe answer as text/plain or application/json according to Accept."},"404":{"description":"Agent not found or this per-agent surface is disabled."},"429":{"description":"Public request budget exceeded."}}}},"/api/v1/guest/session":{"post":{"operationId":"createGuestSession","parameters":[{"name":"client","in":"header","required":false,"schema":{"type":"string","minLength":2,"maxLength":57,"description":"Optional declared agent product identifier, without personal data; analytics only. Stored lowercase: 2-40 ASCII letters, digits or hyphens starting with a letter, at most 4 digits before an optional /version (1-16 ASCII letters, digits, dots or hyphens starting with a digit). No colons, spaces, @ or +. Invalid supplied values become other."}},{"name":"model","in":"header","required":false,"schema":{"type":"string","minLength":2,"maxLength":57,"description":"Optional declared model identifier, without personal data; analytics only. Stored lowercase: 2-40 ASCII letters, digits or hyphens starting with a letter, at most 4 digits before an optional /version (1-16 ASCII letters, digits, dots or hyphens starting with a digit). No colons, spaces, @ or +. Invalid supplied values become other."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSession"}}}},"responses":{"201":{"description":"Guest session created"},"4XX":{"description":"Validation, rate, or quota error"}}}},"/api/v1/guest/message":{"post":{"operationId":"sendGuestMessage","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessage"}}}},"responses":{"200":{"description":"Message accepted"},"4XX":{"description":"Validation or rate error"}}}},"/api/v1/guest/messages":{"get":{"operationId":"pollGuestMessages","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}},{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Guest-visible conversation messages"}}}},"/api/v1/guest/action":{"post":{"operationId":"runGuestAction","parameters":[{"name":"Authorization","in":"header","required":false,"description":"Bearer guest_session_token. The same token may instead be sent in the JSON body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestAction"}}}},"responses":{"200":{"description":"Action result; action does not end the guest session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestActionResult"}}}},"4XX":{"description":"Validation, rate, quota, or unavailable-action error"}}}}},"components":{"schemas":{"CreateSession":{"type":"object","required":["handle","visitor_type","transport"],"properties":{"client":{"type":"string","minLength":2,"maxLength":57,"description":"Optional declared agent product identifier, without personal data; analytics only. Stored lowercase: 2-40 ASCII letters, digits or hyphens starting with a letter, at most 4 digits before an optional /version (1-16 ASCII letters, digits, dots or hyphens starting with a digit). No colons, spaces, @ or +. Invalid supplied values become other."},"model":{"type":"string","minLength":2,"maxLength":57,"description":"Optional declared model identifier, without personal data; analytics only. Stored lowercase: 2-40 ASCII letters, digits or hyphens starting with a letter, at most 4 digits before an optional /version (1-16 ASCII letters, digits, dots or hyphens starting with a digit). No colons, spaces, @ or +. Invalid supplied values become other."},"handle":{"type":"string","const":"relovisa"},"visitor_type":{"type":"string","const":"visitor_ai_agent"},"transport":{"type":"string","const":"json_guest_api"},"source":{"type":"string","enum":["public_address","site_agent"]},"response_format":{"type":"string","enum":["text","markdown","json","json_with_structured"]}}},"SendMessage":{"type":"object","required":["token","content"],"properties":{"token":{"type":"string"},"content":{"type":"string","minLength":1},"wait_seconds":{"type":"integer","minimum":0,"maximum":25,"default":0}}},"GuestAction":{"type":"object","required":["action"],"properties":{"token":{"type":"string","description":"Guest session token; optional when sent as a Bearer token."},"action":{"type":"string","enum":["list_consultations","list_available_slots","prepare_booking","submit_authorized_contact","check_booking_status"]},"input":{"oneOf":[{"$ref":"#/components/schemas/ListConsultationsInput"},{"$ref":"#/components/schemas/ListAvailableSlotsInput"},{"$ref":"#/components/schemas/PrepareBookingInput"},{"$ref":"#/components/schemas/SubmitAuthorizedContactInput"},{"$ref":"#/components/schemas/CheckBookingStatusInput"}]}}},"ListConsultationsInput":{"type":"object","additionalProperties":false},"GuestActionResult":{"type":"object","properties":{"ok":{"type":"boolean"},"action":{"type":"string","enum":["list_consultations","list_available_slots","prepare_booking","submit_authorized_contact","check_booking_status"]},"types":{"type":"array","items":{"$ref":"#/components/schemas/ConsultationType"}},"booking_id":{"type":"string","description":"Retain this ID for check_booking_status."},"state":{"type":"string","enum":["lead_captured","booking_preparing","booking_prepared","payment_pending","booking_confirmed"]},"status":{"type":"string","description":"Cancellation succeeds only with ok=true and status=canceled."},"already_canceled":{"type":"boolean"},"requires_user_payment":{"type":"boolean"},"checkout_url":{"type":"string","format":"uri","pattern":"^https://","description":"Human payment handoff. Never substitute a booking status page or construct a payment URL."},"code":{"type":"string","description":"Inspect on failure; HTTP success alone is not booking confirmation."}}},"ConsultationType":{"type":"object","required":["id","name","questionnaire","answers_schema"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"questionnaire":{"type":"array","items":{"$ref":"#/components/schemas/BookingQuestion"}},"answers_schema":{"type":"object"},"preparation_guidance":{"type":"string","description":"Consultation preparation advice for AI-assistant services; booking is not blocked."}}},"BookingQuestion":{"type":"object","required":["id","label","type"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["text","single","multi","country"]},"required":{"type":"boolean"},"multiple":{"type":"boolean"},"options":{"type":"array","items":{"type":"string"}}}},"ListAvailableSlotsInput":{"type":"object","required":["type_id"],"description":"Supply both from and to, or omit both to use days from the current time.","dependentRequired":{"from":["to"],"to":["from"]},"properties":{"type_id":{"type":"string"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"tz":{"type":"string","default":"UTC"},"days":{"type":"integer","minimum":1,"maximum":31,"default":7}}},"PrepareBookingInput":{"type":"object","required":["type_id","start","name","email","authorized_by_user","idempotency_key"],"properties":{"type_id":{"type":"string"},"start":{"type":"string","format":"date-time"},"name":{"type":"string"},"email":{"type":"string","format":"email"},"tz":{"type":"string"},"answers":{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}]}},"note":{"type":"string"},"authorized_by_user":{"type":"boolean","const":true},"idempotency_key":{"type":"string","minLength":1,"description":"Stable key reused for retries; prevents a duplicate booking."}},"oneOf":[{"properties":{"type_id":{"const":"strategy-40"},"answers":{"type":"object","additionalProperties":false,"properties":{"goal":{"type":"string","enum":["Choose a country","Visa or residence","Work or Blue Card","Family move","Business or startup"]},"countries":{"type":"array","items":{"type":"string","enum":["PT","ES","FR","DE","IT","NL","GB","US","AE","CY","GR","HU"]},"minItems":1,"uniqueItems":true}},"required":["goal","countries"]}},"required":["answers"]},{"properties":{"type_id":{"const":"founder-300"},"answers":{"type":"object","additionalProperties":false,"properties":{"goal":{"type":"string","enum":["Choose a country","Visa or residence","Work or Blue Card","Family move","Business or startup"]},"countries":{"type":"array","items":{"type":"string","enum":["PT","ES","FR","DE","IT","NL","GB","US","AE","CY","GR","HU"]},"minItems":1,"uniqueItems":true}},"required":["goal","countries"]}},"required":["answers"]},{"properties":{"type_id":{"not":{"enum":["strategy-40","founder-300"]}}}}]},"SubmitAuthorizedContactInput":{"type":"object","required":["email","authorized_by_user"],"properties":{"email":{"type":"string","format":"email"},"authorized_by_user":{"type":"boolean","const":true}}},"CheckBookingStatusInput":{"type":"object","required":["booking_id"],"properties":{"booking_id":{"type":"string"}}}}},"x-tobira":{"guest_agent_json":"https://tobira.ai/api/v1/agents/relovisa/guest-agent.json","conversation_actions":["ask_question"],"actions":["ask_question","list_consultations","list_available_slots","prepare_booking","submit_authorized_contact","check_booking_status"],"action_api_actions":["list_consultations","list_available_slots","prepare_booking","submit_authorized_contact","check_booking_status"],"conversation":{"mode":"multi_turn","soft_limit":30,"grace":5,"hard_cap":50,"actions_do_not_end_session":true},"languages":["en","ru","ar"],"consent":{"authorized_by_user_required":true,"text":"Obtain the user’s explicit authorization before submitting their contact details or preparing a booking.","privacy_url":"https://relovisa.co/privacy-policy"},"limits":{"soft_limit":30,"grace":5,"hard_cap":50},"protocol_state":"Returned in session, message, poll, and action responses; includes turns_remaining when available.","turns_remaining":"Number of guest turns before the current soft/hard limit; absent when unavailable.","booking_states":["lead_captured","booking_prepared","payment_pending","booking_confirmed"],"booking_transient_states":["booking_preparing"],"booking_types":[{"i18n":{"ru":{"name":"Стратегическая сессия с кейс-менеджером","bullets":["Какой маршрут подходит и есть ли законный путь","Реалистичные сроки и порядок шагов","Отчёт, план и полная смета письменно"],"category":"Консультация","description":"Есть цель и страна на примете, и нужен прямой ответ про маршрут, сроки и стоимость.","route_question":"Что входит в стратегическую консультацию за €40 и как на неё записаться?"}},"id":"strategy-40","name":"Strategy session with a case manager","price":40,"currency":"EUR","description":"You have a goal and a country in mind and want a straight answer on route, timing and cost.","category":"Consultation","image_url":"https://relovisa.co/assets/home/relovisa-scenic-city-lake-960.jpg","route_question":"What does the €40 strategy session include and how do I book it?","bullets":["Which route fits, and whether a viable one exists","Realistic timing and the order of steps","Report, plan and full cost scope in writing"],"questionnaire":[{"i18n":{"ru":{"label":"Что вы хотите выяснить?","options":["Выбрать страну","Виза или ВНЖ","Работа или Blue Card","Переезд с семьёй","Бизнес или стартап"]}},"id":"goal","label":"What do you want to figure out?","type":"single","options":["Choose a country","Visa or residence","Work or Blue Card","Family move","Business or startup"],"required":true},{"i18n":{"ru":{"label":"Какие страны вас интересуют?"}},"id":"countries","label":"Which countries interest you?","type":"country","options":["PT","ES","FR","DE","IT","NL","GB","US","AE","CY","GR","HU"],"required":true,"multiple":true}],"card":{"i18n":{"ru":{"policy":"Перенос и отмена бесплатно не позже чем за 24 часа до встречи, до 3 раз. Если встреча не помогла, напишите нам в течение 7 дней, и мы вернём €40 полностью.","details":["Видеозвонок на 30 минут на русском или английском. Ответьте на пару вопросов, выберите время и оплатите. Приглашение придёт на почту.","В течение 1 рабочего дня пришлём на почту отчёт по встрече, стратегический план и анализ команды.","€40 засчитываются в пакет, если вы оплатите его в течение двух недель после встречи. Объём и цена фиксируются в письменном предложении до подписания.","Если законного пути нет, скажем прямо на встрече, до того как вы потратите месяцы на документы."],"headline":"Маршрут и смета за 30 минут","host_bio":"5 лет в иммиграции и релокации. Ведёт всех премиальных клиентов и партнёров: 200+ кейсов лично и 3000+ вместе с юристами и как руководитель проектов.","highlight":"Вернём €40 в течение 7 дней, если встреча не помогла","host_role":"COO, главный кейс-менеджер"}},"headline":"Your route and costs in 30 minutes","highlight":"Full €40 refund within 7 days if the session didn't help","host_role":"COO · Chief Case Manager","host_bio":"5 years in immigration and relocation. Leads all our premium clients and partners: 200+ cases personally and 3,000+ together with lawyers and as project lead.","policy":"Reschedule or cancel for free up to 24 hours before the session, up to 3 times. If the session didn't help, tell us within 7 days and we refund the full €40.","details":["A 30-minute video call in English or Russian. Answer a few short questions, choose a time and pay securely. The invite arrives by email.","Within 1 working day you receive the session report, a strategic plan and our team's analysis by email.","The €40 is credited to your package if you pay for it within two weeks of the session. Scope and price are fixed in a written proposal before you sign.","If we don't see a viable legal route, we tell you in the session, before you invest months in documents."]},"booking":{"duration_min":30,"i18n":{"ru":{"host_name":"Оля Немировски"}},"host_name":"Olia Nemirovski","host_photo_url":"https://relovisa.co/assets/team/approved/olia-nemirovski.jpg"},"answers_schema":{"type":"object","additionalProperties":false,"properties":{"goal":{"type":"string","enum":["Choose a country","Visa or residence","Work or Blue Card","Family move","Business or startup"]},"countries":{"type":"array","items":{"type":"string","enum":["PT","ES","FR","DE","IT","NL","GB","US","AE","CY","GR","HU"]},"minItems":1,"uniqueItems":true}},"required":["goal","countries"]}},{"i18n":{"ru":{"name":"Брейншторм с основателем Владом","bullets":["ВНЖ, бизнес, семья и налоги в одном плане","Сравнение стран и запасной вариант, где он защищает","Риски заранее и как их снизить"],"category":"Консультация","description":"Основатели, инвесторы и семьи, у которых в переезде есть бизнес, несколько стран или прошлый отказ.","route_question":"Когда стоит выбрать 90-минутный разбор с основателем и что я получу?"}},"id":"founder-300","name":"Founder brainstorm with Vlad","price":300,"currency":"EUR","description":"Founders, investors and families whose move involves a business, several countries or a past refusal.","category":"Consultation","image_url":"https://relovisa.co/assets/home/relovisa-scenic-city-lake-960.jpg","route_question":"When is the 90-minute founder brainstorm the right choice, and what do I get from it?","bullets":["Residency, business, family and taxes in one plan","Countries compared, with a backup where it protects you","Risks named up front, and how to reduce them"],"questionnaire":[{"i18n":{"ru":{"label":"Что вы хотите выяснить?","options":["Выбрать страну","Виза или ВНЖ","Работа или Blue Card","Переезд с семьёй","Бизнес или стартап"]}},"id":"goal","label":"What do you want to figure out?","type":"single","options":["Choose a country","Visa or residence","Work or Blue Card","Family move","Business or startup"],"required":true},{"i18n":{"ru":{"label":"Какие страны вас интересуют?"}},"id":"countries","label":"Which countries interest you?","type":"country","options":["PT","ES","FR","DE","IT","NL","GB","US","AE","CY","GR","HU"],"required":true,"multiple":true}],"card":{"i18n":{"ru":{"policy":"Перенос и отмена бесплатно не позже чем за 24 часа до встречи, до 3 раз.","details":["Видеозвонок с Владом на 90 минут на русском или английском про всю ситуацию: ВНЖ, бизнес, семья, налоги и сроки.","В течение 1 рабочего дня: отчёт по встрече, стратегический план и анализ команды на почту.","Если в течение двух недель после встречи вы выберете Premium или Executive, €300 полностью засчитываются в пакет. На Essential засчёт не распространяется.","Неверный маршрут обходится дороже этой встречи: месяцы ожидания, новые пошлины и повторная подача. 90 минут проверяют решение до того, как за него платить."],"headline":"Один план для бизнеса, семьи и ВНЖ","host_bio":"Основал и продал ведущий иммиграционный tech-бизнес: десятки тысяч иммиграционных клиентов, 80+ иммиграционных юристов в 30+ странах. Сейчас ведёт премиальный консалтинг Relovisa и строит AI-агента по иммиграции. TechCrunch Battlefield 200 · #1 Product of the Day на Product Hunt.","highlight":"Засчитываем полностью в Premium или Executive в течение 2 недель","host_role":"Основатель","logos_title":"Работал с 20+ глобальными компаниями"}},"headline":"One plan for your business, family and residency","highlight":"Credited in full to Premium or Executive within 2 weeks","host_role":"Founder","host_bio":"Built and exited a leading immigration-tech company: tens of thousands of immigration clients, 80+ immigration lawyers in 30+ countries. Now runs Relovisa's premium advisory and builds an AI immigration agent. TechCrunch Battlefield 200 · #1 Product of the Day on Product Hunt.","policy":"Reschedule or cancel for free up to 24 hours before the session, up to 3 times.","logos_title":"Worked with 20+ global companies","details":["A 90-minute video call with Vlad in English or Russian on your whole situation: residency, business, family, taxes and timing.","Within 1 working day: the session report, a strategic plan and our team's analysis by email.","If you choose Premium or Executive within two weeks of the session, the full €300 is credited to the package. It does not apply to Essential.","A wrong route costs more than this meeting: months of waiting, new fees and a second application. 90 minutes test the decision before you pay for it."],"testimonial":{"i18n":{"ru":{"text":"Relovisa разобралась в моём нестандартном кейсе и взяла на себя большую часть бумажной работы. Теперь у меня ВНЖ Португалии. Спасибо!"}},"text":"Relovisa understood my unusual case and handled most of the paperwork. Now I have a Portuguese residence permit. Thank you!","author":"Andrew Litterman"},"logos":[{"src":"https://upload.wikimedia.org/wikipedia/commons/c/c3/PwC_Company_Logo.svg","alt":"PwC"},{"src":"https://upload.wikimedia.org/wikipedia/commons/e/ed/Logo_of_Deloitte.svg","alt":"Deloitte"},{"src":"https://upload.wikimedia.org/wikipedia/commons/8/87/Unilever_text_logo.svg","alt":"Unilever"},{"src":"https://upload.wikimedia.org/wikipedia/commons/8/82/PepsiCo_%282025%2C_wordmark%29.svg","alt":"PepsiCo"},{"src":"https://upload.wikimedia.org/wikipedia/commons/c/ce/Coca-Cola_logo.svg","alt":"Coca-Cola"}]},"booking":{"duration_min":90,"i18n":{"ru":{"host_name":"Влад Шипилов"}},"host_name":"Vlad Shipilov","host_photo_url":"https://relovisa.co/assets/team/approved/vlad-shipilov.jpg"},"answers_schema":{"type":"object","additionalProperties":false,"properties":{"goal":{"type":"string","enum":["Choose a country","Visa or residence","Work or Blue Card","Family move","Business or startup"]},"countries":{"type":"array","items":{"type":"string","enum":["PT","ES","FR","DE","IT","NL","GB","US","AE","CY","GR","HU"]},"minItems":1,"uniqueItems":true}},"required":["goal","countries"]}}],"payment_pending_requires_checkout_url":true,"payment_is_human_action":true}}