{
  "openapi": "3.1.0",
  "info": {
    "title": "Wien Entrümpelung — öffentliche Aktionen der Website",
    "version": "1.0.0",
    "description": "Was Besucherinnen auf https://wien-entruempelung.at/ tun können, als API. Betrieben von mekyn; gleiche Prüfung wie die Formulare der Website."
  },
  "servers": [
    {
      "url": "https://mekyn.com"
    }
  ],
  "paths": {
    "/api/public/sites/8b56b9b7-2c48-4091-a79b-796af2e09051/clearance/services": {
      "get": {
        "operationId": "get_services",
        "summary": "Leistungen der Entrümpelung",
        "description": "The published clearance services with from-prices (ab), the same rows as the website. A from-price is not a fixed price. The ninth padded catalog name is omitted.",
        "responses": {
          "200": {
            "description": "Ergebnis"
          },
          "201": {
            "description": "Angelegt"
          },
          "400": {
            "description": "Angaben unvollständig"
          },
          "409": {
            "description": "Nicht mehr verfügbar"
          },
          "429": {
            "description": "Zu viele Anfragen"
          }
        }
      }
    },
    "/api/public/sites/8b56b9b7-2c48-4091-a79b-796af2e09051/clearance/estimate": {
      "post": {
        "operationId": "estimate_clearance",
        "summary": "Richtwert einer Entrümpelung",
        "description": "Indicative euro range for a clearance job from the confirmed method. Not a fixed price. The fixed price follows the free viewing. If volume or confirmation is missing, quoted is false and no amount is returned. Do not calculate the range yourself.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "offering": {
                    "type": "string",
                    "description": "Service name, for example Wohnung, Keller, Haushalt, Messie"
                  },
                  "volumeM3": {
                    "type": "number",
                    "description": "Estimated cubic metres. Preferred quantity."
                  },
                  "areaM2": {
                    "type": "number",
                    "description": "Floor area in square metres. Used only when a conversion factor is stored."
                  },
                  "rooms": {
                    "type": "number",
                    "description": "Room count. Used only when a conversion factor is stored."
                  },
                  "floor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 40,
                    "description": "Floor number. 0 is the ground floor."
                  },
                  "lift": {
                    "type": "boolean",
                    "description": "True when a lift is available."
                  },
                  "postalCode": {
                    "type": "string",
                    "description": "Vienna postal code, four digits, form 1dd0"
                  },
                  "specials": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "piano",
                        "hazardous",
                        "fridge"
                      ]
                    },
                    "description": "Special items"
                  },
                  "rush": {
                    "type": "boolean",
                    "description": "True when the date is urgent"
                  },
                  "halteverbot": {
                    "type": "boolean",
                    "description": "True when a no-parking zone is needed"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ergebnis"
          },
          "201": {
            "description": "Angelegt"
          },
          "400": {
            "description": "Angaben unvollständig"
          },
          "409": {
            "description": "Nicht mehr verfügbar"
          },
          "429": {
            "description": "Zu viele Anfragen"
          }
        }
      }
    },
    "/api/public/sites/8b56b9b7-2c48-4091-a79b-796af2e09051/clearance/answer": {
      "post": {
        "operationId": "answer_question",
        "summary": "Wissen zu Entrümpelung und Wien",
        "description": "Answers one question about clearance or Vienna from a sourced knowledge card or a published page. The reply includes the source URL and the retrieval date. If no card exists, the tool says so and does not guess.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "question": {
                    "type": "string",
                    "description": "One question about clearance, waste, parking or a Vienna district"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ergebnis"
          },
          "201": {
            "description": "Angelegt"
          },
          "400": {
            "description": "Angaben unvollständig"
          },
          "409": {
            "description": "Nicht mehr verfügbar"
          },
          "429": {
            "description": "Zu viele Anfragen"
          }
        }
      }
    },
    "/api/public/sites/8b56b9b7-2c48-4091-a79b-796af2e09051/clearance/viewing": {
      "post": {
        "operationId": "request_viewing",
        "summary": "Besichtigung anfragen",
        "description": "Sends a viewing request with a callback to the business. Requires the person’s own name, email and explicit consent. Phone is optional. Rate limited. A missing consent stores nothing. This does not promise a fixed price. Mit clientRequestId kann der Aufruf nach einer verlorenen Antwort gefahrlos wiederholt werden.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Vor- und Nachname der Kundin bzw. des Kunden"
                  },
                  "email": {
                    "type": "string",
                    "description": "E-Mail für die Bestätigung",
                    "format": "email"
                  },
                  "phone": {
                    "type": "string",
                    "description": "Telefonnummer (optional)"
                  },
                  "message": {
                    "type": "string",
                    "description": "What should be cleared, and any details already known"
                  },
                  "consent": {
                    "type": "boolean",
                    "description": "Explicit consent to be contacted about this viewing"
                  },
                  "calculation": {
                    "type": "object",
                    "description": "Optional estimate result to attach",
                    "additionalProperties": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ergebnis"
          },
          "201": {
            "description": "Angelegt"
          },
          "400": {
            "description": "Angaben unvollständig"
          },
          "409": {
            "description": "Nicht mehr verfügbar"
          },
          "429": {
            "description": "Zu viele Anfragen"
          }
        }
      }
    },
    "/api/assistant/8b56b9b7-2c48-4091-a79b-796af2e09051/lead": {
      "post": {
        "operationId": "request_callback",
        "summary": "Rückruf oder Nachricht",
        "description": "Schickt dem Betrieb eine Nachricht oder eine Rückrufbitte; sie landet im Posteingang des Betriebs, der Betrieb bekommt eine E-Mail und meldet sich. Kein Termin. Nur im Auftrag der Person, mit ihrer Telefonnummer und/oder E-Mail-Adresse. Für einen Rückruf die Telefonnummer und die passende Zeit in message angeben. Mit clientRequestId kann der Aufruf nach einer verlorenen Antwort gefahrlos wiederholt werden.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Vor- und Nachname (bis 120 Zeichen)",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "phone": {
                    "type": "string",
                    "description": "Telefonnummer für den Rückruf",
                    "minLength": 4,
                    "maxLength": 40
                  },
                  "email": {
                    "type": "string",
                    "description": "E-Mail-Adresse (optional; ohne E-Mail entsteht kein Kontakt im CRM, die Nachricht kommt trotzdem an)",
                    "format": "email",
                    "maxLength": 254
                  },
                  "message": {
                    "type": "string",
                    "description": "Anliegen in den Worten der Person, bei Rückruf mit passender Zeit (bis 4000 Zeichen)",
                    "minLength": 1,
                    "maxLength": 4000
                  },
                  "consent": {
                    "type": "boolean",
                    "const": true,
                    "description": "Ausdrückliche Einwilligung der Person, dass der Betrieb ihre Angaben für diese Anfrage verarbeitet und sie kontaktiert – nur true, wenn die Person zugestimmt hat. Ohne consent: true wird nichts gespeichert."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ergebnis"
          },
          "201": {
            "description": "Angelegt"
          },
          "400": {
            "description": "Angaben unvollständig"
          },
          "409": {
            "description": "Nicht mehr verfügbar"
          },
          "429": {
            "description": "Zu viele Anfragen"
          }
        }
      }
    }
  }
}
