{"openapi":"3.0.0","info":{"title":"AgentLive.Events API","version":"0.6.0"},"servers":[{"url":"https://api.agentlive.events"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Health":{"type":"object","properties":{"ok":{"type":"boolean"},"db":{"type":"string","enum":["ok","error","skipped"]}},"required":["ok","db"]},"Status":{"type":"object","properties":{"experiencesAvailable":{"type":"number","nullable":true},"experiencesUpdatedAt":{"type":"string","nullable":true},"ticketNetwork":{"type":"object","properties":{"status":{"type":"string","enum":["ok","degraded","unknown"]},"checkedAt":{"type":"string","nullable":true}},"required":["status","checkedAt"]}},"required":["experiencesAvailable","experiencesUpdatedAt","ticketNetwork"]},"AgentKey":{"type":"object","properties":{"apiKey":{"type":"string"},"keyId":{"type":"string"},"label":{"type":"string","nullable":true},"createdAt":{"type":"string"}},"required":["apiKey","keyId","label","createdAt"]},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"request_id":{"type":"string","description":"Quote this when you report a problem. Same as the X-Request-Id header."}},"required":["code","message","retryable"]}},"required":["error"]},"EventSearch":{"type":"object","properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"page":{"type":"number"},"perPage":{"type":"number"},"resaleNotice":{"type":"string"},"nothingFound":{"type":"string"}},"required":["events","page","perPage","resaleNotice"]},"Event":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"localDateTime":{"type":"string","nullable":true},"utcOffset":{"type":"string","nullable":true},"timezone":{"type":"string","nullable":true},"venue":{"type":"object","properties":{"id":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"stateProvince":{"type":"string","nullable":true}},"required":["id","name","city","stateProvince"]},"hasTickets":{"type":"boolean"},"purchasable":{"type":"boolean"},"ticketCount":{"type":"number","nullable":true},"fromPricePerTicketAllInCents":{"type":"number","nullable":true},"supplier":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"}},"required":["key","displayName"]}},"required":["id","name","localDateTime","utcOffset","timezone","venue","hasTickets","purchasable","ticketCount","fromPricePerTicketAllInCents","supplier"]},"EventDetail":{"allOf":[{"$ref":"#/components/schemas/Event"},{"type":"object","properties":{"venueInfo":{"type":"object","properties":{"name":{"type":"string","nullable":true},"address":{"type":"object","nullable":true,"properties":{"street1":{"type":"string","nullable":true},"street2":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"stateProvince":{"type":"string","nullable":true},"zipCode":{"type":"string","nullable":true},"country":{"type":"string","nullable":true}},"required":["street1","street2","city","stateProvince","zipCode","country"]},"rules":{"type":"string","nullable":true},"childRules":{"type":"string","nullable":true},"parking":{"type":"string","nullable":true},"publicTransportation":{"type":"string","nullable":true},"directions":{"type":"string","nullable":true},"willCall":{"type":"string","nullable":true},"capacity":{"type":"number","nullable":true},"url":{"type":"string","nullable":true}},"required":["name","address","rules","childRules","parking","publicTransportation","directions","willCall","capacity","url"]},"resaleNotice":{"type":"string"}},"required":["venueInfo","resaleNotice"]}]},"SeatingOverview":{"type":"object","properties":{"eventId":{"type":"string"},"qty":{"type":"number","nullable":true},"groups":{"type":"array","items":{"type":"object","properties":{"area":{"type":"string"},"groupedBy":{"type":"string","enum":["level","zone","section_prefix","section","section_hundreds","other"],"description":"How this area was grouped. level is a venue level from the map. section_hundreds is a hundreds band such as Sections 100s. section_prefix is sections that share the start of their name, such as FL-A12 and FL-A3. section is one section. other is the long tail, named Other sections."},"sections":{"type":"array","items":{"type":"string"},"description":"Section names in this area. Pass one of these as section to get_listings to see listings in that section."},"listingCount":{"type":"number"},"lowestPricePerTicketAllInCents":{"type":"number","description":"Lowest price per ticket in this area, fees included, before sales tax"},"priceComparison":{"anyOf":[{"$ref":"#/components/schemas/PriceComparison"},{"$ref":"#/components/schemas/PriceComparisonPending"},{"nullable":true}]},"comparisonStatus":{"$ref":"#/components/schemas/ComparisonStatus"}},"required":["area","groupedBy","sections","listingCount","lowestPricePerTicketAllInCents"]}},"listingCount":{"type":"number","description":"How many listings are in this overview."},"omittedAreasCount":{"type":"number","description":"How many areas were folded into the area named Other sections. 0 when there is no Other sections area. Their sections are still listed under Other sections."},"eventPricing":{"type":"object","nullable":true,"properties":{"ticketsAvailable":{"type":"number"},"lowPricePerTicketAllInCents":{"type":"number"},"averagePricePerTicketAllInCents":{"type":"number"},"highPricePerTicketAllInCents":{"type":"number"}},"required":["ticketsAvailable","lowPricePerTicketAllInCents","averagePricePerTicketAllInCents","highPricePerTicketAllInCents"],"description":"Low, average and high price per ticket across the listings for this quantity, fees included, before sales tax"},"layout":{"type":"string","nullable":true},"mapImageUrl":{"type":"string","nullable":true},"mapPageUrl":{"type":"string"},"resaleNotice":{"type":"string"},"taxNote":{"type":"string","description":"Prices include fees but not sales tax. If sales tax applies, it is added on the checkout page."},"eventNotes":{"type":"array","items":{"type":"string"},"description":"Notes supplied with this event's ticket list. Omitted when none were supplied."},"nothingFound":{"type":"string"}},"required":["eventId","qty","groups","listingCount","omittedAreasCount","eventPricing","layout","mapPageUrl","resaleNotice","taxNote"]},"PriceComparison":{"type":"object","properties":{"status":{"type":"string","enum":["ready"]},"comparisonId":{"type":"string"},"checkedAt":{"type":"string","description":"When the big resale marketplaces were checked"},"quantity":{"type":"number"},"basis":{"type":"string","enum":["same_seats","same_row","same_section","same_area","event_lowest"]},"ourPricePerTicketAllInCents":{"type":"number"},"competitors":{"type":"array","items":{"type":"object","properties":{"marketplace":{"type":"string","enum":["StubHub","SeatGeek","Vivid Seats"]},"bestPricePerTicketAllInCents":{"type":"number"},"eventUrl":{"type":"string"}},"required":["marketplace","bestPricePerTicketAllInCents","eventUrl"]}},"bestCompetitor":{"type":"string"},"savingsPerTicketCents":{"type":"number","description":"Negative when the other seller is cheaper."},"savingsTotalCents":{"type":"number"},"savingsPct":{"type":"number"},"verdict":{"type":"string","enum":["cheaper","about_the_same","cheaper_elsewhere"]},"text":{"type":"string","description":"Share this with your human, including the link."}},"required":["status","comparisonId","checkedAt","quantity","basis","ourPricePerTicketAllInCents","competitors","bestCompetitor","savingsPerTicketCents","savingsTotalCents","savingsPct","verdict","text"]},"PriceComparisonPending":{"type":"object","properties":{"status":{"type":"string","enum":["pending"]},"quantity":{"type":"number"},"retryAfterSeconds":{"type":"number","description":"Still loading. Do not call get_seating_overview again to wait for it; tell your human the price check isn't finished."}},"required":["status","quantity","retryAfterSeconds"]},"ComparisonStatus":{"type":"object","properties":{"status":{"type":"string","enum":["cheaper_found","none_cheaper","no_match","pending","not_checked"],"description":"cheaper_found: cheaper elsewhere. none_cheaper: we are cheaper or about the same. no_match: checked, no comparable seats. pending: still loading. not_checked: not compared (no quantity given, or the price check was missing or failed)."},"sellersChecked":{"type":"array","items":{"type":"string","enum":["StubHub","SeatGeek","Vivid Seats"]},"description":"Sellers covered by the capture used. Empty when not_checked."}},"required":["status","sellersChecked"]},"Listings":{"type":"object","properties":{"eventId":{"type":"string"},"qty":{"type":"number","nullable":true},"totalCount":{"type":"integer","description":"How many listings match these filters, across all pages."},"nextCursor":{"type":"string","nullable":true,"description":"Pass this as cursor for the next page. Null when there are no more listings, including when every listing came back at once."},"hint":{"type":"string","description":"Set when you omit limit and another page exists."},"listings":{"type":"array","items":{"$ref":"#/components/schemas/ListingPageItem"}},"source":{"type":"string","enum":["ours"]},"supplier":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"}},"required":["key","displayName"],"description":"The supplier for these listings, once."},"sellersChecked":{"type":"array","items":{"type":"string","enum":["StubHub","SeatGeek","Vivid Seats"]},"description":"Sellers this capture covered, once. Empty when not_checked."},"competitorEvents":{"type":"array","items":{"type":"object","properties":{"marketplace":{"type":"string","enum":["StubHub","SeatGeek","Vivid Seats"]},"eventUrl":{"type":"string"}},"required":["marketplace","eventUrl"]},"description":"Links to this event on the big resale marketplaces, once, on a page. Left out when no ready comparison has a link. Use the link that matches a listing's bestCompetitor."},"layout":{"type":"string","nullable":true,"description":"Venue layout for this event, once."},"mapImageUrl":{"type":"string","nullable":true},"resaleNotice":{"type":"string"},"taxNote":{"type":"string","description":"Prices include fees but not sales tax. If sales tax applies, it is added on the checkout page."},"eventNotes":{"type":"array","items":{"type":"string"},"description":"Notes supplied with this event's ticket list. Omitted when none were supplied."},"nothingFound":{"type":"string","description":"Present when no listing matches: none sells the requested quantity, or none for that quantity is at or under maxPrice."}},"required":["eventId","qty","totalCount","nextCursor","listings","source","layout","resaleNotice","taxNote"]},"ListingPageItem":{"type":"object","properties":{"id":{"type":"string"},"section":{"type":"string"},"row":{"type":"string","nullable":true},"seats":{"type":"string","nullable":true},"quantitiesAvailable":{"type":"array","items":{"type":"number"}},"pricePerTicketAllInCents":{"type":"number","description":"What your human pays per ticket, fees included, before sales tax"},"feesIncludedCents":{"type":"number","description":"Per ticket, the fee part of pricePerTicketAllInCents"},"salesTaxIncluded":{"type":"boolean","enum":[false]},"delivery":{"type":"object","properties":{"codes":{"type":"array","items":{"type":"string"}},"text":{"type":"string"}},"required":["codes","text"]},"entryType":{"type":"string","enum":["entry","not_valid_for_entry"]},"typeLabel":{"type":"string"},"notEntryNotice":{"type":"string"},"pickupFeeNotice":{"type":"string","description":"Shown only on local pickup listings. The price already includes the pickup fee."},"notes":{"type":"array","items":{"type":"string"}},"noteTags":{"type":"array","items":{"type":"string","enum":["clear_view","limited_view","obstructed_view","side_view","aisle","ada_accessible","standing_room","behind_stage","front_row","early_row","club","padded_seat"]},"description":"Slugs parsed from the seller notes and notices. The notes field is unchanged. clear_view: Clear view. limited_view: Limited / restricted view. obstructed_view: Obstructed view. side_view: Side view. aisle: Aisle. ada_accessible: ADA / wheelchair accessible. standing_room: Standing room only. behind_stage: Behind the stage. front_row: Front / first row of section. early_row: Early row (2nd–5th). club: Club seats / club level. padded_seat: Padded seat."},"notices":{"type":"array","items":{"type":"string"}},"sellerRating":{"type":"number","nullable":true},"ticketGroupId":{"type":"string","nullable":true,"description":"The seller's ID for these seats. The checkout URL carries it as tg and tgid."},"realTime":{"type":"boolean"},"qualityScore":{"type":"number"},"seating":{"$ref":"#/components/schemas/ListingPageSeating"},"priceComparison":{"anyOf":[{"$ref":"#/components/schemas/ListingPageComparison"},{"$ref":"#/components/schemas/PriceComparisonPending"},{"nullable":true}]},"comparisonStatus":{"$ref":"#/components/schemas/ListingPageComparisonStatus"}},"required":["id","section","row","seats","quantitiesAvailable","pricePerTicketAllInCents","feesIncludedCents","salesTaxIncluded","delivery","entryType","typeLabel","notes","noteTags","notices","sellerRating","ticketGroupId","realTime","qualityScore","seating"]},"ListingPageSeating":{"type":"object","properties":{"level":{"type":"string","description":"Omitted when not known"},"zone":{"type":"string","description":"Omitted when not known"},"mapPageUrl":{"type":"string","description":"Page that shows these seats on the venue map. Send it to your human."},"sectionMapUrl":{"type":"string","description":"Link to the venue map with this listing's section highlighted. Section-level context only, not a price hold or a live-inventory guarantee. Prefer mapPageUrl for a specific ticket group."},"viewFromSectionUrl":{"type":"string","description":"Photo of the view from the section. Omitted when not known"},"approximation":{"type":"string","enum":["approximate"],"description":"Always \"approximate\". rowDepth and levelGuess are guesses from the section and row text."},"rowDepth":{"type":"integer","nullable":true,"description":"Approximate. How far back the row sits in the section: 1 is the front (row A or row 1), 2 is the next row, and so on. Null when the row is not a plain letter or number. Guessed from the row text."},"levelGuess":{"type":"string","nullable":true,"description":"Approximate. A guess at the level from the section name, such as 100s, 200s, Floor, Orchestra or Mezzanine. Null when the name does not say."}},"required":["mapPageUrl","sectionMapUrl","approximation","rowDepth","levelGuess"]},"ListingPageComparison":{"type":"object","properties":{"status":{"type":"string","enum":["ready"]},"basis":{"type":"string","enum":["same_seats","same_row","same_section","same_area","event_lowest"]},"verdict":{"type":"string","enum":["cheaper","about_the_same","cheaper_elsewhere"]},"bestCompetitor":{"type":"string"},"bestPricePerTicketAllInCents":{"type":"number","description":"Best competitor's price per ticket with fees included, in cents."},"savingsPerTicketCents":{"type":"number","description":"Negative when the other seller is cheaper."},"text":{"type":"string","description":"Share this with your human, including the link."}},"required":["status","basis","verdict","bestCompetitor","bestPricePerTicketAllInCents","savingsPerTicketCents","text"]},"ListingPageComparisonStatus":{"type":"object","properties":{"status":{"type":"string","enum":["cheaper_found","none_cheaper","no_match","pending","not_checked"],"description":"cheaper_found: cheaper elsewhere. none_cheaper: we are cheaper or about the same. no_match: checked, no comparable seats. pending: still loading. not_checked: not compared (no quantity given, or the price check was missing or failed)."}},"required":["status"]},"Quote":{"type":"object","properties":{"quoteId":{"type":"string"},"ticketGroupId":{"type":"string","nullable":true,"description":"The seller's ID for these seats. The checkout URL carries it as tg and tgid."},"listing":{"$ref":"#/components/schemas/Listing"},"qty":{"type":"number"},"expectedTotalCents":{"type":"number","description":"Total for qty tickets, fees included. Total excludes any sales tax the venue or event adds at checkout."},"feesIncludedCents":{"type":"number"},"salesTaxIncluded":{"type":"boolean","enum":[false]},"toleranceCents":{"type":"number","description":"How far the checkout total may exceed expectedTotalCents. 0 by default: any rise needs your human's OK."},"expiresAt":{"type":"string"},"checkout":{"type":"object","properties":{"url":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"agentHints":{"type":"string","nullable":true}},"required":["url","steps","agentHints"]},"humanCheckoutUrl":{"type":"string","description":"Open the quote's checkout URL in your browser and pay with Link after your human approves. Give the URL to your human to pay the seller themselves only if the total is over their Link limits, you can't use Link or a browser, or they ask."},"checkoutPath":{"type":"string","enum":["link","human_checkout"]},"link":{"type":"object","properties":{"merchant_name":{"type":"string"},"merchant_url":{"type":"string"},"currency":{"type":"string","enum":["usd"]},"context":{"type":"string"},"request_approval":{"type":"boolean","enum":[true]}},"required":["merchant_name","merchant_url","currency","context","request_approval"],"description":"Copy into the Link spend request exactly. Your human approves it in Link."},"deliveryText":{"type":"string"},"statementName":{"type":"string","nullable":true},"notices":{"type":"array","items":{"type":"string"}},"pickupFeeNotice":{"type":"string"},"resaleNotice":{"type":"string"},"taxNote":{"type":"string","description":"Prices include fees but not sales tax. If sales tax applies, it is added on the checkout page."},"priceComparison":{"allOf":[{"$ref":"#/components/schemas/PriceComparison"},{"nullable":true}]},"comparisonStatus":{"$ref":"#/components/schemas/ComparisonStatus"},"comparisonId":{"type":"string","nullable":true},"priceDropped":{"type":"object","properties":{"previousPricePerTicketAllInCents":{"type":"number"}},"required":["previousPricePerTicketAllInCents"],"description":"The price fell since you last saw it. No need to ask your human again."},"refresh":{"$ref":"#/components/schemas/QuoteRefresh"}},"required":["quoteId","listing","qty","expectedTotalCents","feesIncludedCents","salesTaxIncluded","toleranceCents","expiresAt","checkout","humanCheckoutUrl","checkoutPath","link","deliveryText","statementName","notices","resaleNotice","taxNote"]},"Listing":{"type":"object","properties":{"id":{"type":"string"},"eventId":{"type":"string"},"source":{"type":"string","enum":["ours"]},"supplier":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"}},"required":["key","displayName"]},"section":{"type":"string"},"row":{"type":"string","nullable":true},"seats":{"type":"string","nullable":true},"quantitiesAvailable":{"type":"array","items":{"type":"number"}},"pricePerTicketAllInCents":{"type":"number","description":"What your human pays per ticket, fees included, before sales tax"},"feesIncludedCents":{"type":"number","description":"Per ticket, the fee part of pricePerTicketAllInCents"},"salesTaxIncluded":{"type":"boolean","enum":[false]},"delivery":{"type":"object","properties":{"codes":{"type":"array","items":{"type":"string"}},"text":{"type":"string"}},"required":["codes","text"]},"entryType":{"type":"string","enum":["entry","not_valid_for_entry"]},"typeLabel":{"type":"string"},"notEntryNotice":{"type":"string"},"pickupFeeNotice":{"type":"string","description":"Shown only on local pickup listings. The price already includes the pickup fee."},"notes":{"type":"array","items":{"type":"string"}},"noteTags":{"type":"array","items":{"type":"string","enum":["clear_view","limited_view","obstructed_view","side_view","aisle","ada_accessible","standing_room","behind_stage","front_row","early_row","club","padded_seat"]},"description":"Slugs parsed from the seller notes and notices. The notes field is unchanged. clear_view: Clear view. limited_view: Limited / restricted view. obstructed_view: Obstructed view. side_view: Side view. aisle: Aisle. ada_accessible: ADA / wheelchair accessible. standing_room: Standing room only. behind_stage: Behind the stage. front_row: Front / first row of section. early_row: Early row (2nd–5th). club: Club seats / club level. padded_seat: Padded seat."},"notices":{"type":"array","items":{"type":"string"}},"sellerRating":{"type":"number","nullable":true},"ticketGroupId":{"type":"string","nullable":true,"description":"The seller's ID for these seats. The checkout URL carries it as tg and tgid."},"realTime":{"type":"boolean"},"qualityScore":{"type":"number"},"seating":{"$ref":"#/components/schemas/Seating"},"priceComparison":{"allOf":[{"$ref":"#/components/schemas/PriceComparison"},{"nullable":true}]},"comparisonStatus":{"$ref":"#/components/schemas/ComparisonStatus"}},"required":["id","eventId","source","supplier","section","row","seats","quantitiesAvailable","pricePerTicketAllInCents","feesIncludedCents","salesTaxIncluded","delivery","entryType","typeLabel","notes","noteTags","notices","sellerRating","realTime","qualityScore","seating"]},"Seating":{"type":"object","properties":{"section":{"type":"string"},"row":{"type":"string","nullable":true},"seats":{"type":"string","nullable":true},"level":{"type":"string","description":"Omitted when not known"},"zone":{"type":"string","description":"Omitted when not known"},"layout":{"type":"string","nullable":true,"description":"Venue layout, e.g. End Stage"},"mapImageUrl":{"type":"string","nullable":true},"mapPageUrl":{"type":"string","description":"Page that shows these seats on the venue map. Send it to your human."},"sectionMapUrl":{"type":"string","description":"Link to the venue map with this listing's section highlighted. Section-level context only, not a price hold or a live-inventory guarantee. Prefer mapPageUrl for a specific ticket group."},"viewFromSectionUrl":{"type":"string","description":"Photo of the view from the section. Omitted when not known"},"description":{"type":"string","description":"Where the seats are, built only from the fields above"},"approximation":{"type":"string","enum":["approximate"],"description":"Always \"approximate\". rowDepth and levelGuess are guesses from the section and row text."},"rowDepth":{"type":"integer","nullable":true,"description":"Approximate. How far back the row sits in the section: 1 is the front (row A or row 1), 2 is the next row, and so on. Null when the row is not a plain letter or number. Guessed from the row text."},"levelGuess":{"type":"string","nullable":true,"description":"Approximate. A guess at the level from the section name, such as 100s, 200s, Floor, Orchestra or Mezzanine. Null when the name does not say."}},"required":["section","row","seats","layout","mapPageUrl","sectionMapUrl","description","approximation","rowDepth","levelGuess"]},"QuoteRefresh":{"type":"object","properties":{"previousQuoteId":{"type":"string","description":"The quote ID this refresh checked."},"previousExpectedTotalCents":{"type":"integer","description":"expectedTotalCents stored on that quote."},"currentExpectedTotalCents":{"type":"integer","description":"Live total with fees included, before sales tax, for the same ticket group and quantity."},"deltaCents":{"type":"integer","description":"currentExpectedTotalCents minus previousExpectedTotalCents. Negative when the price fell."},"status":{"type":"string","enum":["same","lower","higher"],"description":"Compared with the stored quote total. same or lower: a new quote was issued. higher: no quote until acceptedTotalCents covers the live total."},"deliveryChanged":{"type":"object","properties":{"previous":{"type":"string"},"current":{"type":"string"}},"required":["previous","current"],"description":"Set when the delivery text or codes differ from the previous quote. Read both to your human."},"noticesChanged":{"type":"object","properties":{"previous":{"type":"array","items":{"type":"string"}},"current":{"type":"array","items":{"type":"string"}}},"required":["previous","current"],"description":"Set when notices differ from the previous quote. Read both to your human."}},"required":["previousQuoteId","previousExpectedTotalCents","currentExpectedTotalCents","deltaCents","status"]},"PriceChanged":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"priceChanged":{"type":"boolean","enum":[true]},"previousPricePerTicketAllInCents":{"type":"number"},"listing":{"$ref":"#/components/schemas/Listing"},"resaleNotice":{"type":"string"}},"required":["priceChanged","previousPricePerTicketAllInCents","listing","resaleNotice"]}]},"RefreshPriceChanged":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"priceChanged":{"type":"boolean","enum":[true]},"refresh":{"$ref":"#/components/schemas/QuoteRefresh"},"listing":{"$ref":"#/components/schemas/Listing"},"resaleNotice":{"type":"string"}},"required":["priceChanged","refresh","listing","resaleNotice"]}]},"QuantityNotAvailable":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"validQuantities":{"type":"array","items":{"type":"integer"},"description":"Quantities this listing can be bought in. Ask your human to pick one."}},"required":["validQuantities"]}]},"QuoteCheck":{"type":"object","properties":{"quoteId":{"type":"string"},"status":{"type":"string","enum":["same","lower","higher","gone","expired"],"description":"same or lower: place the order. higher: reconfirm with your human first. expired: call get_quote with previousQuoteId. gone: stop and tell your human those tickets are no longer available."},"okToBuy":{"type":"boolean"},"expectedTotalCents":{"type":"number"},"currentTotalCents":{"type":"number","nullable":true},"currentPricePerTicketAllInCents":{"type":"number","nullable":true}},"required":["quoteId","status","okToBuy","expectedTotalCents","currentTotalCents","currentPricePerTicketAllInCents"]},"OutcomeReceived":{"type":"object","properties":{"quoteId":{"type":"string"},"ticketGroupId":{"type":"string","nullable":true},"status":{"type":"string"},"receivedAt":{"type":"string"},"attempt":{"type":"number"},"failedBefore":{"type":"number"},"savingsText":{"type":"string"}},"required":["quoteId","status","receivedAt","attempt","failedBefore"]}},"parameters":{}},"paths":{"/healthz":{"get":{"responses":{"200":{"description":"Process is up","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/status.json":{"get":{"responses":{"200":{"description":"Experiences available and TicketNetwork health","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/v1/agents":{"post":{"summary":"Get an API key","description":"Returns a new API key once. Send it as a Bearer token on every call. The optional label is your agent's name.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":64}},"additionalProperties":false}}}},"responses":{"201":{"description":"Key created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentKey"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ticket supplier unavailable; retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events":{"get":{"summary":"search_events","description":"Search the ticket catalog by keyword, location (city, for example Los Angeles, or near with latitude,longitude), dates, category, performer or venue. Returns events with date, venue, the lowest price per ticket with fees included, and whether tickets exist.","security":[{"bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","pattern":"^\\s*-?\\d{1,2}(\\.\\d+)?\\s*,\\s*-?\\d{1,3}(\\.\\d+)?\\s*$","description":"Latitude,longitude, e.g. 40.75,-73.99"},"required":false,"description":"Latitude,longitude, e.g. 40.75,-73.99","name":"near","in":"query"},{"schema":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":500,"description":"Miles around near. Default 200."},"required":false,"description":"Miles around near. Default 200.","name":"radius","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":100},"required":false,"name":"city","in":"query"},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"required":false,"name":"to","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":100},"required":false,"name":"category","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Performer name or catalog performer ID"},"required":false,"description":"Performer name or catalog performer ID","name":"performer","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Venue name or catalog venue ID"},"required":false,"description":"Venue name or catalog venue ID","name":"venue","in":"query"},{"schema":{"type":"string","enum":["date","popular"],"description":"date: soonest first. popular: best selling first. Omit for the default."},"required":false,"description":"date: soonest first. popular: best selling first. Omit for the default.","name":"sort","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":50},"required":false,"name":"perPage","in":"query"}],"responses":{"200":{"description":"Events","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSearch"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ticket supplier unavailable; retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{id}":{"get":{"summary":"get_event","description":"Event detail plus venue information: rules, child rules, parking, public transportation, directions and will call.","security":[{"bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Event","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventDetail"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"We don't have this event","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ticket supplier unavailable; retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{id}/seating":{"get":{"summary":"get_seating_overview","description":"Seating options for an event and quantity, in at most 12 areas. When the venue map names levels, sections are grouped by level (for example Field, Lower, Club, Upper or Suites); otherwise by area of the venue, such as Sections 100s when most sections are numbers, or sections that share the start of their name. If that gives more than 12 areas, small areas are combined. If there are still too many, single sections go into one area named Other sections, fewest listings first, and grouped areas join it only when there are 12 or more of them. Each area has the number of listings, the lowest price per ticket with fees included, and sections, the section names in that area; pass one of those names as section to get_listings. listingCount is the total number of listings. omittedAreasCount is how many areas were folded into Other sections, and it is 0 when there is no Other sections area. The response also has the low, average and high price per ticket with fees included for that quantity, the venue layout and a map page. eventNotes, when present, are notes supplied with the event's ticket list. Use it before get_listings, and ask your human whether the view or the budget matters more. When price comparison is on, each area also has comparisonStatus next to priceComparison: cheaper_found, none_cheaper, no_match, pending or not_checked, and sellersChecked, which of the big resale marketplaces the capture covered (empty when not_checked).","security":[{"bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$"},"required":true,"name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"description":"Number of tickets your human wants"},"required":false,"description":"Number of tickets your human wants","name":"qty","in":"query"}],"responses":{"200":{"description":"Seating overview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeatingOverview"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ticket supplier unavailable; retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{id}/listings":{"get":{"summary":"get_listings","description":"Live listings for an event: section, row, seats, quantities you can buy, price per ticket with fees included, delivery, seller notes and notices, and a quality score. seating has the map links, rowDepth and levelGuess. seating.viewFromSectionUrl, when present, is a photo of the view from that section. eventNotes, when present, are notes supplied with the event's ticket list. Use it after the overview to show specific seats. Pass qty for the number of tickets, maxPrice for the highest price per ticket with fees included, and section for a section name from get_seating_overview. Every matching listing is returned unless you pass limit (at most 100) or cursor. totalCount is how many match. When nextCursor is set, pass it as cursor for the next page; it is null when there are no more listings. Without limit or cursor, layout, supplier and sellersChecked are on each listing, and the other sites' links are in each listing's comparison. With limit or cursor, you get a page: layout, supplier and sellersChecked appear once on the response, competitorEvents, the other sites' links for this event, appears once when a ready comparison has a link, and a listing's comparison text does not repeat that link. Parking, hotel and pass listings are left out unless includeNonEntry is true. When price comparison is on, each listing's priceComparison has the verdict, the text and the best competitor price, and comparisonStatus is cheaper_found, none_cheaper, no_match, pending or not_checked.","security":[{"bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$"},"required":true,"name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"description":"Number of tickets your human wants. Only listings that sell exactly this quantity are returned."},"required":false,"description":"Number of tickets your human wants. Only listings that sell exactly this quantity are returned.","name":"qty","in":"query"},{"schema":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":1000000,"description":"Highest price per ticket with fees included, before sales tax, in US dollars"},"required":false,"description":"Highest price per ticket with fees included, before sales tax, in US dollars","name":"maxPrice","in":"query"},{"schema":{"type":"string","enum":["price","quality","section"],"description":"price (default), quality or section"},"required":false,"description":"price (default), quality or section","name":"sort","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"true to include parking, hotel and pass listings"},"required":false,"description":"true to include parking, hotel and pass listings","name":"includeNonEntry","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"description":"How many listings to return, at most 100. Omit limit and cursor to get every matching listing."},"required":false,"description":"How many listings to return, at most 100. Omit limit and cursor to get every matching listing.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":500,"description":"Pass nextCursor from the previous page, with the same qty, maxPrice, sort, section, includeNonEntry and limit. Do not change it."},"required":false,"description":"Pass nextCursor from the previous page, with the same qty, maxPrice, sort, section, includeNonEntry and limit. Do not change it.","name":"cursor","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Only listings in this section. Use a section name from get_seating_overview."},"required":false,"description":"Only listings in this section. Use a section name from get_seating_overview.","name":"section","in":"query"}],"responses":{"200":{"description":"Listings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Listings"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ticket supplier unavailable; retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/quotes":{"post":{"summary":"get_quote","description":"Re-checks the listing and quantity live and returns a quote: the listing, the expected total with fees included and its tolerance, the seller's checkout URL with the steps to follow, the merchant name, merchant URL and context to copy exactly into the Link spend request your human approves, the delivery text and an expiry. Call it after your human confirms the seats, quantity and price. Send listingId and qty. A quote expires after about 10 minutes. It does not hold seats or lock the price. To check the same ticket group and quantity, call get_quote with previousQuoteId set to that quote's ID, and do not send listingId or qty. The response adds refresh: previousQuoteId, previousExpectedTotalCents, currentExpectedTotalCents, deltaCents, and status same, lower or higher, compared with that quote's stored total. Same or lower returns a new quote ID. Higher returns price_changed and no quote until your human confirms. Then call get_quote again with the same previousQuoteId and acceptedTotalCents set to the total they confirmed. If the live total is above that, it refuses again. When price comparison is on, the quote and its listing also have comparisonStatus next to priceComparison. Open the quote's checkout URL in your browser and pay with Link after your human approves. Give the URL to your human to pay the seller themselves only if the total is over their Link limits, you can't use Link or a browser, or they ask.","security":[{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listingId":{"type":"string","minLength":1,"maxLength":300,"description":"The listing's id from get_listings. Required unless you send previousQuoteId."},"qty":{"type":"integer","minimum":1,"maximum":100,"description":"Number of tickets your human confirmed. Required unless you send previousQuoteId (or send it as quantity). Not allowed with previousQuoteId."},"quantity":{"type":"integer","minimum":1,"maximum":100,"description":"Alias for qty. Send one of qty or quantity, not both. Not allowed with previousQuoteId."},"previousQuoteId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_]+$","description":"An earlier quote's ID from this API key. Re-checks that quote's ticket group and quantity, including after it expires. Do not send listingId or qty with it."},"acceptedTotalCents":{"type":"integer","minimum":0,"maximum":1000000000,"description":"Only with previousQuoteId, after your human confirms a higher total. The total they confirmed, in US cents. A new quote is issued only when the live total is at or below this."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such quote for this key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"listing_gone; quantity_not_available with validQuantities when the seats are live but not sold in that quantity; price_changed with the new price; or, for previousQuoteId, price_changed with refresh and no quote, seats_changed, or quote_reported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PriceChanged"},{"$ref":"#/components/schemas/RefreshPriceChanged"},{"$ref":"#/components/schemas/QuantityNotAvailable"},{"$ref":"#/components/schemas/Error"}]}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ticket supplier unavailable; retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/quotes/{id}/check":{"post":{"summary":"check_quote","description":"Call it right before you press Place Order. Re-checks the quote's listing live and compares the live total with the quote's expected total. same or lower: go ahead and place the order. higher: stop and ask your human to confirm the new total before you buy. If it is expired, call get_quote with previousQuoteId set to that quote's ID, without listingId or qty. If it is gone, stop and tell your human those tickets are no longer available; do not choose different tickets without asking them.","security":[{"bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_]+$"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Live price against the quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteCheck"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such quote for this key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ticket supplier unavailable; retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/outcomes":{"post":{"summary":"report_outcome","description":"Optional but helpful. After checkout, report the quoteId from get_quote, status succeeded, failed, or handed_off when you gave your human the checkout link, the reason if it failed (declined_by_seller, captcha, price_changed, listing_gone, approval_declined, approval_expired, total_over_quote, no_browser, no_link, other), the confirmation number, and the totals you saw. Never include anything about your human: no name, email, phone or address.","security":[{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string","minLength":1,"maxLength":64},"status":{"type":"string","enum":["succeeded","failed","handed_off"]},"reason":{"type":"string","enum":["declined_by_seller","captcha","price_changed","listing_gone","approval_declined","approval_expired","total_over_quote","no_browser","no_link","other"]},"confirmationNumber":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9-]+$"},"totalChargedCents":{"type":"integer","minimum":0,"maximum":100000000},"observedTotalCents":{"type":"integer","minimum":0,"maximum":100000000},"approvedAmountCents":{"type":"integer","minimum":0,"maximum":100000000},"note":{"type":"string","minLength":1,"maxLength":200},"linkLimitOutcome":{"type":"string","enum":["within_limits","over_limits","not_checked"]}},"required":["quoteId","status"],"additionalProperties":false}}}},"responses":{"201":{"description":"Outcome received","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeReceived"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such quote for this key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"This quote already has a succeeded outcome","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ticket supplier unavailable; retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}