{"openapi":"3.1.0","info":{"title":"360exp public API","version":"1.0.0","summary":"Public read access to the 360exp events catalog.","description":"Anonymous read endpoints for the 360exp events catalog (public beta): upcoming\nevents across 50+ countries, from 140+ ticket providers.\n\nResponses are JSON. Timestamps are ISO 8601 with offset; monetary amounts are\ndecimal strings to avoid floating-point loss. Anonymous requests are rate limited\nper IP; authenticated requests get a higher allowance.\n\nUser-scoped endpoints (saved events, RSVPs, profile, data export) require a bearer\ntoken issued by WorkOS AuthKit and are documented for agents at /auth.md.\n\nAPI keys (optional). Create one at /settings/api and send it as\n`X-Api-Key: 360_live_…` or `Authorization: Bearer 360_live_…`. A key raises the\nrate limit and makes usage attributable to you. Anonymous access keeps working\nunchanged.\n\nUsage is measured in ENTITIES, not requests: one entity is one event, venue or\nperformer in the response, so a 50-event page costs 50 and a detail lookup costs 1.\nEndpoints that return no catalog entity cost nothing — health, this document, the\nsitemap shards, `/v1/categories` (reference data), billing and key management — and\nso does an error or an empty result. Every key-authenticated response carries\n`X-Entity-Count` with the number charged, and a free-tier response also carries\n`X-Quota-Remaining` (both are CORS-exposed, so a browser client can read them).\n\nThe free allowance is per ACCOUNT, not per key: 500 entities/day, plus\n60 requests/minute, shared across all of your free keys — at most 2 active.\nPast the allowance you get 429 `quota_exceeded` with `Retry-After` (seconds to\nUTC midnight). A request that starts inside the allowance is always served in\nfull, so the allowance may be overshot by up to one page per request in flight\nwhen it is crossed; the gate then closes as soon as the total is observed above\nthe allowance, and stays closed until UTC midnight.\n\nPay-as-you-go keys get 600 requests/minute EACH with no daily cap, up to 10\nactive keys, and are billed USD 1.00 per 1 000 entities above the free 500 a\nday — at cost, with no discounts and no promotion codes on this product. Only\nwhat we serve is counted: a 401 or a 429 is never billed."},"servers":[{"url":"https://api.360exp.net","description":"Public API origin"}],"tags":[{"name":"Events","description":"Public events catalog."},{"name":"Search","description":"Filtered event search."},{"name":"Reference","description":"Categories and venues."},{"name":"Notifications","description":"Web push configuration."},{"name":"Operations","description":"Health and readiness."},{"name":"API keys","description":"Self-serve keys and their usage."},{"name":"Calendar","description":"Subscribed webcal feed."},{"name":"Races","description":"A signed-in user's own races and personal records."},{"name":"Billing","description":"Plus subscriptions and paid API access."}],"paths":{"/v1/events":{"get":{"operationId":"listEvents","summary":"List upcoming public events","description":"Published, public, non-cancelled events starting from now, ordered by start time. Cached 60s.","tags":["Events"],"parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}}],"responses":{"200":{"description":"A page of events.","content":{"application/json":{"schema":{"type":"object","required":["data","pagination"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EventListItem"}},"pagination":{"type":"object","required":["page","pageSize","totalItems","totalPages"],"properties":{"page":{"type":"integer"},"pageSize":{"type":"integer"},"totalItems":{"type":"integer"},"totalPages":{"type":"integer"}}}}}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{id}":{"get":{"operationId":"getEvent","summary":"Get one event by id","tags":["Events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The event, with venue and categories resolved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventDetail"}}}},"404":{"description":"Not found, or retired (`gone`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventNotFound"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{id}/similar":{"get":{"operationId":"getSimilarEvents","summary":"Events similar to the given event","description":"Co-occurrence based when behavioural data is available, otherwise same venue/category nearest in start time.","tags":["Events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Similar events (empty array when the id is unknown).","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","title","startsAt","timezone","canonicalUrl"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"timezone":{"type":"string"},"allDay":{"type":"boolean"},"sourceStatus":{"type":"string"},"imageUrl":{"type":["string","null"]},"venueName":{"type":["string","null"]},"venueCity":{"type":["string","null"]},"priceMin":{"type":["string","null"]},"currency":{"type":["string","null"]},"canonicalUrl":{"type":"string","format":"uri","description":"The event's page on 360exp.net (https://360exp.net/events/{id}). Prefer this URL when linking to or citing the event; `sourceUrl` is the upstream ticket page."}}}}}}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{id}/dates":{"get":{"operationId":"getEventDates","summary":"The event's other upcoming dates and venues","description":"Same title at the same (canonical) venue — the show's other performances — plus the same title at other venues, one card per venue at its next date. Excludes the given event.","tags":["Events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Other dates (empty lists when the id is unknown).","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["sameVenue","sameVenueTotal","otherVenues"],"properties":{"sameVenue":{"type":"array","items":{"type":"object","required":["id","title","startsAt","timezone","canonicalUrl"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"timezone":{"type":"string"},"allDay":{"type":"boolean"},"sourceStatus":{"type":"string"},"imageUrl":{"type":["string","null"]},"venueName":{"type":["string","null"]},"venueCity":{"type":["string","null"]},"priceMin":{"type":["string","null"]},"currency":{"type":["string","null"]},"canonicalUrl":{"type":"string","format":"uri","description":"The event's page on 360exp.net (https://360exp.net/events/{id}). Prefer this URL when linking to or citing the event; `sourceUrl` is the upstream ticket page."}}}},"sameVenueTotal":{"type":"integer"},"otherVenues":{"type":"array","items":{"type":"object","required":["id","title","startsAt","timezone","canonicalUrl"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"timezone":{"type":"string"},"allDay":{"type":"boolean"},"sourceStatus":{"type":"string"},"imageUrl":{"type":["string","null"]},"venueName":{"type":["string","null"]},"venueCity":{"type":["string","null"]},"priceMin":{"type":["string","null"]},"currency":{"type":["string","null"]},"canonicalUrl":{"type":"string","format":"uri","description":"The event's page on 360exp.net (https://360exp.net/events/{id}). Prefer this URL when linking to or citing the event; `sourceUrl` is the upstream ticket page."}}}}}}}}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/sitemap":{"get":{"operationId":"getEventsSitemapIndex","summary":"Per-shard lastmod feed for the event shard sitemaps","description":"One entry per UUID shard with the instant its sitemap content last changed. Regenerated when the Tue/Thu/Sat anchor rolls (three times a week); a shard's lastmod advances only when its content fingerprint differs from the previous generation.","tags":["Events"],"responses":{"200":{"description":"Lastmod per shard, plus the anchor date of this generation.","content":{"application/json":{"schema":{"type":"object","required":["data","anchorDate"],"properties":{"anchorDate":{"type":"string","format":"date"},"data":{"type":"array","items":{"type":"object","required":["prefix","lastmod"],"properties":{"prefix":{"type":"string","pattern":"^[0-9a-f]{2}$"},"lastmod":{"type":"string","format":"date-time"}}}}}}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/sitemap/{prefix}":{"get":{"operationId":"getEventsSitemapShard","summary":"Bulk id + updatedAt feed for one sitemap shard","description":"Events are sharded into 256 buckets by the first two hex characters of their UUID. Intended for crawlers enumerating the full catalog. Regenerated when the Tue/Thu/Sat anchor rolls (three times a week); repeated fetches within a period return identical content.","tags":["Events"],"parameters":[{"name":"prefix","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{2}$"}}],"responses":{"200":{"description":"Ids and last-modified timestamps for the shard.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","updatedAt"],"properties":{"id":{"type":"string","format":"uuid"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/search/events":{"post":{"operationId":"searchEvents","summary":"Search events with text, category, date, price and geo filters","description":"POST is used so structured filters travel in a JSON body; the call is read-only and has no side effects.","tags":["Search"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","default":""},"category":{"type":"string","pattern":"^[a-z0-9_-]+$","description":"A category slug: only events tagged with it or with one of its subcategories."},"excludeCategories":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9_-]+$"},"maxItems":27,"description":"Category slugs to leave out, each with its subcategories. Unknown slugs are ignored, and so is a slug equal to `category` or a parent of it (the explicit `category` wins). Events with no category still match."},"areaId":{"type":"string","format":"uuid"},"country":{"type":"string","pattern":"^[A-Za-z]{2}$","description":"ISO 3166-1 alpha-2 country of the venue (case-insensitive). With `areaId`, matches events in that area OR that country, and is ignored (areaId alone) until the search index supports the country filter. Without `areaId`, filters on the country and answers 400 `COUNTRY_FILTER_UNSUPPORTED` while the index does not support it."},"race":{"type":"boolean","description":"`true`: only participatory races (events with race options); `false` filters nothing. Like every race filter, answers 400 `RACE_FILTER_UNSUPPORTED` while the index does not support race filters."},"raceDistance":{"type":"string","enum":["5k","10k","15k","half-marathon","marathon","ultra"],"description":"Only races offering this named distance."},"raceDiscipline":{"type":"string","enum":["road","trail","ultra","triathlon","duathlon","obstacle","swim","cycle","walk","virtual","other"],"description":"Only races offering this discipline."},"registrationOpen":{"type":"boolean","description":"`true`: only races whose registration closes after now. An option known to be open (open/few_left) with no close date counts as open until it starts; a race with neither is excluded. With `raceDistance`, an option of that distance must be open. `false` filters nothing."},"dateFrom":{"type":"string","format":"date-time"},"dateTo":{"type":"string","format":"date-time"},"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180},"radiusKm":{"type":"number","exclusiveMinimum":0,"maximum":500},"priceMin":{"type":"number"},"priceMax":{"type":"number"},"page":{"type":"integer","minimum":1,"maximum":1000,"default":1},"hitsPerPage":{"type":"integer","minimum":1,"maximum":100,"default":20},"sort":{"type":"string","enum":["startsAt:asc","startsAt:desc","recommended"],"description":"Default: nearest first with lat/lng, else startsAt:asc. `recommended` keeps the soonest day first and orders each day by event quality (provider, category, content); with a text query it behaves as startsAt:asc."},"dayTimezone":{"type":"string","description":"IANA zone whose calendar days `recommended` groups by. Defaults to each event's own timezone."},"nearFirstKm":{"type":"number","exclusiveMinimum":0,"maximum":100,"description":"With `recommended` and lat/lng/radiusKm: within each day, events within this many km of the point come before the rest (each group still ordered by quality). Ignored for other sorts, without a point, or with a text query."},"facets":{"type":"boolean","default":true,"description":"`false` skips the category/currency facet counts for a read that only needs hits or `totalHits`; the response then has no `facetDistribution`."}}}}}},"responses":{"200":{"description":"Search results.","content":{"application/json":{"schema":{"type":"object","required":["hits","totalHits","page","totalPages"],"properties":{"hits":{"type":"array","items":{"type":"object","required":["id","title","startsAt","timezone","canonicalUrl"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"startsAt":{"type":"integer","description":"Unix epoch seconds (search index format)."},"timezone":{"type":"string"},"allDay":{"type":"boolean","description":"Present (always true) only on date-only events; absent otherwise, so unchanged search documents stay byte-identical."},"sourceStatus":{"type":"string"},"imageUrl":{"type":["string","null"]},"venueName":{"type":["string","null"]},"venueCity":{"type":["string","null"]},"country":{"type":"string","description":"The venue's ISO 3166-1 alpha-2 country, upper-case. Absent when unknown, and on events indexed before the field existed."},"categories":{"type":"array","items":{"type":"string"}},"priceMin":{"type":["number","null"]},"priceMax":{"type":["number","null"]},"currency":{"type":["string","null"]},"sourceUrl":{"type":["string","null"],"description":"Upstream ticket/detail page."},"canonicalUrl":{"type":"string","format":"uri","description":"The event's page on 360exp.net (https://360exp.net/events/{id}). Prefer this URL when linking to or citing the event; `sourceUrl` is the upstream ticket page."},"_geo":{"type":"object","properties":{"lat":{"type":"number"},"lng":{"type":"number"}}},"isRace":{"type":"boolean","const":true,"description":"Present (always true) only on a participatory race; absent on every other hit, like the other race fields."},"raceDistances":{"type":"array","items":{"type":"string","enum":["5k","10k","15k","half-marathon","marathon","ultra"]},"description":"The named distances the race offers, shortest first."},"raceDisciplines":{"type":"array","items":{"type":"string","enum":["road","trail","ultra","triathlon","duathlon","obstacle","swim","cycle","walk","virtual","other"]}},"raceRegistrationClosesAt":{"type":"integer","description":"Unix epoch seconds: the latest registration close of an option still open. An option known to be open (open/few_left) with no close date counts as open until it starts, so this may be that start time. Absent when unknown."}}}},"totalHits":{"type":"integer"},"page":{"type":"integer"},"totalPages":{"type":"integer"},"facetDistribution":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Invalid filter values, `COUNTRY_FILTER_UNSUPPORTED` for `country` without `areaId` before the index supports it, or `RACE_FILTER_UNSUPPORTED` for `race`, `raceDistance`, `raceDiscipline` or `registrationOpen` before the index supports race filters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/venues/{id}/events":{"get":{"operationId":"listVenueEvents","summary":"Upcoming events at a venue","description":"Published, public, non-cancelled upcoming events at the venue — across every provider's copy of it when the venue is resolved to a canonical group. With `category`, the answer also carries `category` (the slug asked for); with `kinds=1`, it also carries `kinds`: `{ slug, count }` per category over the whole lineup, most frequent first. Cached 60s.","tags":["Events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"sort","in":"query","description":"`date` (default): by start time. `recommended`: days stay in date order, but within each day (in the event's own timezone) the more notable events come first — major box offices, concerts and sports, events with an image — ahead of seminars and courses.","schema":{"type":"string","enum":["date","recommended"],"default":"date"}},{"name":"category","in":"query","description":"A category slug: only events tagged with it or with one of its child categories. An unknown slug is a 400.","schema":{"type":"string"}},{"name":"kinds","in":"query","description":"`1` adds `kinds` to the answer: the venue's upcoming events counted per category (a child category also counts under its parent), whatever `category` and `page` are.","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"A page of events.","content":{"application/json":{"schema":{"type":"object","required":["data","pagination"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","title","startsAt","endsAt","timezone","allDay","imageUrl","archivedImageUrl","priceMin","priceMax","currency","sourceStatus","sourceName","categorySlugs"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":["string","null"],"format":"date-time"},"timezone":{"type":"string"},"allDay":{"type":"boolean"},"imageUrl":{"type":["string","null"]},"archivedImageUrl":{"type":["string","null"]},"priceMin":{"type":["string","null"]},"priceMax":{"type":["string","null"]},"currency":{"type":["string","null"]},"sourceStatus":{"type":"string"},"sourceName":{"type":["string","null"]},"categorySlugs":{"type":"array","items":{"type":"string"}}}}},"pagination":{"type":"object","required":["page","pageSize","totalItems","totalPages"],"properties":{"page":{"type":"integer"},"pageSize":{"type":"integer"},"totalItems":{"type":"integer"},"totalPages":{"type":"integer"}}},"category":{"type":"string","description":"The `category` asked for, when one was."},"kinds":{"type":"array","description":"With `kinds=1`: the whole lineup counted per category.","items":{"type":"object","required":["slug","count"],"properties":{"slug":{"type":"string"},"count":{"type":"integer"}}}}}}}}},"400":{"description":"Invalid `sort` value, or `category` where the listing takes one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/performers/{id}/events":{"get":{"operationId":"listPerformerEvents","summary":"Upcoming events in a performer's lineup","description":"Published, public, non-cancelled upcoming events whose lineup includes the performer, across every provider and venue. Cached 60s.","tags":["Events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"sort","in":"query","description":"`date` (default): by start time. `recommended`: days stay in date order, but within each day (in the event's own timezone) the more notable events come first — major box offices, concerts and sports, events with an image — ahead of seminars and courses.","schema":{"type":"string","enum":["date","recommended"],"default":"date"}}],"responses":{"200":{"description":"A page of events.","content":{"application/json":{"schema":{"type":"object","required":["data","pagination"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","title","startsAt","endsAt","timezone","allDay","imageUrl","archivedImageUrl","priceMin","priceMax","currency","sourceStatus","sourceName","categorySlugs","venueId","venueName","venueCity"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":["string","null"],"format":"date-time"},"timezone":{"type":"string"},"allDay":{"type":"boolean"},"imageUrl":{"type":["string","null"]},"archivedImageUrl":{"type":["string","null"]},"priceMin":{"type":["string","null"]},"priceMax":{"type":["string","null"]},"currency":{"type":["string","null"]},"sourceStatus":{"type":"string"},"sourceName":{"type":["string","null"]},"categorySlugs":{"type":"array","items":{"type":"string"}},"venueId":{"type":["string","null"],"format":"uuid"},"venueName":{"type":["string","null"]},"venueCity":{"type":["string","null"]},"venueCountry":{"type":["string","null"],"description":"The venue's ISO 3166-1 alpha-2 country; null when unknown."}}}},"pagination":{"type":"object","required":["page","pageSize","totalItems","totalPages"],"properties":{"page":{"type":"integer"},"pageSize":{"type":"integer"},"totalItems":{"type":"integer"},"totalPages":{"type":"integer"}}}}}}}},"400":{"description":"Invalid `sort` value, or `category` where the listing takes one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/performers/{id}/credits":{"get":{"operationId":"listPerformerCredits","summary":"Events a performer is credited on (cast & crew)","description":"Published, public, non-cancelled events, past and upcoming, on which the performer holds a cast or crew credit; newest first. Cached 60s.","tags":["Events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"A page of events.","content":{"application/json":{"schema":{"type":"object","required":["data","pagination"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","title","startsAt","endsAt","timezone","allDay","imageUrl","archivedImageUrl","priceMin","priceMax","currency","sourceStatus","sourceName","categorySlugs","venueId","venueName","venueCity","creditType","role"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":["string","null"],"format":"date-time"},"timezone":{"type":"string"},"allDay":{"type":"boolean"},"imageUrl":{"type":["string","null"]},"archivedImageUrl":{"type":["string","null"]},"priceMin":{"type":["string","null"]},"priceMax":{"type":["string","null"]},"currency":{"type":["string","null"]},"sourceStatus":{"type":"string"},"sourceName":{"type":["string","null"]},"categorySlugs":{"type":"array","items":{"type":"string"}},"venueId":{"type":["string","null"],"format":"uuid"},"venueName":{"type":["string","null"]},"venueCity":{"type":["string","null"]},"creditType":{"type":"string","enum":["cast","crew"]},"role":{"type":["string","null"]}}}},"pagination":{"type":"object","required":["page","pageSize","totalItems","totalPages"],"properties":{"page":{"type":"integer"},"pageSize":{"type":"integer"},"totalItems":{"type":"integer"},"totalPages":{"type":"integer"}}}}}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/me":{"get":{"operationId":"getBillingStatus","summary":"Entitlements, subscriptions and trial eligibility for the caller","tags":["Billing"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"X-Client-Country","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z]{2}$"},"description":"ISO 3166-1 alpha-2 country observed at the edge, used to resolve the Plus price band for a customer who has not checked out yet. Once a band is pinned to the customer this header is ignored. Absent or unrecognised means band A."}],"responses":{"200":{"description":"The caller's billing status.","content":{"application/json":{"schema":{"type":"object","required":["entitlements","subscriptions","trialEligible"],"properties":{"entitlements":{"type":"object","required":["plus","api"],"properties":{"plus":{"type":"boolean"},"api":{"type":"boolean"},"plusSource":{"type":["string","null"],"enum":["subscription","grant","app_store",null]},"trialEndsAt":{"type":["string","null"],"format":"date-time"},"currentPeriodEnd":{"type":["string","null"],"format":"date-time"},"plusExpiresAt":{"type":["string","null"],"format":"date-time","description":"Informational end of the current plusSource."},"appStorePlusExpiresAt":{"type":["string","null"],"format":"date-time","description":"End of the Plus bought in the iOS app, when active."}}},"subscriptions":{"type":"array","items":{"type":"object","required":["product","status","cancelAtPeriodEnd"],"properties":{"product":{"type":"string","enum":["plus","api"]},"status":{"type":"string","enum":["trialing","active","past_due","canceled","unpaid","incomplete","incomplete_expired","paused"]},"priceId":{"type":["string","null"]},"currentPeriodEnd":{"type":["string","null"],"format":"date-time"},"trialEndsAt":{"type":["string","null"],"format":"date-time"},"cancelAtPeriodEnd":{"type":"boolean"}}}},"trialEligible":{"type":"boolean","description":"The one-time 14-day Plus trial has not been offered yet."},"pricing":{"type":"object","description":"The Plus price band for this account, derived from the profile country. Band C is annual-only, so `intervals` is the authoritative list of buyable intervals and `display.monthly` is then absent.","required":["band","intervals","display"],"properties":{"band":{"type":"string","enum":["A","B","C"]},"intervals":{"type":"array","items":{"type":"string","enum":["month","year"]}},"display":{"type":"object","required":["annual"],"properties":{"monthly":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number","description":"Major units, for display only."},"currency":{"type":"string","description":"ISO 4217 presentment currency."}}},"annual":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number","description":"Major units, for display only."},"currency":{"type":"string","description":"ISO 4217 presentment currency."}}}}}}}}}}}},"401":{"description":"Missing, invalid or expired bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/checkout":{"post":{"operationId":"createCheckoutSession","summary":"Start a Dodo Checkout Session","description":"Returns a Dodo-hosted URL. A 14-day trial is attached only for product=plus when the caller is still trial-eligible.","tags":["Billing"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"X-Client-Country","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z]{2}$"},"description":"ISO 3166-1 alpha-2 country observed at the edge, used to resolve the Plus price band for a customer who has not checked out yet. Once a band is pinned to the customer this header is ignored. Absent or unrecognised means band A."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["product"],"properties":{"product":{"type":"string","enum":["plus","api"]},"interval":{"type":"string","enum":["month","year"],"default":"month"},"returnPath":{"type":"string","description":"Same-origin path to return to; ?checkout=success|cancel is appended. Anything else falls back to /settings/plus."},"promotionCode":{"type":"string","pattern":"^[A-Za-z0-9-]{3,40}$","description":"A launch promotion code, for `product: plus` only. Restricted to the current offer's codes — any other code is ignored and Checkout's own promotion-code field is offered instead. Applied to the annual plan only; an unusable code never fails the checkout, it comes back as promotion.applied=false. With `product: api` it is ignored outright (`reason: not_applicable`) and Checkout offers no promotion-code field: that product is priced at cost."}}}}}},"responses":{"200":{"description":"Checkout URL.","content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Dodo-hosted page to redirect to."},"appliedInterval":{"type":"string","enum":["month","year"],"description":"Present only when the server changed the requested interval — a founder promotion code is annual-only, so a monthly request carrying one is upgraded."},"promotion":{"type":"object","description":"Present only when a promotionCode was supplied.","required":["applied"],"properties":{"applied":{"type":"boolean"},"reason":{"type":"string","enum":["invalid","exhausted","expired","not_applicable"],"description":"`not_applicable` means the product takes no discounts — the API product is priced at cost, so a code sent with it is never even looked up."}}}}}}}},"400":{"description":"Invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or expired bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"No Dodo price is configured for the requested plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/founder-status":{"get":{"operationId":"getFounderOfferStatus","summary":"Whether a launch promotion code can still be redeemed","description":"Public (no bearer token): the /plus landing page is read by signed-out visitors. Only codes belonging to the launch offer are answered; anything else is a 404, so this cannot be used to probe for arbitrary promotion codes. Cached for 60 s. Deliberately a boolean and no counts — how many redemptions are left is how many people have subscribed.","tags":["Billing"],"security":[],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Whether the offer is still open for this code.","content":{"application/json":{"schema":{"type":"object","required":["code","open"],"properties":{"code":{"type":"string"},"open":{"type":"boolean","description":"False once the offer window has closed or the code (or the coupon behind it) is exhausted, retired or invalid."},"offerEndsAt":{"type":["string","null"],"format":"date-time"}}}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The promotion provider could not be reached. Carries `Retry-After`; the offer itself is unaffected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/portal":{"post":{"operationId":"createPortalSession","summary":"Open the Dodo Customer Portal","description":"Card changes, cancellation and invoices. 404 when the caller has never paid.","tags":["Billing"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Portal URL.","content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Dodo-hosted page to redirect to."},"appliedInterval":{"type":"string","enum":["month","year"],"description":"Present only when the server changed the requested interval — a founder promotion code is annual-only, so a monthly request carrying one is upgraded."},"promotion":{"type":"object","description":"Present only when a promotionCode was supplied.","required":["applied"],"properties":{"applied":{"type":"boolean"},"reason":{"type":"string","enum":["invalid","exhausted","expired","not_applicable"],"description":"`not_applicable` means the product takes no discounts — the API product is priced at cost, so a code sent with it is never even looked up."}}}}}}}},"401":{"description":"Missing, invalid or expired bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/webhook":{"post":{"operationId":"dodoWebhook","summary":"Dodo webhook callback","description":"Called by Dodo only. Authenticated by the Dodo-Signature header over the raw body, so it is mounted ahead of bearer auth and the rate limiter. Idempotent on the Dodo event id.","tags":["Billing"],"security":[],"parameters":[{"name":"Dodo-Signature","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Event accepted (or already processed).","content":{"application/json":{"schema":{"type":"object","properties":{"received":{"type":"boolean"},"duplicate":{"type":"boolean"}}}}}},"400":{"description":"Missing or invalid signature; Dodo should not retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/api-keys":{"get":{"operationId":"listApiKeys","summary":"List the caller's API keys","tags":["API keys"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The caller's keys and current tier.","content":{"application/json":{"schema":{"type":"object","required":["keys","tier","freeDailyQuota","maxActiveKeys","entitiesToday","rejectedToday"],"properties":{"keys":{"type":"array","items":{"type":"object","required":["id","name","prefix","status","createdAt","entitiesToday","rejectedToday","requestsToday","tier"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"prefix":{"type":"string","description":"Visible head of the key (`360_live_xxx`). The secret itself is never returned again."},"status":{"type":"string","enum":["active","revoked"]},"createdAt":{"type":"string","format":"date-time"},"lastUsedAt":{"type":["string","null"],"format":"date-time"},"entitiesToday":{"type":"integer","description":"Entities (events, venues, performers) returned today (UTC), live. This is what pay-as-you-go bills from."},"rejectedToday":{"type":"integer","description":"Requests refused today by the daily quota or the rate limit. Never billed."},"requestsToday":{"type":"integer","description":"Requests attempted today, refused ones included. Not a billing figure."},"tier":{"type":"string","enum":["free","metered"]}}}},"tier":{"type":"string","enum":["free","metered"]},"freeDailyQuota":{"type":"integer","description":"Free ENTITIES per UTC day, shared across all of the account's keys — not per key."},"maxActiveKeys":{"type":"integer","description":"2 on free, 10 on metered."},"entitiesToday":{"type":"integer","description":"The ACCOUNT's entity total today — the figure the free allowance is enforced against."},"rejectedToday":{"type":"integer","description":"Requests the account had refused today. Never billed."},"freeEntitiesRemaining":{"type":["integer","null"],"description":"What is left of the free allowance today. Null on the metered tier, which has no daily cap."}}}}}},"401":{"description":"Missing, invalid or expired bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request authenticated with an API key; key management needs a session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createApiKey","summary":"Create an API key","description":"The plaintext key is returned in this response and never again. Maximum 2 active keys on the free tier, 10 with pay-as-you-go.","tags":["API keys"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":80}}}}}},"responses":{"201":{"description":"The new key. Store `key` now; it cannot be retrieved later.","content":{"application/json":{"schema":{"type":"object","required":["id","name","prefix","key"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"prefix":{"type":"string"},"key":{"type":"string","description":"The secret, e.g. `360_live_…`."}}}}}},"400":{"description":"Invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or expired bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request authenticated with an API key; key management needs a session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The account already holds the maximum number of active keys.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/api-keys/usage":{"get":{"operationId":"getApiKeyUsage","summary":"Per-day request totals across the caller's keys","description":"Days with no traffic are omitted. The current UTC day is served from the live counter, so it can be ahead of the persisted totals.","tags":["API keys"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":90,"default":30}}],"responses":{"200":{"description":"Usage history.","content":{"application/json":{"schema":{"type":"object","required":["days","total","freeDailyQuota","tier"],"properties":{"days":{"type":"array","items":{"type":"object","required":["day","entities"],"properties":{"day":{"type":"string","format":"date"},"entities":{"type":"integer"}}}},"total":{"type":"integer"},"freeDailyQuota":{"type":"integer"},"tier":{"type":"string","enum":["free","metered"]}}}}}},"401":{"description":"Missing, invalid or expired bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request authenticated with an API key; key management needs a session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/api-keys/{id}":{"delete":{"operationId":"revokeApiKey","summary":"Revoke an API key","description":"Irreversible. The key stops authenticating within a minute (the resolution cache TTL), and its recorded usage is kept.","tags":["API keys"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Revoked.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["revoked"]}}}}}},"401":{"description":"Missing, invalid or expired bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request authenticated with an API key; key management needs a session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/calendar/{token}.ics":{"get":{"operationId":"getCalendarFeed","summary":"Subscribed iCalendar feed of one user's saved and RSVP'd events","description":"Public by URL: the opaque token in the path IS the credential, because a\ncalendar client cannot present a bearer token. Treat the whole URL as a secret.\n\nContains upcoming events, events that ended in the last 7 days, and events\ncancelled in the last 30 days (as STATUS:CANCELLED, so clients apply the\ncancellation instead of losing the event). Capped at 2000 events.\n\nCached 5 minutes; send If-None-Match to get a 304. Rate limited per IP and\nto 60 requests per 10 minutes per token. A token whose Plus entitlement\nlapsed more than 7 days ago returns a one-event calendar explaining why.","tags":["Calendar"],"security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"},"description":"Feed token issued by POST /v1/calendar/feed. A secret."}],"responses":{"200":{"description":"An RFC 5545 VCALENDAR document.","content":{"text/calendar":{"schema":{"type":"string"}}}},"304":{"description":"The feed is unchanged since the supplied ETag."},"404":{"description":"No such token — unknown, rotated or deleted.","content":{"text/plain":{"schema":{"type":"string"}}}},"429":{"description":"Rate limit exceeded; honour Retry-After.","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/v1/users/me/races":{"get":{"operationId":"listMyRaces","summary":"List the caller's races and personal records","description":"Live entries, newest race day first, plus the fastest finish per distance bucket (ultras excluded).","tags":["Races"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Entries and personal records.","content":{"application/json":{"schema":{"type":"object","required":["entries","personalRecords"],"properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/UserRaceEntry"}},"personalRecords":{"type":"array","items":{"type":"object","required":["bucket","entryId","finishSeconds","raceName","racedOn"],"properties":{"bucket":{"type":"string","enum":["5k","10k","15k","half-marathon","marathon","ultra"]},"entryId":{"type":"string","format":"uuid"},"finishSeconds":{"type":"integer"},"raceName":{"type":"string"},"racedOn":{"type":"string","format":"date"}}}}}}}}},"401":{"description":"Missing, invalid or expired bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request authenticated with an API key or an agent token; a user's races need a first-party session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createMyRace","summary":"Register for or record a race","description":"Either `eventId` (with an optional `raceOptionKey`): name and day are copied from the event; or `raceName` + `racedOn` for a race the catalog does not list.","tags":["Races"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"eventId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["registered","finished","did_not_finish","did_not_start"]},"raceOptionKey":{"type":["string","null"],"description":"A live option of the event (`raceOptions[].key`); it then fixes distance, discipline and race day."},"raceName":{"type":"string","minLength":1,"maxLength":200,"description":"Unlinked entries, or linked ones whose event is gone (deleted, unpublished or private); a live event's title wins otherwise. Trimmed; control characters removed."},"racedOn":{"type":"string","format":"date","description":"Unlinked entries, or linked ones whose event is gone (deleted, unpublished or private); a live event's day wins otherwise. Between 1900-01-01 and two years ahead."},"distanceMeters":{"type":["integer","null"],"minimum":1,"maximum":5000000},"discipline":{"type":["string","null"],"enum":["road","trail","ultra","triathlon","duathlon","obstacle","swim","cycle","walk","virtual","other",null]},"bib":{"type":["string","null"],"maxLength":20,"description":"Empty clears it."},"finishSeconds":{"type":["integer","null"],"minimum":1,"maximum":864000,"description":"Only with status `finished`."}}}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"type":"object","required":["entry"],"properties":{"entry":{"$ref":"#/components/schemas/UserRaceEntry"}}}}}},"400":{"description":"Invalid body: a field out of range, `finishSeconds` without `finished`, or a field a linked entry takes from its live event. `error` names three cases: `not_a_race` (the event has no live race option), `unknown_race_option` (the event does not offer `raceOptionKey`) and `race_not_started` (a result status — finished, did_not_finish, did_not_start — before the race starts: the live event's or option's start instant, else `racedOn` after today in UTC+14).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or expired bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request authenticated with an API key or an agent token; a user's races need a first-party session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`race_entry_exists` (a live entry already holds this event and option; `entryId` names it) or `race_entry_limit` (2000 live entries per account).","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"entryId":{"type":["string","null"],"format":"uuid"}}}]}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/users/me/races/{id}":{"patch":{"operationId":"updateMyRace","summary":"Update one of the caller's races","description":"Only the keys sent change. Leaving `finished` clears the finish time; a new `raceOptionKey` re-copies distance, discipline and race day. `raceName`/`racedOn` are editable on unlinked entries and on linked ones whose event is gone (deleted, unpublished or private); distance/discipline only without an option. A result status is refused (`race_not_started`) when the status is set, or the race day moves, while the race has not started.","tags":["Races"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["registered","finished","did_not_finish","did_not_start"]},"raceOptionKey":{"type":["string","null"],"description":"A live option of the event (`raceOptions[].key`); it then fixes distance, discipline and race day."},"raceName":{"type":"string","minLength":1,"maxLength":200,"description":"Unlinked entries, or linked ones whose event is gone (deleted, unpublished or private); a live event's title wins otherwise. Trimmed; control characters removed."},"racedOn":{"type":"string","format":"date","description":"Unlinked entries, or linked ones whose event is gone (deleted, unpublished or private); a live event's day wins otherwise. Between 1900-01-01 and two years ahead."},"distanceMeters":{"type":["integer","null"],"minimum":1,"maximum":5000000},"discipline":{"type":["string","null"],"enum":["road","trail","ultra","triathlon","duathlon","obstacle","swim","cycle","walk","virtual","other",null]},"bib":{"type":["string","null"],"maxLength":20,"description":"Empty clears it."},"finishSeconds":{"type":["integer","null"],"minimum":1,"maximum":864000,"description":"Only with status `finished`."}}}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"type":"object","required":["entry"],"properties":{"entry":{"$ref":"#/components/schemas/UserRaceEntry"}}}}}},"400":{"description":"Invalid body: a field out of range, `finishSeconds` without `finished`, or a field a linked entry takes from its live event. `error` names three cases: `not_a_race` (the event has no live race option), `unknown_race_option` (the event does not offer `raceOptionKey`) and `race_not_started` (a result status — finished, did_not_finish, did_not_start — before the race starts: the live event's or option's start instant, else `racedOn` after today in UTC+14).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or expired bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request authenticated with an API key or an agent token; a user's races need a first-party session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`race_entry_exists`: the new option's slot is held by another live entry; `entryId` names it.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"entryId":{"type":["string","null"],"format":"uuid"}}}]}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteMyRace","summary":"Delete one of the caller's races","tags":["Races"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Deleted."},"401":{"description":"Missing, invalid or expired bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request authenticated with an API key or an agent token; a user's races need a first-party session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/categories":{"get":{"operationId":"listCategories","summary":"List categories as a two-level tree","tags":["Reference"],"responses":{"200":{"description":"Top-level categories with their children.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"allOf":[{"type":"object","required":["id","name","slug"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"parentId":{"type":["string","null"],"format":"uuid"}}},{"type":"object","properties":{"children":{"type":"array","items":{"type":"object","required":["id","name","slug"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"parentId":{"type":["string","null"],"format":"uuid"}}}}}}]}}}}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/venues/sitemap":{"get":{"operationId":"getVenuesSitemap","summary":"Bulk id + updatedAt feed for the venues sitemap","description":"One entry per indexable venue page: every place with an upcoming event on or after the Tue/Thu/Sat anchor, a run still open at the anchor or (where showtimes are on) a showtime in the days after it, listed once by its representative, the page every member's canonical URL names (the lowest public member id with an event on or after the anchor, else with such a run or showtime). Unresolved venues are their own representative. Regenerated when the anchor rolls (three times a week); 503 with Retry-After while the list cannot be built.","tags":["Reference"],"responses":{"200":{"description":"Ids and last-modified timestamps, plus the anchor date.","content":{"application/json":{"schema":{"type":"object","required":["data","anchorDate"],"properties":{"anchorDate":{"type":"string","format":"date"},"data":{"type":"array","items":{"type":"object","required":["id","updatedAt"],"properties":{"id":{"type":"string","format":"uuid"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/venues/{id}":{"get":{"operationId":"getVenue","summary":"Get one venue by id","tags":["Reference"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The venue.","content":{"application/json":{"schema":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"address":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"country":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"representativeId":{"type":"string","format":"uuid"}}}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/venues/{id}/nearby":{"get":{"operationId":"getVenueNearby","summary":"Nearby venues with upcoming events","description":"Venues within 10 km of the given venue that have upcoming events, nearest first — one per canonical group (its nearest member), excluding the given venue's own group.","tags":["Reference"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Nearby venues, nearest first.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","name","distanceKm"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"city":{"type":["string","null"]},"distanceKm":{"type":"number"}}}}}}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/performers":{"get":{"operationId":"searchPerformers","summary":"Search performers by name","description":"Fuzzy name search over the performer catalog (artists, comedians, teams, speakers, authors) discovered by event enrichment. The query is folded the same way stored names are — case, diacritics and a leading article are ignored — and results are best-match first, capped at 20.","tags":["Reference"],"parameters":[{"name":"q","in":"query","required":true,"description":"Name to search for. An empty or punctuation-only query returns [].","schema":{"type":"string"}}],"responses":{"200":{"description":"Matching performers, best match first.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","name","kind"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"kind":{"type":"string","description":"Enrichment performer kind, e.g. music_artist, comedian, sports_team; `person` for a private individual credited on an event."},"imageUrl":{"type":["string","null"]}}}}}}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/performers/sitemap":{"get":{"operationId":"getPerformersSitemap","summary":"Bulk id + lastmod feed for the performers sitemap","description":"One entry per performer with at least one upcoming published, public, non-cancelled event, id-sorted and capped at 50,000. Regenerated when the Tue/Thu/Sat anchor rolls (three times a week).","tags":["Reference"],"responses":{"200":{"description":"Ids and last-modified timestamps, plus the anchor date.","content":{"application/json":{"schema":{"type":"object","required":["data","anchorDate"],"properties":{"anchorDate":{"type":"string","format":"date"},"data":{"type":"array","items":{"type":"object","required":["id","lastmod"],"properties":{"id":{"type":"string","format":"uuid"},"lastmod":{"type":"string","format":"date-time"}}}}}}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/notifications/push-public-key":{"get":{"operationId":"getPushPublicKey","summary":"VAPID public key for Web Push subscriptions","description":"The application server key a browser passes to `PushManager.subscribe({ applicationServerKey })`. It is the public half of the server's VAPID keypair and is safe to expose. Returns 404 when this deployment has no push configured, which clients should treat as 'push unavailable'.","tags":["Notifications"],"responses":{"200":{"description":"The VAPID public key, base64url encoded.","content":{"application/json":{"schema":{"type":"object","required":["publicKey"],"properties":{"publicKey":{"type":"string"}}}}}},"404":{"description":"Web push is not configured on this deployment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/performers/{id}":{"get":{"operationId":"getPerformer","summary":"Get one performer by id","tags":["Reference"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The performer.","content":{"application/json":{"schema":{"type":"object","required":["id","name","kind","createdAt"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"kind":{"type":"string","description":"Enrichment performer kind, e.g. music_artist, comedian, sports_team; `person` for a private individual credited on an event."},"imageUrl":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}}}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Back off and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/health/ready":{"get":{"operationId":"getReadiness","summary":"Readiness of the API and its dependencies","tags":["Operations"],"responses":{"200":{"description":"Ready to serve: the database is connected. `status` is \"degraded\" when Redis or Meilisearch is unavailable (the API keeps serving without them).","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ok","degraded"]},"database":{"type":"string"},"redis":{"type":"string"},"meilisearch":{"type":"string"}}}}}},"503":{"description":"Not ready: the database is unavailable."}}}}},"components":{"schemas":{"Error":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"}}},"EventNotFound":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"gone":{"type":"boolean","description":"The event existed and was retired: merged into a duplicate, or an elapsed event its provider does not allow showing."},"replacementId":{"type":"string","format":"uuid","description":"The live event a merged duplicate now lives on."},"pastEvent":{"type":"object","description":"An elapsed event its provider hides: its bare public facts only (no description, image, price or ticket link).","required":["id","title","startsAt","endsAt","timezone","allDay","venue","performers"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":["string","null"],"format":"date-time"},"timezone":{"type":"string"},"allDay":{"type":"boolean"},"venue":{"type":["object","null"],"required":["id","canonicalId","name","city","country"],"properties":{"id":{"type":"string","format":"uuid"},"canonicalId":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]}}},"performers":{"type":"array","description":"The billed acts, in billing order (no cast or crew credits).","items":{"type":"object","required":["id","name","kind"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"kind":{"type":"string"}}}}}}}},"EventListItem":{"type":"object","required":["id","title","startsAt","timezone","status","visibility","sourceStatus","canonicalUrl"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"description":{"type":["string","null"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":["string","null"],"format":"date-time"},"timezone":{"type":"string","description":"IANA time zone of the event's local start time."},"allDay":{"type":"boolean","description":"The source published a date with no time of day, so startsAt is a synthesized local midnight; clients should render the date without a time."},"imageUrl":{"type":["string","null"],"format":"uri"},"sourceUrl":{"type":["string","null"],"format":"uri","description":"Official ticket/detail page at the upstream source."},"canonicalUrl":{"type":"string","format":"uri","description":"The event's page on 360exp.net (https://360exp.net/events/{id}). Prefer this URL when linking to or citing the event; `sourceUrl` is the upstream ticket page."},"priceMin":{"type":["string","null"]},"priceMax":{"type":["string","null"]},"currency":{"type":["string","null"],"description":"ISO 4217 code, e.g. MXN."},"visibility":{"type":"string","enum":["public","private"]},"status":{"type":"string","enum":["draft","published","archived"]},"sourceStatus":{"type":"string","enum":["active","cancelled","postponed","rescheduled"]},"createdByUserId":{"type":["string","null"],"format":"uuid"},"lastChangedAt":{"type":"string","format":"date-time","description":"When this row last changed (last_changed_at, falling back to updated_at). Drives iCalendar SEQUENCE and LAST-MODIFIED, so a client that caches events can use it to detect revisions."},"venueId":{"type":["string","null"],"format":"uuid"},"venueName":{"type":["string","null"]},"venueCity":{"type":["string","null"]},"venueCountry":{"type":["string","null"]}}},"EventDetail":{"type":"object","required":["id","title","startsAt","timezone","categories","aiEnrichment","isSaved","canonicalUrl"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"description":{"type":["string","null"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":["string","null"],"format":"date-time"},"timezone":{"type":"string","description":"IANA time zone of the event's local start time."},"allDay":{"type":"boolean","description":"The source published a date with no time of day, so startsAt is a synthesized local midnight; clients should render the date without a time."},"imageUrl":{"type":["string","null"],"format":"uri"},"sourceUrl":{"type":["string","null"],"format":"uri","description":"Official ticket/detail page at the upstream source."},"canonicalUrl":{"type":"string","format":"uri","description":"The event's page on 360exp.net (https://360exp.net/events/{id}). Prefer this URL when linking to or citing the event; `sourceUrl` is the upstream ticket page."},"priceMin":{"type":["string","null"]},"priceMax":{"type":["string","null"]},"currency":{"type":["string","null"],"description":"ISO 4217 code, e.g. MXN."},"visibility":{"type":"string","enum":["public","private"]},"status":{"type":"string","enum":["draft","published","archived"]},"sourceStatus":{"type":"string","enum":["active","cancelled","postponed","rescheduled"]},"createdByUserId":{"type":["string","null"],"format":"uuid"},"lastChangedAt":{"type":"string","format":"date-time","description":"When this row last changed (last_changed_at, falling back to updated_at). Drives iCalendar SEQUENCE and LAST-MODIFIED, so a client that caches events can use it to detect revisions."},"venueId":{"type":["string","null"],"format":"uuid"},"venueName":{"type":["string","null"]},"venueCity":{"type":["string","null"]},"venueCountry":{"type":["string","null"]},"doorsAt":{"type":["string","null"],"format":"date-time","description":"When the doors open, for sources that publish it apart from startsAt; null when unknown. Always before startsAt, by at most 12 hours."},"categoryIds":{"type":["array","null"],"items":{"type":"string","format":"uuid"}},"venueAddress":{"type":["string","null"]},"venue":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"address":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]},"canonicalId":{"type":"string","format":"uuid","description":"The venue id whose page is the canonical URL for this place (the venue's representativeId); `id` itself when unresolved or nothing is upcoming. May be absent for a few minutes after a release: fall back to `id`."}}},"categories":{"type":"array","items":{"type":"object","required":["id","name","slug"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"parentId":{"type":["string","null"],"format":"uuid"}}}},"performers":{"type":"array","description":"Followable performer entities linked to this event, credits (cast & crew) first in billing order, then by name. Distinct from aiEnrichment.performers, which is the raw model output (names only).","items":{"type":"object","required":["id","name","kind","creditType","role","billingOrder"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"kind":{"type":"string","description":"Enrichment performer kind, e.g. music_artist, comedian, sports_team; `person` for a private individual credited on an event."},"imageUrl":{"type":["string","null"]},"creditType":{"type":["string","null"],"enum":["cast","crew",null],"description":"Set when the link is a credit; null for a plain lineup link."},"role":{"type":["string","null"]},"billingOrder":{"type":["integer","null"],"description":"0-based position within its credit type."}}}},"aiEnrichment":{"type":["object","null"],"description":"Supplementary AI-generated text insights. Never replaces organizer/source fields.","properties":{"categories":{"type":"array","items":{"type":"string"}},"format":{"type":"string"},"setting":{"type":"string"},"performers":{"type":"array","items":{"type":"object"}},"genres":{"type":"array","items":{"type":"string"}},"audience":{"type":"array","items":{"type":"string"}},"ageRestriction":{"type":["string","null"]},"accessibility":{"type":"array","items":{"type":"string"}},"statusSignals":{"type":"array","items":{"type":"string"}},"qualityFlags":{"type":"array","items":{"type":"string"}},"seriesName":{"type":["string","null"]},"summary":{"type":["string","null"]},"confidence":{"type":"number","minimum":0,"maximum":1},"promptVersion":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"}}},"isSaved":{"type":"boolean","description":"Per-viewer state. Always false for anonymous requests."},"rsvpStatus":{"type":["string","null"],"description":"Per-viewer state: going | interested | not_going. Always null for anonymous requests."},"myRaceEntries":{"type":"array","description":"Per-viewer state: the signed-in viewer's own entries for this race, oldest first. Present only for a signed-in viewer of a race (an event with raceOptions) using a first-party session; never for an agent token.","items":{"$ref":"#/components/schemas/UserRaceEntry"}},"raceOptions":{"type":"array","description":"The distances/waves of a participatory race (5K, marathon, trail...), shortest first. Present only on a race; absent on every other event.","items":{"type":"object","required":["key","label","distanceMeters","distanceBucket","discipline","startsAt","feeMin","feeMax","currency","registrationClosesAt","cutoffMinutes","elevationGainMeters","capacityStatus"],"properties":{"key":{"type":"string","description":"Stable id of the option within the event."},"label":{"type":"string","description":"The organizer's name, e.g. 10K or Medio maratón."},"distanceMeters":{"type":["integer","null"]},"distanceBucket":{"type":["string","null"],"enum":["5k","10k","15k","half-marathon","marathon","ultra",null],"description":"The named distance it counts as; null when it matches none (e.g. 8 km)."},"discipline":{"type":["string","null"],"enum":["road","trail","ultra","triathlon","duathlon","obstacle","swim","cycle","walk","virtual","other",null]},"startsAt":{"type":["string","null"],"format":"date-time","description":"Wave start; null when it is the event's own start."},"feeMin":{"type":["number","null"]},"feeMax":{"type":["number","null"]},"currency":{"type":["string","null"],"description":"ISO 4217 code of the fees; null when the source names none."},"registrationClosesAt":{"type":["string","null"],"format":"date-time"},"cutoffMinutes":{"type":["integer","null"],"description":"Course time limit."},"elevationGainMeters":{"type":["integer","null"]},"capacityStatus":{"type":"string","enum":["open","few_left","sold_out","closed","unknown"]}}}}}},"UserRaceEntry":{"type":"object","required":["id","eventId","raceOptionKey","raceName","racedOn","distanceMeters","distanceBucket","discipline","status","bib","finishSeconds","createdAt","updatedAt"],"properties":{"id":{"type":"string","format":"uuid"},"eventId":{"type":["string","null"],"format":"uuid","description":"The linked event; null for a race entered by hand."},"raceOptionKey":{"type":["string","null"],"description":"The event's race option (`raceOptions[].key`) the entry is for."},"raceName":{"type":"string","description":"The live event's title while the link holds, else the stored name."},"racedOn":{"type":"string","format":"date","description":"Local race day; the option's wave start, else the event start, when linked."},"distanceMeters":{"type":["integer","null"]},"distanceBucket":{"type":["string","null"],"enum":["5k","10k","15k","half-marathon","marathon","ultra",null]},"discipline":{"type":["string","null"],"enum":["road","trail","ultra","triathlon","duathlon","obstacle","swim","cycle","walk","virtual","other",null]},"status":{"type":"string","enum":["registered","finished","did_not_finish","did_not_start"]},"bib":{"type":["string","null"],"maxLength":20},"finishSeconds":{"type":["integer","null"],"description":"Official finish time in seconds; only on `finished`."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"Performer":{"type":"object","required":["id","name","kind"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"kind":{"type":"string","description":"Enrichment performer kind, e.g. music_artist, comedian, sports_team; `person` for a private individual credited on an event."},"imageUrl":{"type":["string","null"]}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Access token issued by WorkOS AuthKit — see /auth.md."},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"Paid API key (`360_live_…`), created at /settings/api. Optional: it raises the rate limit and meters usage in entities, it does not unlock extra data."},"ApiKeyBearer":{"type":"http","scheme":"bearer","description":"The same API key presented as a bearer token. Keys and WorkOS access tokens are told apart by shape, so either may be sent in this header."}}},"security":[{},{"ApiKeyAuth":[]},{"ApiKeyBearer":[]}]}