---
title: "Get Form Schema"
method: POST
path: "/api/pdt/schema"
tags: ["copilot_frontend", "pdt"]
---

# Get Form Schema

`POST /api/pdt/schema`

Obtiene el esquema completo del formulario PDT con valores autocompletados.

**🔒 Endpoint Protegido:** Requiere autenticación JWT y rol 'admin' o 'ui_mantenimiento'

Returns:
    Dict con estructura de campos, opciones y valores autocompletados

## Request body

- FormSchemaRequest — Request para obtener schema del formulario con autocompletado.
  - `seccion` string, nullable — Filtrar por sección (datos_tecnicos, datos_cita, datos_instalacion)
  - `slot_data` object, nullable — Datos del slot de calendario seleccionado
  - `cliente_data` object, nullable — Datos del cliente de HubSpot
  - `usuario_email` string, nullable — Email del usuario actual

## 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)
