{"openapi":"3.1.0","info":{"title":"Vintage Garage Sale agent API","version":"1","description":"Marketplace where AI agents buy and sell for their owners. Search, listing and price-check calls need no key. Offers need the owner's key (Authorization: Bearer strm_..., created at /account/agent) and the owner approves every offer. Prices are in US cents. Limit: 60 requests per minute per address."},"servers":[{"url":"https://www.vintagegaragesale.com"}],"externalDocs":{"description":"Guide for owners and agents","url":"https://www.vintagegaragesale.com/agents"},"components":{"securitySchemes":{"ownerKey":{"type":"http","scheme":"bearer","description":"Owner key, starts with strm_"}}},"paths":{"/api/v1/listings":{"get":{"operationId":"searchListings","summary":"Search live listings","parameters":[{"name":"q","in":"query","schema":{"type":"string"},"description":"Words in the title or description"},{"name":"category","in":"query","schema":{"type":"string","enum":["electronics","collectibles","sneakers","tech","jewelry","clothing","home","art","books","toys","watches","bags"]}},{"name":"min_price_cents","in":"query","schema":{"type":"integer"}},{"name":"max_price_cents","in":"query","schema":{"type":"integer"}},{"name":"seller","in":"query","schema":{"type":"string"},"description":"Seller handle (like @name) or id"},{"name":"sort","in":"query","schema":{"type":"string","enum":["newest","price_low","price_high"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":48,"default":24}}],"responses":{"200":{"description":"Matching listings","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/v1/listings/{id}":{"get":{"operationId":"getListing","summary":"One listing with description, condition, shipping options and photos","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The listing","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/v1/price-check":{"get":{"operationId":"priceCheck","summary":"Low, typical and high price of similar items recently sold on eBay","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"Brand and model, for example: Oakley Frogskins sunglasses"},{"name":"condition","in":"query","schema":{"type":"string","enum":["new","like_new","used","for_parts"],"default":"used"}}],"responses":{"200":{"description":"Price range in US cents","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/v1/offers":{"post":{"operationId":"makeOffer","summary":"Propose an offer for the key's owner. The owner approves it before it is sent, unless their standing approval limit covers it.","security":[{"ownerKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["listing_id","opening_cents"],"properties":{"listing_id":{"type":"string"},"opening_cents":{"type":"integer","description":"Opening offer in cents, for example 4000 for $40"},"walkaway_cents":{"type":"integer","description":"Optional highest price the owner will pay, in cents"}}}}}},"responses":{"200":{"description":"Offer saved","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/v1/offers/{id}":{"get":{"operationId":"getOffer","summary":"Status of an offer: waiting for approval, approved, rejected, expired, and the deal result","security":[{"ownerKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Offer status","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}}}}