{
  "openapi": "3.1.0",
  "info": {
    "title": "RealRobotOwners — Home Robot Owner Reviews API",
    "version": "1.0.2",
    "description": "Check high-level RealRobotOwners summaries (what AI says vs. what real owners report: what works, what breaks, owner ratings) for home robots and submit your own owner review with an optional photo. Individual reviews are read on realrobotowners.com."
  },
  "servers": [
    {
      "url": "https://realrobotowners.com"
    }
  ],
  "paths": {
    "/api/robots": {
      "get": {
        "operationId": "searchRobots",
        "summary": "Find home robot models, brands, and page links on realrobotowners.com",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Search keyword (e.g. litter-robot, pura max, automower, neakasa)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "Optional category slug",
            "schema": {
              "type": "string",
              "enum": [
                "self-cleaning-litter-boxes",
                "robot-mowers",
                "yard-robots",
                "pool-cleaners",
                "floor-robots",
                "window-robots",
                "robot-pets",
                "companion-robots",
                "home-helpers",
                "kitchen-robots"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching company and robot slugs with links to realrobotowners.com",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/robots/{slug}": {
      "get": {
        "operationId": "getRobotSummary",
        "summary": "Get a home robot summary: overall owner stats and AI vs. Real Owners comparison (no individual review text)",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Robot model slug (e.g. litter-robot-4, pura-max, neakasa-m1)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Robot owner summary stats, AI vs. Real Owners summary, and link to read full reviews on realrobotowners.com",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Robot model not found"
          }
        }
      }
    },
    "/api/reviews/submit": {
      "post": {
        "operationId": "submitOwnerReview",
        "summary": "Send one owner-approved review per model for human moderation",
        "description": "Show the owner the draft and get explicit permission to send it and their private email. Include a selected photo only with permission. Public display of the photo is a separate choice.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "company",
                  "robot",
                  "email",
                  "rating",
                  "owned",
                  "would_buy_again",
                  "review"
                ],
                "properties": {
                  "company": {
                    "type": "string",
                    "description": "Company slug (e.g. whisker, petkit, neakasa, catlink, husqvarna, roborock)"
                  },
                  "robot": {
                    "type": "string",
                    "description": "Robot model slug (e.g. litter-robot-4, pura-max, neakasa-m1). Strictly 1 review per model."
                  },
                  "email": {
                    "type": "string",
                    "description": "Owner email (kept private; used only to enforce 1 review per model)"
                  },
                  "rating": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 5,
                    "description": "Owner star rating from 1 to 5"
                  },
                  "owned": {
                    "type": "string",
                    "enum": [
                      "Under 1 month",
                      "1 to 3 months",
                      "3 to 6 months",
                      "6 to 12 months",
                      "1 to 2 years",
                      "Over 2 years"
                    ],
                    "description": "How long the owner has had the robot"
                  },
                  "would_buy_again": {
                    "type": "string",
                    "enum": [
                      "Yes",
                      "Maybe",
                      "No"
                    ],
                    "description": "Whether the owner would buy it again"
                  },
                  "still_using": {
                    "type": "string",
                    "enum": [
                      "works",
                      "problems",
                      "stopped",
                      "returned"
                    ],
                    "description": "Optional current status"
                  },
                  "title": {
                    "type": "string",
                    "description": "Optional short headline (max 120 chars)"
                  },
                  "review": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 2900,
                    "description": "The owner’s own experience, including what broke, any repair, and its outcome if reported."
                  },
                  "photo_url": {
                    "type": "string",
                    "description": "Optional HTTPS image link for one owner-selected photo of the robot, fault, or repair. JPEG, PNG, or WebP up to 1.8 MB."
                  },
                  "photo_base64": {
                    "type": "string",
                    "description": "Optional base64-encoded (or data:image/...;base64,...) JPEG, PNG, or WebP photo of the robot (max 1.8 MB)"
                  },
                  "photo_type": {
                    "type": "string",
                    "enum": [
                      "image/jpeg",
                      "image/png",
                      "image/webp"
                    ],
                    "description": "Optional MIME type for raw photo_base64"
                  },
                  "show_photo": {
                    "type": "boolean",
                    "description": "True to allow displaying the photo publicly; false (default) keeps it private for human verification only"
                  },
                  "source_agent": {
                    "type": "string",
                    "description": "Optional AI assistant name (e.g. ChatGPT, Claude, Gemini)"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Review accepted and queued as pending moderation"
          },
          "400": {
            "description": "Validation error"
          },
          "409": {
            "description": "Duplicate review for this model"
          },
          "429": {
            "description": "Daily submission rate limit reached"
          }
        }
      }
    },
    "/api/repair-shops": {
      "get": {
        "operationId": "searchRepairShops",
        "summary": "Search US home-robot repair shops using the canonical RealRobotOwners repair taxonomy",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Robot repair category",
            "schema": {
              "type": "string",
              "enum": [
                "robot-mowers",
                "snow-robots",
                "pool-cleaners",
                "robot-vacuums"
              ]
            }
          },
          {
            "name": "state",
            "in": "query",
            "description": "US state 2-letter code or name (e.g. CA, TX, New Hampshire)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "description": "Optional city name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "capability",
            "in": "query",
            "description": "Canonical repair capability slug from /repair/taxonomy/",
            "schema": {
              "type": "string",
              "enum": [
                "robot-mower-diagnostics-repair",
                "boundary-wire-repair",
                "robot-mower-installation",
                "site-assessment-mapping",
                "winter-storage-winterization",
                "routine-maintenance-plans",
                "warranty-service",
                "managed-robot-mowing",
                "snow-robot-repair",
                "pool-cleaner-repair",
                "robot-vacuum-repair"
              ]
            }
          },
          {
            "name": "method",
            "in": "query",
            "description": "Canonical service delivery method slug from /repair/taxonomy/",
            "schema": {
              "type": "string",
              "enum": [
                "pickup-delivery",
                "services-bought-elsewhere",
                "loaner-units",
                "buried-boundary-wire",
                "rtk-gps-mapping",
                "mail-in-shipping-kit"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Optional keyword (shop name, brand, or city)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "verified_only",
            "in": "query",
            "description": "Set true to return only website-verified repair shops",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching repair shops with canonical taxonomy slugs and @graph IDs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/repair-taxonomy.json": {
      "get": {
        "operationId": "getRepairTaxonomy",
        "summary": "Get the canonical RealRobotOwners home-robot repair taxonomy as a Schema.org DefinedTermSet JSON-LD @graph",
        "responses": {
          "200": {
            "description": "DefinedTermSet @graph JSON-LD",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}