{"openapi":"3.1.0","info":{"title":"StubHub API (Bowmark)","version":"e833508f87ff","description":"Secondary ticket marketplace for sports, concerts, theater and other live events — and viagogo, its international brand, on the same inventory. search() finds events by name; getEventListings() returns real resale prices (section, row, all-in price per ticket) for one event. Buying, selling and account reads need a signed-in caller.\n\nEvery function Bowmark has for StubHub (stubhub.com) as one HTTP call. Each runs on Bowmark's infrastructure with the same billing, rules and response envelope as `POST /v1/run`. The whole API: https://api.bowmark.ai/openapi.json. Guide: https://bowmark.ai/docs/api.","contact":{"email":"support@bowmark.ai","url":"https://bowmark.ai/docs/api"}},"servers":[{"url":"https://api.bowmark.ai"}],"security":[{"bearer":[]},{"apiKeyHeader":[]}],"paths":{"/v1/sites/stubhub/search":{"post":{"operationId":"search","summary":"Runs the site's own search for a performer, team, event or venue name and returns the matching events (id, name, venue, city, start time, and whether anything is for sale), plus the performer pages it","description":"Runs the site's own search for a performer, team, event or venue name and returns the matching events (id, name, venue, city, start time, and whether anything is for sale), plus the performer pages it matched. Browserless and fast. `site: \"viagogo\"` searches viagogo.com — same inventory, its own prices. Pass an event's `id` to getEventListings for prices.\n\nCalls `bowmark.providers.stubhub.search`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<stubhubSearchResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"anyOf":[{"type":"object","properties":{"query":{"type":"string"},"site":{"anyOf":[{"const":"stubhub"},{"const":"viagogo"}]}},"required":["query"],"additionalProperties":true},{"type":"string"}],"description":"TypeScript: `{ query: string; site?: \"stubhub\" | \"viagogo\" } | string`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/stubhub/getEventListings":{"post":{"operationId":"getEventListings","summary":"Returns the resale ticket listings one event page shows first (about ten): section, row, seats, all-in price per ticket and how many tickets each sells together, plus the lowest and highest of those p","description":"Returns the resale ticket listings one event page shows first (about ten): section, row, seats, all-in price per ticket and how many tickets each sells together, plus the lowest and highest of those prices and the currency. A general-admission page (a festival or pass) sells by tier instead, so it returns `tiers` (name, \"From\" price, sold out) and an empty `listings`. Takes a search() event `id` or a stubhub.com / viagogo.com event URL; `site` picks which site's prices. Opens a browser to clear the site's bot wall, so expect 25-85s — call events one after another rather than batching many into one run. The ~10 rows are a fixed snapshot: there is no pagination, and sort or URL parameters do not change which listings come back.\n\nCalls `bowmark.providers.stubhub.getEventListings`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<stubhubEventPage>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"anyOf":[{"type":"object","properties":{"eventId":{"type":"string"},"site":{"anyOf":[{"const":"stubhub"},{"const":"viagogo"}]}},"required":["eventId"],"additionalProperties":true},{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":true},{"type":"string"}],"description":"TypeScript: `{ eventId: string; site?: \"stubhub\" | \"viagogo\" } | { url: string } | string`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/stubhub/getEvent":{"post":{"operationId":"getEvent","summary":"Returns one event's details — name, venue with street address, local start time, currency — and the lowest and highest price among the listings its page shows first.","description":"Returns one event's details — name, venue with street address, local start time, currency — and the lowest and highest price among the listings its page shows first. Same page and cost as getEventListings, without the listing rows; call getEventListings when you need the seats.\n\nCalls `bowmark.providers.stubhub.getEvent`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<stubhubEventDetail>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"anyOf":[{"type":"object","properties":{"eventId":{"type":"string"},"site":{"anyOf":[{"const":"stubhub"},{"const":"viagogo"}]}},"required":["eventId"],"additionalProperties":true},{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":true},{"type":"string"}],"description":"TypeScript: `{ eventId: string; site?: \"stubhub\" | \"viagogo\" } | { url: string } | string`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/stubhub/listCategories":{"post":{"operationId":"listCategories","summary":"Returns the genre/category taxonomy StubHub organizes events under (concerts by genre, sports by league, theater, family, etc.), each with its own id, name and url — read from the site's own sitemap, ","description":"Returns the genre/category taxonomy StubHub organizes events under (concerts by genre, sports by league, theater, family, etc.), each with its own id, name and url — read from the site's own sitemap, which is unaffected by the DataDome wall blocking every other function on this provider. With no `query`, returns a curated sample across common leagues and genres (NFL, NBA, rock, theater, …) rather than every one of the sitemap's ~120,000 category rows, most of which are one-off event/tour titles, not genres; pass `{ query }` to search the full taxonomy by name.\n\nCalls `bowmark.providers.stubhub.listCategories`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<stubhubListCategoriesResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"anyOf":[{"type":"object","properties":{"query":{"type":"string"}},"additionalProperties":true},{"type":"string"}],"description":"TypeScript: `{ query?: string } | string`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/stubhub/findPerformers":{"post":{"operationId":"findPerformers","summary":"Finds a performer, artist or sports team by name and returns its id, display name and category (\"Concert\", \"Sports\", \"Theater\", …), for a caller who knows WHO they want tickets for before they know wh","description":"Finds a performer, artist or sports team by name and returns its id, display name and category (\"Concert\", \"Sports\", \"Theater\", …), for a caller who knows WHO they want tickets for before they know what's on the schedule. Browserless and fast — the same search page as search(), filtered to the hits StubHub's own URLs mark as a performer.\n\nCalls `bowmark.providers.stubhub.findPerformers`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<stubhubFindPerformersResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"anyOf":[{"type":"object","properties":{"query":{"type":"string"},"site":{"anyOf":[{"const":"stubhub"},{"const":"viagogo"}]}},"required":["query"],"additionalProperties":true},{"type":"string"}],"description":"TypeScript: `{ query: string; site?: \"stubhub\" | \"viagogo\" } | string`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/stubhub/findVenues":{"post":{"operationId":"findVenues","summary":"Finds a venue by name and returns its id, display name and StubHub's own page url for it, for a caller who knows WHERE before they know WHAT.","description":"Finds a venue by name and returns its id, display name and StubHub's own page url for it, for a caller who knows WHERE before they know WHAT. Browserless and fast — the same search page as search(), filtered to the hits StubHub itself tags as a venue.\n\nCalls `bowmark.providers.stubhub.findVenues`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<stubhubFindVenuesResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"anyOf":[{"type":"object","properties":{"query":{"type":"string"},"site":{"anyOf":[{"const":"stubhub"},{"const":"viagogo"}]}},"required":["query"],"additionalProperties":true},{"type":"string"}],"description":"TypeScript: `{ query: string; site?: \"stubhub\" | \"viagogo\" } | string`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/stubhub/findEventsToSell":{"post":{"operationId":"findEventsToSell","summary":"The seller side of the marketplace: searches StubHub's own event-finder for a performer, team or event name and returns the matches (id, title, StubHub's own `/SellTickets/FindEvent/<id>` url) a calle","description":"The seller side of the marketplace: searches StubHub's own event-finder for a performer, team or event name and returns the matches (id, title, StubHub's own `/SellTickets/FindEvent/<id>` url) a caller would pick from before listing tickets for sale. Reachable with no account — only submitting a listing needs a signed-in caller. Opens a browser to drive the search box, so expect 10-25s.\n\nCalls `bowmark.providers.stubhub.findEventsToSell`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<stubhubFindEventsToSellResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"anyOf":[{"type":"object","properties":{"query":{"type":"string"}},"required":["query"],"additionalProperties":true},{"type":"string"}],"description":"TypeScript: `{ query: string } | string`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/stubhub/getCheckoutHandoff":{"post":{"operationId":"getCheckoutHandoff","summary":"Given a listing id from getEventListings, resolves StubHub's own checkout URL for it (`/secure/buy/...`) — nothing is submitted or paid.","description":"Given a listing id from getEventListings, resolves StubHub's own checkout URL for it (`/secure/buy/...`) — nothing is submitted or paid. NEEDS THE CALLER SIGNED IN: StubHub only navigates to checkout for a logged-in visitor (logged out, the same Continue button just appends `?quantity=N`). Opens a browser to drive the listing's Continue button, so expect 10-25s.\n\nCalls `bowmark.providers.stubhub.getCheckoutHandoff`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<stubhubCheckoutHandoff>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"eventId":{"type":"string"},"listingId":{"type":"string"},"site":{"anyOf":[{"const":"stubhub"},{"const":"viagogo"}]}},"required":["eventId","listingId"],"additionalProperties":true,"description":"TypeScript: `{ eventId: string; listingId: string; site?: \"stubhub\" | \"viagogo\" }`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/stubhub/createListing":{"post":{"operationId":"createListing","summary":"Publishes a ticket listing for sale on one of the caller's own events, at a given price and quantity.","description":"Publishes a ticket listing for sale on one of the caller's own events, at a given price and quantity. Takes the `match` findEventsToSell returned (or its id/url). NEEDS THE CALLER SIGNED IN. The listing form's own fields are UNMEASURED — no signed-in session has ever reached this page — so this drives the form by its accessible labels and throws a clear error if the real layout differs. Opens a browser, so expect 10-25s.\n\nCalls `bowmark.providers.stubhub.createListing`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<stubhubListingResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"match":{"anyOf":[{"$ref":"#/components/schemas/stubhubSellMatch"},{"type":"string"}]},"price":{"type":"number"},"quantity":{"type":"number"}},"required":["match","price","quantity"],"additionalProperties":true,"description":"TypeScript: `{ match: stubhubSellMatch | string; price: number; quantity: number }`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/stubhub/listMyOrders":{"post":{"operationId":"listMyOrders","summary":"The signed-in caller's own order history — tickets bought and sold, each with its event, price and status.","description":"The signed-in caller's own order history — tickets bought and sold, each with its event, price and status. NEEDS THE CALLER SIGNED IN. The signed-in page's exact fields are UNMEASURED — no session has ever reached `/secure/myaccount/orders` in this container — so this reads the page's own index-data blob and throws a clear error if the shape differs from what it expects. Opens a browser, so expect 10-25s.\n\nCalls `bowmark.providers.stubhub.listMyOrders`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<stubhubOrdersResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/stubhub/listFavorites":{"post":{"operationId":"listFavorites","summary":"The signed-in caller's followed performers, teams and venues.","description":"The signed-in caller's followed performers, teams and venues. NEEDS THE CALLER SIGNED IN. The signed-in page's exact fields are UNMEASURED — no session has ever reached `/favorites` in this container — so this reads the page's own index-data blob and throws a clear error if the shape differs from what it expects. Opens a browser, so expect 10-25s.\n\nCalls `bowmark.providers.stubhub.listFavorites`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<stubhubFavoritesResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Your Bowmark API key."},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-Bowmark-Key"}},"responses":{"NotFound":{"description":"No such site or function.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}},"schemas":{"RunEnvelope":{"type":"object","description":"What a run returns. `status` says whether the SCRIPT succeeded. A script that threw or paused for a login is still HTTP 200. Branch on `status`, not on the HTTP code.","required":["ok","status","result","logs","error","ms"],"properties":{"runId":{"type":"string","description":"Stable id for this run. Quote it in a support or `report` message."},"ok":{"type":"boolean","description":"False only when the run produced nothing usable."},"status":{"type":"string","enum":["ok","error","partial","needs_user"],"description":"`partial`: the result is real but some calls failed (see `incomplete`); `ok` stays true. `needs_user`: a person must sign in to a site first. Relay `meta.handoff.url` to them, then run again."},"egress":{"type":"string","enum":["default","link"],"description":"The egress the run was given, present only when the request asked for one. `link`: every request went through the caller's own Chrome (Bowmark Buddy)."},"result":{"description":"Whatever the script `return`ed. Any JSON value."},"logs":{"type":"array","items":{"type":"string"},"description":"Lines the script wrote with `log(...)`."},"error":{"type":["string","null"],"description":"Why the run failed, in plain words. Null on success."},"ms":{"type":"integer","description":"How long the script itself ran, in milliseconds."},"queuedMs":{"type":"integer","description":"How long the run waited for a worker before starting. Present only when it was a second or more."},"needs":{"type":"array","description":"The sign-ins this script is waiting on. Present when `status` is `needs_user`.","items":{"type":"object","required":["capability","provider","providerTitle","kind"],"properties":{"capability":{"type":"string"},"provider":{"type":"string"},"providerTitle":{"type":"string","description":"The site's name, to show a person."},"kind":{"type":"string"}}}},"incomplete":{"type":"object","description":"Present only when `status` is `partial`: which calls did not answer.","properties":{"summary":{"type":"string"},"totalCalls":{"type":"integer"}},"additionalProperties":true},"emptyHanded":{"type":"object","description":"Present when the script returned nothing while its calls returned rows, usually a filter that matched none of the site's own labels. Lists the label values the calls actually returned.","additionalProperties":true},"notes":{"type":"array","description":"Caveats a call attached to a complete answer. Never changes `status`.","items":{"type":"object","properties":{"path":{"type":"string"},"notes":{"type":"array","items":{"type":"string"}}}}},"meta":{"type":"object","properties":{"handoff":{"type":"object","description":"A single-use sign-in link for a person to open. Expires at `expiresAt`.","properties":{"ref":{"type":"string"},"url":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time"}}},"concurrency":{"type":"object","description":"On a 429: how many runs are in flight and when to retry.","properties":{"limit":{"type":"integer"},"inFlight":{"type":"integer"},"retryAfterSeconds":{"type":"integer"}}}},"additionalProperties":true},"notice":{"type":"object","description":"Set when the account owner has not accepted the current Terms. Relay it to them.","additionalProperties":true}}},"stubhubSellMatch":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"group":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"}},"required":["id","title","group","url"],"additionalProperties":true}}}}