{"openapi":"3.1.0","info":{"title":"Secret City Adventures — Public API","version":"1.0.0","description":"Read-only data about Secret City Adventures' immersive escape games and theatrical experiences in Toronto, Vancouver, and Boston: the catalog, venues, and live booking availability. Booking itself happens on Bookeo via each experience's bookingUrl.","contact":{"url":"https://www.secretcityadventures.com/contact"}},"servers":[{"url":"https://booking.secretcityadventures.com"}],"paths":{"/api/v1/membership-campaign/config":{"get":{"summary":"Get the public founding-membership campaign configuration","operationId":"getMembershipCampaignConfig","description":"Returns proposed tiers, vote options, consent copy, and feature visibility. Private scoring weights and operational limits are not exposed.","responses":{"200":{"description":"Public campaign configuration"},"403":{"description":"Origin not allowed"}}}},"/api/v1/membership-campaign/progress":{"get":{"summary":"Get aggregate membership campaign progress","operationId":"getMembershipCampaignProgress","description":"Returns completed-vote and qualified-reservation totals plus aggregate option counts. It never returns contact details, feedback, scores, or individual records.","responses":{"200":{"description":"Privacy-safe aggregate campaign totals"},"403":{"description":"Origin not allowed"}}}},"/api/v1/membership-campaign/votes":{"post":{"summary":"Create or replace an anonymous campaign vote","operationId":"upsertMembershipCampaignVote","description":"Upserts by campaign version and hashed anonymous-session identifier. Requires a Turnstile token for the membership_vote action.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Vote saved; privacy-safe aggregate totals returned"},"400":{"description":"Invalid or automated submission"},"403":{"description":"Origin or Turnstile verification rejected"},"429":{"description":"IP or session rate limit exceeded"},"503":{"description":"Turnstile is not configured"}}}},"/api/v1/membership-campaign/leads":{"post":{"summary":"Submit a no-charge founding reservation","operationId":"submitMembershipCampaignLead","description":"Requires an Idempotency-Key header and a Turnstile token for the membership_lead action. No payment or checkout is created.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Existing normalized-email reservation returned"},"201":{"description":"Reservation created with referral code"},"400":{"description":"Invalid request or missing idempotency key"},"403":{"description":"Origin or Turnstile verification rejected"},"409":{"description":"A completed vote is required first"},"429":{"description":"IP or session rate limit exceeded"},"503":{"description":"Verification or persistence unavailable"}}}},"/api/v1/experiences":{"get":{"summary":"List all experiences with prices, durations, and venues","operationId":"listExperiences","responses":{"200":{"description":"All experiences","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Experience"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}}}}},"/api/v1/venues":{"get":{"summary":"List venues with directions, transit, parking, and accessibility","operationId":"listVenues","responses":{"200":{"description":"All venues","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Venue"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}}}}},"/api/v1/venue-map":{"get":{"summary":"List map-ready venues grouped by city with their active games","operationId":"getVenueMap","responses":{"200":{"description":"Toronto, Vancouver, and Boston venue groups","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VenueMapCity"}},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"},{"type":"object","properties":{"omittedVenueSlugs":{"type":"array","items":{"type":"string"}}}}]}}}}}},"503":{"description":"Catalog temporarily unavailable"}}}},"/api/v1/availability":{"get":{"summary":"Live time slots and seat counts for one experience","operationId":"getAvailability","parameters":[{"name":"game","in":"query","required":true,"schema":{"type":"string"},"description":"Experience slug from /api/v1/experiences"},{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Clamped to 28 days after `from`"}],"responses":{"200":{"description":"Slots with freshness timestamp","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"game":{"type":"string"},"slots":{"type":"array","items":{"$ref":"#/components/schemas/Slot"}},"fetchedAt":{"type":"string","format":"date-time"},"fromCache":{"type":"boolean"}}}}}}}},"400":{"description":"Missing or malformed parameters"},"404":{"description":"Unknown game slug"},"429":{"description":"Rate limit exceeded (60/min per IP)"},"502":{"description":"Booking system temporarily unavailable"}}}},"/api/v2/schedules/search":{"get":{"summary":"Search the canonical multi-account schedule (cacheable browser form)","operationId":"searchScheduleGet","description":"Equivalent to POST. Array filters may be repeated or comma-separated. Intended for Framer and other browser clients so successful responses can use the shared CDN cache.","parameters":[{"name":"from","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"onward","in":"query","description":"Browse from the start date onward using the rolling year index; omit to.","schema":{"type":"boolean"}},{"name":"privateEventsOnly","in":"query","description":"Only unbooked events that allow private games, filtered before pagination.","schema":{"type":"boolean"}},{"name":"weekdays","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6}},"style":"form","explode":true},{"name":"partySize","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"experienceIds","in":"query","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"familySlugs","in":"query","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"connectionKeys","in":"query","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"citySlugs","in":"query","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"venueSlugs","in":"query","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"groupBy","in":"query","schema":{"type":"string","enum":["experience","family","location","date"]}},{"name":"nextPerGroup","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":3}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Grouped schedules with partial account errors and signed slot references"},"400":{"description":"Invalid filters or a date range longer than 93 days"},"429":{"description":"Public rate limit exceeded"}}},"post":{"summary":"Search the canonical multi-account schedule","operationId":"searchSchedule","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleSearch"}}}},"responses":{"200":{"description":"Grouped schedules with partial account errors and signed slot references"},"400":{"description":"Invalid filters or a date range longer than 93 days"},"429":{"description":"Public rate limit exceeded"}}}},"/api/v2/schedules/compact":{"get":{"summary":"Get the whole bookable schedule in one compact document","operationId":"getCompactSchedule","description":"Every bookable future time (one year, sold-out excluded) for every live-schedule run, rebuilt after each Bookeo refresh and served gzipped from the shared CDN cache. Each time is a tuple [startTime, eventId, seatsAvailable|null, privateEventAvailable 0|1, pricePerPerson|null]; a slot's ID is `${connectionKey}:${eventId}`. Filter it in the client. Times can be a few minutes old; checkout re-checks seats live.","responses":{"200":{"description":"Compact schedule v1: { v: 1, generatedAt, searchHorizonEnd, partialErrors, experiences, times }"},"503":{"description":"No schedule is available yet (or budget saver mode is on)"}}}},"/api/v2/checkout-intents":{"post":{"summary":"Live-reconfirm a slot and return its hosted Bookeo URL","operationId":"confirmCheckout","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["slotRef"],"properties":{"slotRef":{"type":"string"},"partySize":{"type":"integer","minimum":1,"maximum":100,"default":1},"attribution":{"type":"object","additionalProperties":false,"description":"Allowlisted campaign and ad click identifiers carried into the hosted Bookeo checkout.","properties":{"utm_source":{"type":"string","maxLength":200},"utm_medium":{"type":"string","maxLength":200},"utm_campaign":{"type":"string","maxLength":200},"utm_term":{"type":"string","maxLength":200},"utm_content":{"type":"string","maxLength":200},"gclid":{"type":"string","maxLength":200},"gbraid":{"type":"string","maxLength":200},"wbraid":{"type":"string","maxLength":200},"fbclid":{"type":"string","maxLength":200},"ttclid":{"type":"string","maxLength":200},"twclid":{"type":"string","maxLength":200},"msclkid":{"type":"string","maxLength":200}}}}}}}},"responses":{"200":{"description":"Confirmed checkout URL or an explicit slot-changed response"},"400":{"description":"Invalid or expired slot reference"},"429":{"description":"Public rate limit exceeded"}}}}},"components":{"schemas":{"Meta":{"type":"object","properties":{"syncedAt":{"type":"string","format":"date-time"},"count":{"type":"integer"}}},"ScheduleSearch":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"onward":{"type":"boolean","description":"Browse from the start date onward; cannot include to."},"privateEventsOnly":{"type":"boolean"},"weekdays":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7},"partySize":{"type":"integer","minimum":1,"maximum":100},"experienceIds":{"type":"array","items":{"type":"string"},"maxItems":100},"familySlugs":{"type":"array","items":{"type":"string"},"maxItems":50},"seriesSlugs":{"type":"array","items":{"type":"string","examples":["casa-loma","black-creek","at-the-table","parlour-games"]},"maxItems":20},"connectionKeys":{"type":"array","items":{"type":"string"},"maxItems":20},"citySlugs":{"type":"array","items":{"type":"string"},"maxItems":20},"venueSlugs":{"type":"array","items":{"type":"string"},"maxItems":50},"groupBy":{"type":"string","enum":["experience","family","location","date"]},"nextPerGroup":{"type":"integer","minimum":1,"maximum":50,"default":3},"cursor":{"type":"string"}}},"Experience":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"familySlug":{"type":"string"},"seriesSlug":{"type":["string","null"],"examples":["casa-loma","parlour-games"]},"seriesName":{"type":["string","null"]},"status":{"type":"string"},"sortOrder":{"type":"number"},"showSortOrder":{"type":["number","null"]},"runSortOrder":{"type":["number","null"]},"city":{"type":"string","examples":["toronto","newmarket"]},"cityName":{"type":["string","null"]},"venueSlug":{"type":"string"},"description":{"type":"string"},"genre":{"type":"string"},"priceText":{"type":"string"},"durationMinutes":{"type":["integer","null"]},"capacity":{"type":"object","properties":{"min":{"type":["integer","null"]},"max":{"type":["integer","null"]}}},"ageGuidance":{"type":"string"},"accessibilityNotes":{"type":"string"},"canonicalUrl":{"type":"string","format":"uri"},"coverImageUrl":{"type":"string","format":"uri"},"bookingUrl":{"type":"string","format":"uri"},"liveScheduleEnabled":{"type":"boolean"},"venue":{"type":["object","null"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"}}}}},"Venue":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"lat":{"type":["number","null"]},"lng":{"type":["number","null"]},"shortDescription":{"type":"string"},"heroImageUrl":{"type":"string","format":"uri"},"active":{"type":"boolean"},"sortOrder":{"type":"number"},"transit":{"type":"string"},"parking":{"type":"string"},"arrivalNotes":{"type":"string"},"accessibilityNotes":{"type":"string"},"nearbyFood":{"type":"array","items":{"type":"string"}}}},"VenueMapCity":{"type":"object","properties":{"slug":{"type":"string","examples":["toronto","newmarket"]},"name":{"type":"string"},"venueCount":{"type":"integer"},"gameCount":{"type":"integer"},"venues":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"lat":{"type":"number"},"lng":{"type":"number"},"shortDescription":{"type":"string"},"heroImageUrl":{"type":"string","format":"uri"},"venueUrl":{"type":"string"},"sortOrder":{"type":"number"},"games":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"familySlug":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"priceText":{"type":"string"},"canonicalUrl":{"type":"string","format":"uri"},"coverImageUrl":{"type":"string","format":"uri"},"sortOrder":{"type":"number"}}}}}}}}},"Slot":{"type":"object","properties":{"startTime":{"type":"string","description":"ISO 8601 with venue-local offset"},"endTime":{"type":["string","null"]},"seatsAvailable":{"type":["integer","null"]}}}}}}