---
title: "Generar Leex"
method: POST
path: "/api/ingenieria/generar-leex"
tags: ["copilot_frontend", "ingenieria"]
---

# Generar Leex

`POST /api/ingenieria/generar-leex`

Genera el documento LEEX (Libro del Edificio Existente) para un cliente.

Extrae datos de HubSpot, catastro y PDFs para generar el documento Word
y subirlo a OneDrive.

**Requiere rol:** admin o ui_ingenieria

## Request body

- GenerarLeexRequest — Request para generar documento LEEX.
  - `email` string, required — Email del cliente en HubSpot

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api.md) · [All operations](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hogarsolar/hogarsolar-backend-api/revisions/d9861e46bef8/schema)
