{"openapi":"3.0.3","info":{"title":"WonderKit Public Discover API","version":"1.0.0","description":"Anonymous public read endpoints for published Discover city feeds and service health. No API key, cookie, Firebase ID token, or App Check token is required for these GET and HEAD requests. Private group, trip, billing, and AI APIs are not described here."},"servers":[{"url":"https://wonderkit.app"}],"security":[],"paths":{"/api/discover/public/cities":{"get":{"operationId":"listPublicDiscoverCities","summary":"List cities with published public Discover feeds","description":"Returns only source-curated cities backed by a structurally usable publicDiscover feed from the current prompt version.","security":[],"responses":{"200":{"description":"Published city list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCitiesResponse"}}}},"429":{"description":"Request rate limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitErrorResponse"}}}}}},"head":{"operationId":"headPublicDiscoverCities","summary":"Check the published city list representation","security":[],"responses":{"200":{"description":"Published city list headers; response body is omitted for HEAD","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCitiesResponse"}}}},"429":{"description":"Request rate limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitErrorResponse"}}}}}}},"/api/discover/public/{cityKey}":{"get":{"operationId":"getPublicDiscoverFeed","summary":"Get a published public Discover feed","description":"Returns a structurally usable cached feed from the current prompt version for a canonical city slug.","security":[],"parameters":[{"name":"cityKey","in":"path","required":true,"description":"Canonical lowercase city slug","schema":{"type":"string","pattern":"^[a-z0-9-]+$","minLength":2,"maxLength":64}}],"responses":{"200":{"description":"Published city feed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDiscoverFeedResponse"}}}},"400":{"description":"Invalid city key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No published feed for the city","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Request rate limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitErrorResponse"}}}}}},"head":{"operationId":"headPublicDiscoverFeed","summary":"Check a published public Discover feed representation","security":[],"parameters":[{"name":"cityKey","in":"path","required":true,"description":"Canonical lowercase city slug","schema":{"type":"string","pattern":"^[a-z0-9-]+$","minLength":2,"maxLength":64}}],"responses":{"200":{"description":"Published city feed headers; response body is omitted for HEAD","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDiscoverFeedResponse"}}}},"400":{"description":"Invalid city key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No published feed for the city","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Request rate limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitErrorResponse"}}}}}}},"/api/health":{"get":{"operationId":"getHealth","summary":"Service health","security":[],"responses":{"200":{"description":"Healthy service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}},"head":{"operationId":"headHealth","summary":"Check service health representation","security":[],"responses":{"200":{"description":"Healthy service headers; response body is omitted for HEAD","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}}},"components":{"schemas":{"PublicCity":{"type":"object","additionalProperties":false,"required":["city","cityKey"],"properties":{"city":{"type":"string","minLength":1},"cityKey":{"type":"string","pattern":"^[a-z0-9-]+$","minLength":2,"maxLength":64},"eventCount":{"type":"integer","minimum":0}}},"PublicDiscoverCard":{"type":"object","additionalProperties":false,"required":["id","title","description","type","tags"],"properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"type":{"type":"string","enum":["activity","trip","event","food","culture","camp","class","program"]},"tags":{"type":"array","items":{"type":"string"}},"forMember":{"type":"string","nullable":true},"imageSearchTerm":{"type":"string"},"photoUrl":{"type":"string","description":"Absolute image URL or root-relative first-party photo proxy path."},"photoCredit":{"type":"string"},"searchUrl":{"type":"string","description":"Absolute URL or root-relative first-party path."},"estimatedDuration":{"type":"string"},"estimatedCost":{"type":"string","enum":["$","$$","$$$","$$$$"]},"bestFor":{"type":"string"},"bestForAges":{"type":"string"},"location":{"type":"string"},"campType":{"type":"string","enum":["day","sleepaway","half-day"]},"ageRange":{"type":"string"},"schedule":{"type":"string"},"websiteUrl":{"type":"string","description":"Absolute URL or root-relative first-party path."},"provider":{"type":"string"},"rating":{"type":"number"},"reviewCount":{"type":"number"},"address":{"type":"string"},"coordinates":{"type":"object","additionalProperties":false,"required":["lat","lng"],"properties":{"lat":{"type":"number"},"lng":{"type":"number"}}},"placeId":{"type":"string"},"eventDate":{"type":"string"},"eventTime":{"type":"string"},"eventEndDate":{"type":"string"},"venueName":{"type":"string"},"ticketUrl":{"type":"string","description":"Absolute URL or root-relative first-party path."},"priceRange":{"type":"string"},"unverified":{"type":"boolean"},"cuisineType":{"type":"string"},"hoursToday":{"type":"string"},"urgency":{"type":"string","enum":["today","this-week","this-weekend","this-month","ongoing"]},"dataProvider":{"type":"string","nullable":true,"enum":["foursquare","google","overture","mixed","dropped-closed"]},"enrichedAt":{"type":"string"},"sourceCityKey":{"type":"string"},"distanceFromAnchorMi":{"type":"number"},"calendarHint":{"type":"string","enum":["around-plans","busy-day","usually-busy"]},"calendarHintAnchorTitle":{"type":"string"}}},"PublicDiscoverSection":{"type":"object","additionalProperties":false,"required":["id","title","cards"],"properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"subtitle":{"type":"string"},"icon":{"type":"string"},"cards":{"type":"array","items":{"$ref":"#/components/schemas/PublicDiscoverCard"}}}},"PublicCitiesResponse":{"type":"object","additionalProperties":false,"required":["cities"],"properties":{"cities":{"type":"array","items":{"$ref":"#/components/schemas/PublicCity"}}}},"PublicDiscoverFeedResponse":{"type":"object","additionalProperties":false,"required":["city","sections","generatedAt"],"properties":{"city":{"type":"string","minLength":1},"sections":{"type":"array","items":{"$ref":"#/components/schemas/PublicDiscoverSection"}},"generatedAt":{"type":"string","format":"date-time"}}},"ErrorResponse":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","enum":["invalid_city_key","not_found"]},"message":{"type":"string"}}},"RateLimitErrorResponse":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","example":"Rate limit reached. Please wait a moment."}}},"HealthResponse":{"type":"object","additionalProperties":false,"required":["status","ts","version"],"properties":{"status":{"type":"string","enum":["ok"]},"ts":{"type":"string","format":"date-time"},"version":{"type":"string"}}}}}}