{"openapi":"3.1.0","info":{"title":"Requstory API","version":"1.3.0","description":"The Requstory Index: find independent B2B suppliers in the UK and US by product, country, minimum order and payment terms, read their dated trade facts and send a quote request. No key needed (10 calls a minute). The same Index is an MCP server at https:\/\/requstory.com\/mcp. The paths tagged Lab are Requstory's free Lab tools (company maps, ease scores, AI readiness and the $1 report); account endpoints there need an API key from your Requstory profile (60 calls a minute).","contact":{"name":"Requstory","url":"https:\/\/requstory.com","email":"hello@requstory.com"},"termsOfService":"https:\/\/requstory.com\/terms\/"},"externalDocs":{"url":"https:\/\/requstory.com\/developers\/api\/"},"servers":[{"url":"https:\/\/requstory.com\/api\/public\/v1"}],"tags":[{"name":"Index","description":"The Requstory Index: B2B suppliers AI agents can search and ask for quotes."},{"name":"Lab: Companies"},{"name":"Lab: AI readiness"},{"name":"Lab: Maps"},{"name":"Lab: Account"},{"name":"Lab: Store","description":"The $1 AI readiness report, made and delivered by Requstory's AI agents."}],"paths":{"\/account":{"get":{"summary":"Get my account","description":"Plan, credits left, saved maps and maps left today.","tags":["Lab: Account"],"operationId":"getAccount","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"security":[{"apiKey":[]}]}},"\/suppliers":{"get":{"summary":"Search B2B suppliers","description":"The Requstory Index: independent B2B suppliers in the UK and US with dated trade facts (prices or quote on request, minimum order, payment terms, delivery, trade account). Verified suppliers confirmed their facts and come first. No key needed.","tags":["Index"],"operationId":"searchSuppliers","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"parameters":[{"name":"q","in":"query","schema":{"type":"string"},"description":"Product type or supplier name, e.g. compostable cups."},{"name":"country","in":"query","schema":{"type":"string","enum":["GB","UK","US"]},"description":"GB (or UK) or US."},{"name":"prices","in":"query","schema":{"type":"string","enum":["any","shown","quote"],"default":"any"},"description":"any, shown (prices on the website) or quote (quote on request or trade login)."},{"name":"maxMinimumOrder","in":"query","schema":{"type":"number","minimum":0},"description":"Most the minimum order may be, in the supplier's currency."},{"name":"payOnAccount","in":"query","schema":{"type":"boolean"},"description":"Only suppliers that state payment terms."},{"name":"verifiedOnly","in":"query","schema":{"type":"boolean"},"description":"Only owner-confirmed listings."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":25,"default":10},"description":"Up to 25."}],"security":[[],{"apiKey":[]}]}},"\/suppliers\/{supplier}":{"get":{"summary":"Get one supplier","description":"One supplier's dated trade facts, whether the owner verified the listing, its record with real buyer requests and recent prices. No key needed.","tags":["Index"],"operationId":"getSupplier","parameters":[{"name":"supplier","in":"path","required":true,"schema":{"type":"string"},"description":"The supplier's website domain, from searchSuppliers."}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}}}},"\/suppliers\/{supplier}\/quotes":{"post":{"summary":"Request a quote","description":"Send a buyer's quote request to one supplier. The buyer gets an email link first; once they click it, the supplier gets the request by email and replies to the buyer. Nothing is ordered or paid. Use the buyer's name and email only with their consent.","tags":["Index"],"operationId":"requestQuote","parameters":[{"name":"supplier","in":"path","required":true,"schema":{"type":"string"},"description":"The supplier's website domain, from searchSuppliers."}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["items","deliverTo","buyerName","buyerEmail"],"properties":{"items":{"type":"string","maxLength":2000},"quantity":{"type":"string","maxLength":120},"deliverTo":{"type":"string","maxLength":160},"buyerName":{"type":"string","maxLength":120},"buyerEmail":{"type":"string","format":"email"},"buyerCompany":{"type":"string","maxLength":160},"message":{"type":"string","maxLength":2000}}}}}},"responses":{"201":{"description":"Sent, or waiting for the supplier's address","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"security":[[],{"apiKey":[]}]}},"\/lab\/companies":{"get":{"summary":"Search companies","description":"Companies Requstory has mapped and scored from their public websites.","tags":["Lab: Companies"],"operationId":"searchCompanies","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"parameters":[{"name":"q","in":"query","schema":{"type":"string"},"description":"Part of a name or website."},{"name":"industry","in":"query","schema":{"type":"string"},"description":"Industry id, e.g. dental."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}}],"security":[[],{"apiKey":[]}]}},"\/lab\/companies\/{slug}":{"get":{"summary":"Get company ease score","description":"Score 0\u2013100 in four parts, ranking place and gaps (most costly first) with proof.","tags":["Lab: Companies"],"operationId":"getCompany","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"example":"posthog-com"}],"security":[[],{"apiKey":[]}]}},"\/lab\/companies\/{slug}\/owners":{"get":{"summary":"Get who owns what at a company","description":"Teams, processes and their owners. Owners the company published in its operating-model.requ are marked confirmedByCompany. Accepts a slug or a domain.","tags":["Lab: Companies"],"operationId":"getCompanyOwners","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"example":"requstory-com"}],"security":[[],{"apiKey":[]}]}},"\/lab\/ai-readiness":{"post":{"summary":"Start an AI-readiness check","description":"Reads up to 3 public pages. A fresh result (24 h) is returned without a new read. 3 new checks an hour.","tags":["Lab: AI readiness"],"operationId":"startReadiness","responses":{"202":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["website"],"properties":{"website":{"type":"string","example":"posthog.com"}}}}}},"security":[[],{"apiKey":[]}]}},"\/lab\/ai-readiness\/{domain}":{"get":{"summary":"Get an AI-readiness result","description":"status is queued, running, done or failed.","tags":["Lab: AI readiness"],"operationId":"getReadiness","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"example":"posthog.com"}],"security":[[],{"apiKey":[]}]}},"\/maps":{"post":{"summary":"Map a website","description":"Queues a free map (up to 6 pages). When finished it is saved to your account. 5 a day.","tags":["Lab: Maps"],"operationId":"mapWebsite","responses":{"202":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["website"],"properties":{"website":{"type":"string","example":"posthog.com"}}}}}},"security":[{"apiKey":[]}]},"get":{"summary":"List my maps","description":"Saved maps, newest first.","tags":["Lab: Maps"],"operationId":"listMaps","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"security":[{"apiKey":[]}]}},"\/maps\/jobs\/{jobId}":{"get":{"summary":"Get a map job","description":"Poll until status is complete (mapId set) or failed.","tags":["Lab: Maps"],"operationId":"getMapJob","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"From POST \/maps."}],"security":[{"apiKey":[]}]}},"\/maps\/{mapId}":{"get":{"summary":"Get a map","description":"Journey, teams, owners, processes, gaps and fix progress. full=true adds the whole JSON model.","tags":["Lab: Maps"],"operationId":"getMap","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"parameters":[{"name":"mapId","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Saved map id."},{"name":"full","in":"query","schema":{"type":"boolean","default":false}}],"security":[{"apiKey":[]}]}},"\/maps\/{mapId}\/ask":{"post":{"summary":"Ask about a map","description":"Free answers from the map's pages and entries with citations. ai=true gives a Requ AI answer and uses credits.","tags":["Lab: Maps"],"operationId":"askMap","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}},"parameters":[{"name":"mapId","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Saved map id."}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["question"],"properties":{"question":{"type":"string","maxLength":1000},"ai":{"type":"boolean","default":false}}}}}},"security":[{"apiKey":[]}]}},"\/lab\/report\/orders":{"post":{"summary":"Order a $1 AI readiness report","description":"Starts an order for a person and returns checkoutUrl, a Stripe page where they pay 1.00 USD. Never pay for them. The 9-page PDF is emailed about 2 minutes after payment; refunded automatically if the website can't be read. Up to 10 orders every 10 minutes.","tags":["Lab: Store"],"operationId":"orderReadinessReport","security":[[],{"apiKey":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["website","companyName","buyerName","email"],"properties":{"website":{"type":"string","example":"example.co.uk"},"companyName":{"type":"string","description":"Printed on every page."},"buyerName":{"type":"string"},"email":{"type":"string","format":"email","description":"Where the report is emailed."},"volume":{"type":"integer","minimum":1,"description":"Optional: orders, invoices or customer messages a month."}}}}}},"responses":{"201":{"description":"Order started","content":{"application\/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string"},"token":{"type":"string"},"status":{"type":"string"},"price":{"type":"string"},"checkoutUrl":{"type":"string","format":"uri"},"trackerUrl":{"type":"string","format":"uri"}}}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}}}},"\/lab\/report\/orders\/{token}":{"get":{"summary":"Get a report order","description":"Status (awaiting_payment, in_progress, delivered, exception, refunded, cancelled) and the buyer-safe timeline: every step and whether an agent, code or a person did it.","tags":["Lab: Store"],"operationId":"getReportOrder","security":[[],{"apiKey":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}}}},"\/lab\/report\/results":{"get":{"summary":"Store results","description":"Live results of the store run by AI agents: reports delivered, share with no person stepping in, median time to inbox, refunds, and the latest orders with their timelines (company hidden).","tags":["Lab: Store"],"operationId":"getStoreResults","security":[[],{"apiKey":[]}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#\/components\/responses\/Error"}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"API key starting rqs_. Create it in your Requstory profile under API keys."}},"responses":{"Error":{"description":"Error","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}