{"openapi":"3.1.0","info":{"title":"IRL Repo public discovery API","version":"0.9.0","description":"Search verified events and open-group availability by location, date, and activity. Results reflect the current catalogue. Attendee and profile information stays private."},"servers":[{"url":"https://irlrepo.com"}],"paths":{"/api/public/openapi.json":{"get":{"operationId":"getPublicDiscoverySpec","summary":"Get this API description","responses":{"200":{"description":"OpenAPI description."}}}},"/api/public/areas":{"get":{"operationId":"listPublicAreas","summary":"List public markets","description":"Configured public markets and their locality filters. Verified listings do not include latitude or longitude, so this response has no coordinates and distance search is unavailable.","responses":{"200":{"description":"Public markets.","content":{"application/json":{"schema":{"type":"object","required":["items","listing_coordinates","distance_search"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Area"}},"listing_coordinates":{"type":"boolean","const":false},"distance_search":{"type":"string","const":"unavailable"}}}}}}}}},"/api/public/events":{"get":{"operationId":"searchPublicEvents","summary":"Search verified events","description":"Happy hours are hidden by default; choose category=happy_hour or search for drinks, cocktails, or happy hour to request them.","parameters":[{"name":"city","in":"query","schema":{"type":"string","maxLength":100},"description":"Exact city, case-insensitive."},{"name":"region","in":"query","schema":{"type":"string","maxLength":100},"description":"Exact state or region code, case-insensitive."},{"name":"area","in":"query","schema":{"type":"string","maxLength":60,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"description":"Area or metro slug. Use st-augustine for the city and St. Augustine Beach. Florida wave-1 slugs include tampa, orlando, miami, sarasota, fort-myers, lakeland, daytona-beach, and melbourne. Each result retains the venue city."},{"name":"locality","in":"query","schema":{"type":"string","maxLength":60,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"description":"Locality slug for a configured area, such as beaches with area=jacksonville, st-augustine-beach with area=st-augustine, or st-petersburg with area=tampa."},{"name":"nearby","in":"query","schema":{"type":"string","enum":["football"]},"description":"With area=st-augustine, return verified Jaguars home games within 50 straight-line miles of the market center. Omit locality. Run a separate search for local listings."},{"name":"category","in":"query","schema":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,99}$"},"description":"Exact activity category, such as trivia, pickleball, tennis, group_run, spectator_sport, or active_sport."},{"name":"group_activities","in":"query","schema":{"type":"integer","enum":[1]},"description":"Select trivia, pickleball, tennis, and group runs when no category is specified. This describes activity formats. See event detail for IRL Repo group availability."},{"name":"open_groups","in":"query","schema":{"type":"integer","enum":[1]},"description":"Return events with at least one reservation and an available spot in the same open group."},{"name":"group_progress","in":"query","schema":{"type":"integer","enum":[1]},"description":"Include the reservation count and capacity of one populated open group per event."},{"name":"q","in":"query","schema":{"type":"string","maxLength":100},"description":"Title search; drink terms request happy-hour events."},{"name":"when","in":"query","schema":{"type":"string","enum":["today","tomorrow","weekend"]},"description":"Local calendar period for upcoming events. Weekend runs Friday through Sunday. Use without from or to."},{"name":"timezone","in":"query","schema":{"type":"string","maxLength":64},"description":"IANA time zone for when, such as America/Chicago. Required when the selected metro has no configured zone."},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"description":"Inclusive start timestamp with timezone; defaults to now."},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"description":"Exclusive start timestamp with timezone."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Maximum results."},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"maximum":10000,"default":0},"description":"Number of results to skip."},{"name":"near_lat","in":"query","schema":{"type":"number","minimum":-90,"maximum":90},"description":"Latitude for a straight-line distance filter. Send it with near_lng and radius_km. Rejected unless metro map search is enabled."},{"name":"near_lng","in":"query","schema":{"type":"number","minimum":-180,"maximum":180},"description":"Longitude for a straight-line distance filter. Send it with near_lat and radius_km. Rejected unless metro map search is enabled."},{"name":"radius_km","in":"query","schema":{"type":"number","minimum":1,"maximum":50},"description":"Straight-line radius in kilometers, from 1 to 50. Listings without numeric coordinates are excluded."}],"responses":{"200":{"description":"Events in start-time order.","content":{"application/json":{"schema":{"type":"object","required":["items","limit","offset"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SearchEvent"}},"limit":{"type":"integer"},"offset":{"type":"integer"},"date_range":{"$ref":"#/components/schemas/SearchDateRange"}}}}}},"400":{"description":"Invalid search parameters or ID."},"503":{"description":"Temporarily unavailable."}}}},"/api/public/events/{id}":{"get":{"operationId":"getPublicEvent","summary":"Get a verified event and group options","description":"Group options indicate whether member actions are enabled for this event. Matching interest is not a reservation or a confirmed place.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Event details and group options.","content":{"application/json":{"schema":{"type":"object","required":["event","group_options"],"properties":{"event":{"$ref":"#/components/schemas/Event"},"group_options":{"$ref":"#/components/schemas/GroupOptions"}}}}}},"400":{"description":"Invalid search parameters or ID."},"404":{"description":"Event not found or not public."},"503":{"description":"Temporarily unavailable."}}}},"/api/public/events/{id}/outings":{"get":{"operationId":"listPublicEventOutings","summary":"List open groups with available spots","description":"Availability can change; a listed spot is not a reservation. Private matched-group interest, proposals, and confirmed outings never appear here. See event detail for matching availability.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Public open-group summaries.","content":{"application/json":{"schema":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Outing"}}}}}}},"400":{"description":"Invalid search parameters or ID."},"503":{"description":"Temporarily unavailable."}}}},"/api/public/events/{id}/calendar.ics":{"get":{"operationId":"downloadPublicEventCalendar","summary":"Download the verified public event as an iCalendar file","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"An iCalendar file with the public event date, venue and link.","content":{"text/calendar":{"schema":{"type":"string"}}}},"400":{"description":"Invalid search parameters or ID."},"404":{"description":"Event not found or not public."},"503":{"description":"Temporarily unavailable."}}}}},"components":{"schemas":{"Area":{"type":"object","required":["slug","name","region","path","title","description","localities"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"path":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"localities":{"type":"array","items":{"type":"object","required":["value","label"],"properties":{"value":{"type":"string"},"label":{"type":"string"}}}}}},"Event":{"type":"object","required":["id","title","category","starts_at","timezone","venue_name","city","region","country_code","source_name","source_url","verified_at"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"description":{"type":["string","null"]},"category":{"type":"string"},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"},"timezone":{"type":"string"},"venue_name":{"type":"string"},"venue_address":{"type":["string","null"],"description":"Public event venue address, never an attendee's private address."},"city":{"type":"string"},"region":{"type":"string"},"country_code":{"type":"string"},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"image_url":{"type":["string","null"],"format":"uri"},"source_name":{"type":"string"},"source_url":{"type":"string","format":"uri"},"verified_at":{"type":"string","format":"date-time"},"metro_slug":{"type":["string","null"],"description":"Public metro slug from the listing, when the listing has one."}}},"SearchEvent":{"allOf":[{"$ref":"#/components/schemas/Event"},{"type":"object","properties":{"open_group":{"type":["object","null"],"description":"Included with group_progress=1. Null when no populated open group has room.","required":["capacity","confirmed_count"],"properties":{"capacity":{"type":"integer"},"confirmed_count":{"type":"integer"}}}}}]},"SearchDateRange":{"type":"object","description":"Resolved search bounds included with a relative date search.","required":["when","timezone","from","to"],"properties":{"when":{"type":"string","enum":["today","tomorrow","weekend"]},"timezone":{"type":"string"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time","description":"Exclusive upper bound."}}},"GroupOptions":{"type":"object","required":["account_required","open","matched"],"properties":{"account_required":{"type":"boolean","const":true},"open":{"type":"object","required":["actions_available","default_capacity"],"properties":{"actions_available":{"type":"boolean"},"default_capacity":{"type":["integer","null"],"description":"Capacity of a default group that members can join. An empty group is created when its first seat is reserved."}}},"matched":{"type":"object","required":["interest_available","min_group_size","max_group_size","confirmation","interest_reserves_spot"],"properties":{"interest_available":{"type":"boolean"},"min_group_size":{"type":"integer","const":3},"max_group_size":{"type":"integer","const":6},"confirmation":{"type":"string","const":"all_members_accept"},"interest_reserves_spot":{"type":"boolean","const":false}}}}},"Outing":{"type":"object","required":["id","title","mode","capacity","spots_left","is_default"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"mode":{"type":"string","enum":["open"]},"capacity":{"type":"integer"},"spots_left":{"type":"integer"},"is_default":{"type":"boolean"}}}}}}