{"openapi":"3.1.0","info":{"title":"Manage a Band: public gigs API","version":"1.0.0","description":"A band's confirmed gigs, past and upcoming, for showing on the band's own website. Public and read-only: no login and no API key. Only confirmed gigs are listed, with their date, times and venue; contact persons, notes, income and members are never included. Gigs that haven't been confirmed, or were cancelled, aren't listed. Find your band's URL on the band's Settings tab in Manage a Band. Human-readable documentation: https://manage-a-band.com/api"},"servers":[{"url":"https://manage-a-band.com"}],"paths":{"/api/v1/bands/{bandId}/gigs":{"get":{"operationId":"listGigs","summary":"List a band's confirmed gigs","description":"Confirmed gigs, sorted by start time (oldest first, or newest first with order=desc). Dates and times are in the band's time zone. Responses may be cached for 5 minutes. Any website may call it from the browser (CORS: Access-Control-Allow-Origin: *).","parameters":[{"name":"bandId","in":"path","required":true,"description":"The band's id, shown with the API URL on the band's Settings tab.","schema":{"type":"string","format":"uuid"}},{"name":"when","in":"query","required":false,"description":"Only upcoming gigs (not started yet), only past ones, or all.","schema":{"type":"string","enum":["all","upcoming","past"],"default":"all"},"example":"upcoming"},{"name":"from","in":"query","required":false,"description":"Only gigs on or after this date (the band's local date).","schema":{"type":"string","format":"date"},"example":"2027-01-01"},{"name":"to","in":"query","required":false,"description":"Only gigs on or before this date (the band's local date).","schema":{"type":"string","format":"date"},"example":"2027-12-31"},{"name":"order","in":"query","required":false,"description":"Oldest first (asc) or newest first (desc).","schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"example":"desc"},{"name":"limit","in":"query","required":false,"description":"At most this many gigs (after sorting).","schema":{"type":"integer","minimum":1,"maximum":1000},"example":10}],"responses":{"200":{"description":"The band and its confirmed gigs.","headers":{"Cache-Control":{"schema":{"type":"string"},"example":"public, max-age=300"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GigList"},"example":{"band":{"id":"6f1c2a4e-1b7d-4c55-9a8e-2d3f4b5c6d7e","name":"The Core","timeZone":"Europe/Stockholm"},"gigs":[{"id":"0b8e6c1a-7f2d-4e3b-9c5a-1d2e3f4a5b6c","date":"2027-02-13","startTime":"21:00","endTime":null,"startsAt":"2027-02-13T21:00:00+01:00","endsAt":null,"venue":"Oceanen","past":true},{"id":"4a5b6c7d-8e9f-4a1b-8c2d-3e4f5a6b7c8d","date":"2027-03-14","startTime":"19:00","endTime":"23:00","startsAt":"2027-03-14T19:00:00+01:00","endsAt":"2027-03-14T23:00:00+01:00","venue":"Pustervik, stora scenen","past":false}]}}}},"400":{"description":"A query parameter is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"when must be upcoming, past or all."}}}},"404":{"description":"There's no band with this id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"No such band."}}}},"429":{"description":"Too many requests from this address; try again in a few minutes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"GigList":{"type":"object","required":["band","gigs"],"properties":{"band":{"$ref":"#/components/schemas/Band"},"gigs":{"type":"array","items":{"$ref":"#/components/schemas/Gig"}}}},"Band":{"type":"object","required":["id","name","timeZone"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","example":"The Core"},"timeZone":{"type":"string","description":"IANA time zone of the band's dates and times.","example":"Europe/Stockholm"}}},"Gig":{"type":"object","required":["id","date","startTime","endTime","startsAt","endsAt","venue","past"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable id of the gig."},"date":{"type":"string","format":"date","description":"Local date, YYYY-MM-DD."},"startTime":{"type":"string","pattern":"^\\d{2}:\\d{2}$","description":"Local start time, 24-hour clock."},"endTime":{"type":["string","null"],"pattern":"^\\d{2}:\\d{2}$","description":"Local end time, or null. Earlier than startTime: ends after midnight."},"startsAt":{"type":"string","format":"date-time","description":"Start, ISO 8601 with the UTC offset."},"endsAt":{"type":["string","null"],"format":"date-time","description":"End, or null."},"venue":{"type":"string","description":"Where the gig is, as the band wrote it."},"past":{"type":"boolean","description":"True once the gig has started."}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"What was wrong, in English."}}}}}}