{"openapi":"3.1.0","info":{"title":"RudeRobotics Agent Commerce API","version":"1.0.0","description":"Search robots and parts, check part compatibility for a robot model, and file order requests — built for robots and AI agents buying their own parts. Order request only. RudeRobotics does not take payment through the API; a human confirms price, availability and payment terms with you before anything ships. Reads are public and rate limited; POST /orders needs an API key (Authorization: Bearer). The same tools are available over MCP at https://ruderobotics.com/mcp.","contact":{"name":"RudeRobotics (operated by AI3 Inc.)","url":"https://ruderobotics.com/developers","email":"legal@ai3.co"},"termsOfService":"https://ruderobotics.com/terms"},"servers":[{"url":"https://ruderobotics.com/api/v1"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key issued by RudeRobotics (rr_live_…)"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}}},"Price":{"type":"object","properties":{"amount":{"type":["number","null"]},"currency":{"type":["string","null"]},"usd":{"type":["number","null"],"description":"Approximate USD for sorting/filtering"},"note":{"type":["string","null"]}}},"Ref":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}}},"Spec":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}}},"Robot":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"maker":{"$ref":"#/components/schemas/Ref"},"category":{"type":"string","enum":["home-cleaning","lawn","humanoid","educational","drones","cobots","amr","service","quadrupeds","agriculture","security-defence","construction","underwater","medical","space"]},"industries":{"type":"array","items":{"type":"string","enum":["defence-security","agriculture","healthcare","logistics","manufacturing","construction","mining","energy","inspection","hospitality-retail","education-research","home-consumer","public-safety","underwater-marine","space"]}},"tagline":{"type":["string","null"]},"price":{"$ref":"#/components/schemas/Price"},"buyerType":{"type":"string","enum":["consumer","enterprise","both"]},"availability":{"type":["string","null"]},"url":{"type":"string","format":"uri"},"description":{"type":["string","null"]},"specs":{"type":"array","items":{"$ref":"#/components/schemas/Spec"}},"sourceUrls":{"type":"array","items":{"type":"string"}}}},"Part":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"maker":{"$ref":"#/components/schemas/Ref"},"type":{"type":"string","enum":["batteries","grippers","sensors","motors","wheels-tracks","controllers","chargers","propellers-thrusters","cleaning-consumables","mower-blades"]},"partNumber":{"type":["string","null"]},"description":{"type":["string","null"]},"price":{"$ref":"#/components/schemas/Price"},"availability":{"type":["string","null"]},"compatibleRobots":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"note":{"type":["string","null"]}}}},"otherCompatibleModels":{"type":"array","items":{"type":"string"},"description":"Models listed by the seller that are not in our robot catalogue"},"url":{"type":"string"},"buyUrl":{"type":["string","null"],"description":"Outbound retailer link for humans (affiliate tracked)"},"orderable":{"type":"boolean"},"specs":{"type":"array","items":{"$ref":"#/components/schemas/Spec"}},"sourceUrls":{"type":"array","items":{"type":"string"}}}},"OrderRequest":{"type":"object","required":["part","shipToCountry"],"properties":{"part":{"type":"string","description":"Part slug"},"quantity":{"type":"integer","minimum":1,"maximum":10000,"default":1},"robot":{"type":"string","description":"Robot slug the part is for (compatibility is checked and reported)"},"contactName":{"type":"string"},"contactEmail":{"type":"string","format":"email","description":"Defaults to the API key's contact email"},"company":{"type":"string"},"shipToCountry":{"type":"string"},"shipToPostcode":{"type":"string"},"maxUnitPriceUsd":{"type":"number"},"notes":{"type":"string","maxLength":2000},"agentId":{"type":"string","description":"Your agent/robot identifier"},"robotSerial":{"type":"string"}}},"Order":{"type":"object","properties":{"id":{"type":"string","example":"ord_123"},"status":{"type":"string","enum":["received"]},"type":{"type":"string","enum":["order_request"]},"createdAt":{"type":"string","format":"date-time"},"payment":{"type":"object","properties":{"taken":{"type":"boolean","const":false},"notice":{"type":"string"}}},"part":{"type":"object"},"quantity":{"type":"integer"},"contactEmail":{"type":"string","format":"email"},"indicativeUnitPrice":{"type":["object","null"]},"indicativeTotal":{"type":["object","null"]},"compatibility":{"type":["object","null"]},"warnings":{"type":"array","items":{"type":"string"}},"nextStep":{"type":"string"}}}}},"paths":{"/robots":{"get":{"operationId":"searchRobots","summary":"Search robots","parameters":[{"name":"q","in":"query","required":false,"description":"Free text (name, maker, description)","schema":{"type":"string"}},{"name":"category","in":"query","required":false,"description":"Robot type","schema":{"type":"string","enum":["home-cleaning","lawn","humanoid","educational","drones","cobots","amr","service","quadrupeds","agriculture","security-defence","construction","underwater","medical","space"]}},{"name":"industry","in":"query","required":false,"description":"Industry","schema":{"type":"string","enum":["defence-security","agriculture","healthcare","logistics","manufacturing","construction","mining","energy","inspection","hospitality-retail","education-research","home-consumer","public-safety","underwater-marine","space"]}},{"name":"maker","in":"query","required":false,"description":"Maker slug","schema":{"type":"string"}},{"name":"buyer","in":"query","required":false,"description":"consumer | enterprise","schema":{"type":"string","enum":["consumer","enterprise"]}},{"name":"maxPriceUsd","in":"query","required":false,"description":"Max indicative USD price","schema":{"type":"number"}},{"name":"limit","in":"query","required":false,"description":"1-100 (default 20)","schema":{"type":"integer"}}],"responses":{"200":{"description":"Robots","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer"},"robots":{"type":"array","items":{"$ref":"#/components/schemas/Robot"}}}}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/robots/{slug}":{"get":{"operationId":"getRobot","summary":"Robot details","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Robot","content":{"application/json":{"schema":{"type":"object","properties":{"robot":{"$ref":"#/components/schemas/Robot"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/parts":{"get":{"operationId":"searchParts","summary":"Search parts","parameters":[{"name":"q","in":"query","required":false,"description":"Free text (name, part number, maker, robot)","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Part type","schema":{"type":"string","enum":["batteries","grippers","sensors","motors","wheels-tracks","controllers","chargers","propellers-thrusters","cleaning-consumables","mower-blades"]}},{"name":"maker","in":"query","required":false,"description":"Part maker slug","schema":{"type":"string"}},{"name":"robot","in":"query","required":false,"description":"Only parts compatible with this robot slug","schema":{"type":"string"}},{"name":"maxPriceUsd","in":"query","required":false,"description":"Max indicative USD price","schema":{"type":"number"}},{"name":"limit","in":"query","required":false,"description":"1-100 (default 20)","schema":{"type":"integer"}}],"responses":{"200":{"description":"Parts","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/Part"}}}}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/parts/{slug}":{"get":{"operationId":"getPart","summary":"Part details incl. specs, sources and compatible robots","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Part","content":{"application/json":{"schema":{"type":"object","properties":{"part":{"$ref":"#/components/schemas/Part"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/compatibility":{"get":{"operationId":"checkCompatibility","summary":"Parts compatible with a robot model (optionally check one part)","parameters":[{"name":"robot","in":"query","required":true,"description":"Robot slug","schema":{"type":"string"}},{"name":"part","in":"query","required":false,"description":"Part slug to check","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Filter by part type","schema":{"type":"string","enum":["batteries","grippers","sensors","motors","wheels-tracks","controllers","chargers","propellers-thrusters","cleaning-consumables","mower-blades"]}}],"responses":{"200":{"description":"Compatibility","content":{"application/json":{"schema":{"type":"object","properties":{"robot":{"type":"object"},"count":{"type":"integer"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/Part"}},"compatible":{"type":"boolean"},"note":{"type":["string","null"]}}}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders":{"post":{"operationId":"requestOrder","summary":"Create an order request (no payment taken)","description":"Order request only. RudeRobotics does not take payment through the API; a human confirms price, availability and payment terms with you before anything ships.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRequest"}}}},"responses":{"201":{"description":"Order request recorded","content":{"application/json":{"schema":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/Order"}}}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}