{
  "openapi": "3.1.0",
  "info": {
    "title": "Lentra agent API",
    "version": "1.0.0",
    "summary": "Configure Lentra convenience hubs, estimate rent, book calls and request proposals.",
    "description": "Public API for AI agents acting for property owners and operators. No sign-in. Identify your agent with the X-Agent-Name header. Endpoints that act in a person's name (book_call, request_proposal) need person_confirmed: true, which you may set only when that person explicitly asked; they are emailed either way. The same tools are available over MCP at https://lentrahub.com/mcp and as an A2A agent at https://lentrahub.com/a2a. Guide: https://lentrahub.com/.well-known/agent-skills/lentra-hub/SKILL.md",
    "contact": {
      "name": "Lentra",
      "url": "https://lentrahub.com/contact",
      "email": "info@lentrahub.com"
    }
  },
  "servers": [
    {
      "url": "https://lentrahub.com"
    }
  ],
  "externalDocs": {
    "description": "Agent guide (SKILL.md)",
    "url": "https://lentrahub.com/.well-known/agent-skills/lentra-hub/SKILL.md"
  },
  "paths": {
    "/api/agent/v1/status": {
      "get": {
        "operationId": "status",
        "summary": "What the agent API offers",
        "responses": {
          "200": {
            "description": "Endpoints and related URLs"
          }
        }
      }
    },
    "/api/agent/v1/catalog": {
      "get": {
        "operationId": "get_hub_catalog",
        "summary": "Lentra hub options",
        "description": "List every option Lentra's hub configurator offers: the two designs, two sizes, finishes, trims, add-on modules, contract terms, countries and the two operating models. Call this first if you do not know the options.",
        "responses": {
          "200": {
            "description": "Success. The body has ok: true and the result fields.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input; details lists each problem and the valid options.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": []
      }
    },
    "/api/agent/v1/about": {
      "get": {
        "operationId": "about_lentra",
        "summary": "About Lentra",
        "description": "What Lentra is and how its convenience hubs work (rentals, a 24/7 in-building shop, the resident app, the two operating models, who it serves). Returns Lentra's own llms.txt.",
        "responses": {
          "200": {
            "description": "Success. The body has ok: true and the result fields.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input; details lists each problem and the valid options.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": []
      }
    },
    "/api/agent/v1/suggest": {
      "post": {
        "operationId": "suggest_hub_configuration",
        "summary": "Suggest a hub for a building",
        "description": "Suggest a Lentra hub configuration for a building, with the reasons, a rent indication (if the country is given) and a configurator link the person can open. Nothing is saved or sent. Use configure_hub to save a configuration for the Lentra team.",
        "responses": {
          "200": {
            "description": "Success. The body has ok: true and the result fields.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input; details lists each problem and the valid options.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "units": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Homes, rooms, beds or desks in the building."
                  },
                  "building_type": {
                    "type": "string",
                    "enum": [
                      "residential",
                      "build_to_rent",
                      "student",
                      "coliving",
                      "office",
                      "hotel",
                      "serviced_apartments",
                      "senior_living",
                      "gym",
                      "other"
                    ]
                  },
                  "country": {
                    "type": "string",
                    "enum": [
                      "AT",
                      "DE",
                      "CH",
                      "NL",
                      "BE",
                      "FR",
                      "IE",
                      "DK",
                      "SE",
                      "IT",
                      "ES",
                      "PL",
                      "CZ"
                    ],
                    "description": "Country of the building (ISO code). Needed for the rent indication."
                  },
                  "can_build_into_wall": {
                    "type": "boolean",
                    "description": "true if the lobby wall can take a recess and glazing (new build or fit-out stage); false if not (finished lobby, listed or leased space)."
                  },
                  "style": {
                    "type": "string",
                    "enum": [
                      "warm",
                      "classic",
                      "luxury",
                      "modern",
                      "minimal",
                      "scandinavian",
                      "industrial",
                      "neutral",
                      "bright",
                      "dark"
                    ],
                    "description": "The lobby's look."
                  },
                  "pets": {
                    "type": "boolean",
                    "description": "Pet-friendly building."
                  },
                  "families": {
                    "type": "boolean",
                    "description": "Many families with young children."
                  },
                  "priority": {
                    "type": "string",
                    "enum": [
                      "income",
                      "flexibility"
                    ],
                    "description": "income favours the two-year term (+20% rent); flexibility the one-year term."
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "de",
                      "es",
                      "it"
                    ],
                    "description": "Language for the configurator link. Default en."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/agent/v1/configurations": {
      "post": {
        "operationId": "configure_hub",
        "summary": "Configure a hub",
        "description": "Configure a Lentra hub with the person's choices. Returns a plain-language summary, the Fixed Rent indication (needs country) and a link that opens lentrahub.com/configure with exactly this hub selected, to give to the person. The configuration is saved and the Lentra team is notified, as for the website configurator. Before calling, ask who the hub is for: the person's first and last name and email (and company). If they agree to share them with Lentra so the team can follow up, pass full_name, email and share_contact_confirmed: true; if they prefer not to, configure without them. Never guess or invent contact details. Returns configuration_id: pass it to request_proposal or book_call to attach it. Omitted choices take the configurator's defaults.",
        "responses": {
          "201": {
            "description": "Success. The body has ok: true and the result fields.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input; details lists each problem and the valid options.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "design": {
                    "type": "string",
                    "enum": [
                      "enclosed",
                      "open"
                    ],
                    "description": "enclosed: built into a wall recess behind glass, the flagship. open: free-standing against any flat wall, no building work. Same price."
                  },
                  "size": {
                    "type": "string",
                    "enum": [
                      "s",
                      "m"
                    ],
                    "description": "s = Medium, 3 m, 12 compartments, best for 60–100 units. m = Large, 5 m, 20 compartments, best for 150+ units."
                  },
                  "finish": {
                    "type": "string",
                    "enum": [
                      "oak",
                      "walnut",
                      "white",
                      "stone",
                      "charcoal"
                    ],
                    "description": "Hub finish: oak = Warm oak veneer, walnut = Walnut, white = Matte white, stone = Stone grey, charcoal = Deep charcoal."
                  },
                  "trim": {
                    "type": "string",
                    "enum": [
                      "champagne",
                      "brass",
                      "chrome",
                      "black",
                      "acrylic"
                    ],
                    "description": "Accent and trim, including the lit brand band: champagne = Champagne, brass = Brass, chrome = Chrome, black = Black anodized, acrylic = Backlit acrylic."
                  },
                  "modules": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "fridge",
                        "freezer",
                        "tech",
                        "wellness",
                        "pet",
                        "baby"
                      ]
                    },
                    "description": "Add-on modules beside the core hub, any combination: fridge = Beverage fridge (Chilled drinks, on demand), freezer = Ice-cream freezer (Frozen treats around the clock), tech = Electronics (Chargers, cables and accessories), wellness = Premium wellness (Recovery and self-care items), pet = Pet section (Treats, toys and pet essentials), baby = Baby section (Wipes, diapers and necessities)."
                  },
                  "term": {
                    "type": "string",
                    "enum": [
                      "y1",
                      "y2"
                    ],
                    "description": "y1 = One year, then rolling. y2 = Two years, then rolling (pays 20% more rent for the whole time installed)."
                  },
                  "country": {
                    "type": "string",
                    "enum": [
                      "AT",
                      "DE",
                      "CH",
                      "NL",
                      "BE",
                      "FR",
                      "IE",
                      "DK",
                      "SE",
                      "IT",
                      "ES",
                      "PL",
                      "CZ"
                    ],
                    "description": "Country of the building (ISO code). Needed for the rent indication."
                  },
                  "full_name": {
                    "type": "string",
                    "description": "First and last name of the person the hub is for, exactly as they gave it."
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "That person's email address, as they gave it."
                  },
                  "phone": {
                    "type": "string",
                    "description": "Their phone number, only if they gave it."
                  },
                  "share_contact_confirmed": {
                    "type": "boolean",
                    "description": "true only if the person agreed to share their name and email with Lentra for this configuration. Required whenever full_name or email is passed."
                  },
                  "company": {
                    "type": "string",
                    "description": "Company or property name, if the person gave it."
                  },
                  "note": {
                    "type": "string",
                    "description": "Anything the Lentra team should know about the building or the request."
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "de",
                      "es",
                      "it"
                    ],
                    "description": "Language for the configurator link. Default en."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/agent/v1/rent-estimate": {
      "get": {
        "operationId": "estimate_rent",
        "summary": "Estimate Fixed Rent",
        "description": "Estimate the monthly rent Lentra would pay the building under the Fixed Rent model for a configuration. An indication, not a quote. Nothing is saved.",
        "responses": {
          "200": {
            "description": "Success. The body has ok: true and the result fields.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input; details lists each problem and the valid options.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "size",
            "in": "query",
            "required": true,
            "description": "s = Medium, 3 m, 12 compartments, best for 60–100 units. m = Large, 5 m, 20 compartments, best for 150+ units.",
            "schema": {
              "type": "string",
              "enum": [
                "s",
                "m"
              ]
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": true,
            "description": "Country of the building (ISO code). Needed for the rent indication.",
            "schema": {
              "type": "string",
              "enum": [
                "AT",
                "DE",
                "CH",
                "NL",
                "BE",
                "FR",
                "IE",
                "DK",
                "SE",
                "IT",
                "ES",
                "PL",
                "CZ"
              ]
            }
          },
          {
            "name": "modules",
            "in": "query",
            "required": false,
            "description": "Add-on modules beside the core hub, any combination: fridge = Beverage fridge (Chilled drinks, on demand), freezer = Ice-cream freezer (Frozen treats around the clock), tech = Electronics (Chargers, cables and accessories), wellness = Premium wellness (Recovery and self-care items), pet = Pet section (Treats, toys and pet essentials), baby = Baby section (Wipes, diapers and necessities).",
            "style": "form",
            "explode": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "fridge",
                  "freezer",
                  "tech",
                  "wellness",
                  "pet",
                  "baby"
                ]
              }
            }
          },
          {
            "name": "term",
            "in": "query",
            "required": false,
            "description": "y1 = One year, then rolling. y2 = Two years, then rolling (pays 20% more rent for the whole time installed).",
            "schema": {
              "type": "string",
              "enum": [
                "y1",
                "y2"
              ]
            }
          }
        ]
      }
    },
    "/api/agent/v1/call-slots": {
      "get": {
        "operationId": "find_call_slots",
        "summary": "Find call times",
        "description": "Find free times for a 30-minute call with Lentra on cal.com. purpose intro (default) is for property owners and operators; investor is for investors.",
        "responses": {
          "200": {
            "description": "Success. The body has ok: true and the result fields.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input; details lists each problem and the valid options.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Start of the range, YYYY-MM-DD or ISO time. Default now.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "End of the range. Default 7 days after from; at most 21 days.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "time_zone",
            "in": "query",
            "required": false,
            "description": "IANA time zone for the returned times, e.g. Europe/Madrid.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "purpose",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "intro",
                "investor"
              ]
            }
          }
        ]
      }
    },
    "/api/agent/v1/bookings": {
      "post": {
        "operationId": "book_call",
        "summary": "Book a call",
        "description": "Book a 30-minute call with Lentra on cal.com in the person's name, at a time from find_call_slots. Only with the person's explicit go-ahead and their own name and email; cal.com emails them the invitation. An intro call (the default) also needs company, building_type and units; preferred_model is optional. An investor call (purpose investor) needs company (fund, family office or company), investor_type, stage, cheque_size and interest; ask the person, never guess. Attach configuration_id to send the hub along.",
        "responses": {
          "201": {
            "description": "Success. The body has ok: true and the result fields.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input; details lists each problem and the valid options.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string",
                    "description": "A time exactly as returned by find_call_slots."
                  },
                  "time_zone": {
                    "type": "string",
                    "description": "The person's IANA time zone, e.g. Europe/Madrid."
                  },
                  "full_name": {
                    "type": "string",
                    "description": "The person's full name, as they gave it."
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "The person's email address, as they gave it. They will be emailed."
                  },
                  "person_confirmed": {
                    "type": "boolean",
                    "description": "true only if the person explicitly asked you to do this in their name, with these details. Never infer it."
                  },
                  "company": {
                    "type": "string",
                    "description": "Company or property. Required for an intro call."
                  },
                  "building_type": {
                    "type": "string",
                    "enum": [
                      "residential",
                      "build_to_rent",
                      "student",
                      "coliving",
                      "office",
                      "hotel",
                      "serviced_apartments",
                      "senior_living",
                      "gym",
                      "other"
                    ],
                    "description": "Required for an intro call."
                  },
                  "units": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Homes, rooms, beds or desks in the building. Required for an intro call."
                  },
                  "preferred_model": {
                    "type": "string",
                    "enum": [
                      "fixed_rent",
                      "self_owned",
                      "not_sure"
                    ],
                    "description": "Operating model the person prefers; not_sure if they haven't said."
                  },
                  "investor_type": {
                    "type": "string",
                    "enum": [
                      "vc_fund",
                      "angel",
                      "family_office",
                      "strategic",
                      "property_owner"
                    ],
                    "description": "Investor call: what kind of investor."
                  },
                  "stage": {
                    "type": "string",
                    "enum": [
                      "pre_seed",
                      "seed",
                      "series_a",
                      "series_b_plus",
                      "stage_agnostic",
                      "not_applicable"
                    ],
                    "description": "Investor call: stage they typically lead or follow at."
                  },
                  "cheque_size": {
                    "type": "string",
                    "enum": [
                      "under_250k",
                      "250k_1m",
                      "1m_5m",
                      "5m_15m",
                      "over_15m",
                      "prefer_not_to_say"
                    ],
                    "description": "Investor call: typical cheque size (EUR)."
                  },
                  "interest": {
                    "type": "string",
                    "enum": [
                      "software",
                      "operating_model",
                      "market",
                      "portfolio_or_building",
                      "exploring"
                    ],
                    "description": "Investor call: what draws them to Lentra."
                  },
                  "notes": {
                    "type": "string",
                    "description": "What the person wants to discuss."
                  },
                  "configuration_id": {
                    "type": "string",
                    "description": "From configure_hub, to attach the configuration."
                  },
                  "purpose": {
                    "type": "string",
                    "enum": [
                      "intro",
                      "investor"
                    ]
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "de",
                      "es",
                      "it"
                    ]
                  }
                },
                "required": [
                  "start",
                  "time_zone",
                  "full_name",
                  "email",
                  "person_confirmed"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/agent/v1/proposals": {
      "post": {
        "operationId": "request_proposal",
        "summary": "Request a proposal",
        "description": "Send Lentra a proposal request in the person's name, as the contact form on lentrahub.com/contact does: Lentra replies within two business days with a measured layout, a product mix and both operating models. Only with the person's explicit go-ahead and their own details; they receive a confirmation email. Attach configuration_id to include the configured hub.",
        "responses": {
          "201": {
            "description": "Success. The body has ok: true and the result fields.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input; details lists each problem and the valid options.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "full_name": {
                    "type": "string",
                    "description": "The person's full name, as they gave it."
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "The person's email address, as they gave it. They will be emailed."
                  },
                  "person_confirmed": {
                    "type": "boolean",
                    "description": "true only if the person explicitly asked you to do this in their name, with these details. Never infer it."
                  },
                  "company": {
                    "type": "string",
                    "description": "Company or property name."
                  },
                  "units": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Homes, rooms, beds or desks in the building."
                  },
                  "preferred_model": {
                    "type": "string",
                    "enum": [
                      "fixed_rent",
                      "self_owned",
                      "not_sure"
                    ]
                  },
                  "phone": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string",
                    "description": "Building notes: location, lobby, timing, questions."
                  },
                  "configuration_id": {
                    "type": "string",
                    "description": "From configure_hub."
                  }
                },
                "required": [
                  "full_name",
                  "email",
                  "company",
                  "units",
                  "preferred_model",
                  "person_confirmed"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "ok": {
            "const": false
          },
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "details": {}
        },
        "required": [
          "ok",
          "error",
          "message"
        ]
      }
    }
  }
}
