{"openapi":"3.1.0","info":{"title":"Five Gables B&B availability","version":"2026-11-19","description":"Five Gables B&B is one private guest suite in Qualicum Beach, BC, run by Anna and Vrat. This page is for AI assistants and agents helping someone plan or book a stay: what you can rely on, how to check availability, and how to start a booking. The same facts are in /llms.txt. Nothing here books or charges anything: give the guest the bookingUrl, where they see the total and pay.","contact":{"email":"fivegables@stayinqualicum.ca","url":"https://stayinqualicum.ca/for-agents"}},"servers":[{"url":"https://stayinqualicum.ca"}],"paths":{"/api/availability/check":{"get":{"operationId":"checkStay","summary":"Is the suite open for these dates?","description":"The simplest way to answer \"is it free on these dates?\": one request, our minimum-stay rules already applied. Prefer this over working it out from the full calendar below.","parameters":[{"name":"checkIn","in":"query","required":true,"description":"Arrival date (YYYY-MM-DD).","schema":{"type":"string","format":"date","examples":["2026-11-13"]}},{"name":"checkOut","in":"query","required":true,"description":"Departure date (YYYY-MM-DD).","schema":{"type":"string","format":"date","examples":["2026-11-13"]}},{"name":"guests","in":"query","required":false,"description":"total number of people, children included (at most 2 adults).","schema":{"type":"integer","minimum":1,"maximum":6}}],"responses":{"200":{"description":"The answer for this stay.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StayCheck"}}}},"400":{"description":"checkIn and checkOut must be valid dates (YYYY-MM-DD), with checkOut after checkIn.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"usage":{"type":"string"}},"required":["error","usage"]}}}}}}},"/api/availability":{"get":{"operationId":"getCalendar","summary":"Every blocked night for the next year","description":"One JSON document with every night for the next year, for questions like \"when is the next free weekend?\". Fetch it once per question; it changes at most every 15 minutes.","responses":{"200":{"description":"The calendar.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Calendar"}}}}}}}},"components":{"schemas":{"StayCheck":{"type":"object","properties":{"ok":{"type":"boolean","description":"false when our calendar couldn't be read."},"available":{"type":["boolean","null"],"description":"true or false; null when we couldn't read our calendar (send the guest to the booking page, which checks live)."},"checkIn":{"type":"string","format":"date","examples":["2026-11-13"]},"checkOut":{"type":"string","format":"date","examples":["2026-11-13"]},"nights":{"type":"integer"},"guests":{"type":["integer","null"]},"minNights":{"type":"integer","description":"the minimum stay for this arrival date."},"reasons":{"type":"array","description":"why not, as { code, message }. Codes: booked (a night is taken or not yet open for booking), min_stay, past, beyond_window.","items":{"type":"object","properties":{"code":{"type":"string","enum":["booked","min_stay","past","beyond_window"]},"message":{"type":"string"}},"required":["code","message"]}},"bookingUrl":{"type":"string","format":"uri","description":"our booking page with the dates and party size filled in. Give this to the guest."},"alternatives":{"type":"array","description":"when not available: up to 3 open stays of the same length near the requested dates, each with its own bookingUrl.","items":{"type":"object","properties":{"checkIn":{"type":"string","format":"date","examples":["2026-11-13"]},"checkOut":{"type":"string","format":"date","examples":["2026-11-13"]},"nights":{"type":"integer"},"bookingUrl":{"type":"string","format":"uri"}},"required":["checkIn","checkOut","nights","bookingUrl"]}},"updatedAt":{"type":["string","null"],"format":"date-time"},"note":{"type":"string"}},"required":["ok","available","checkIn","checkOut","nights","minNights","reasons","bookingUrl","alternatives"]},"Calendar":{"type":"object","properties":{"ok":{"type":"boolean","description":"false when we couldn't read our calendar. Availability is then unknown: send the guest to the booking page, which always checks live."},"updatedAt":{"type":"string","description":"when our calendar was last read (ISO timestamp)."},"from":{"type":"string","description":"the first and last night covered (YYYY-MM-DD, inclusive)."},"to":{"type":"string","description":"the first and last night covered (YYYY-MM-DD, inclusive)."},"blockedNights":{"type":"array","items":{"type":"string","format":"date","examples":["2026-11-13"]},"description":"nights that can't be booked: already taken, or beyond the booking window (we open bookings about 9 months ahead, so the later nights of the year are blocked until then). A stay is available when none of its nights are in the list. Check-out on a blocked night's date is fine (it's the morning the next guest arrives); arrival on it is not. For dates past the window, the guest can email us."},"minNights":{"type":"integer","description":"the base minimum stay."}}}}}}