---
title: "Webhook Formulario Finalizacion"
method: POST
path: "/api/hubspot/webhook/formulario_finalizacion"
tags: ["hubspot", "hubspot"]
---

# Webhook Formulario Finalizacion

`POST /api/hubspot/webhook/formulario_finalizacion`

Webhook que recibe notificacion de HubSpot cuando se completa el formulario de finalizacion.

Flujo:
- Captura email del payload
- Obtiene propiedades de HubSpot rellenadas del formulario
- Identifica el tecnico asignado
- Genera token unico
- Almacena datos en BBDD
- Envia email al tecnico con URL + token

## Request body

- HubSpotWebhookCitaRequest — Payload para webhooks de citas desde HubSpot Valida el campo 'Correo' que debe ser un email válido.
  - `Correo` string, email, required — Email del contacto en HubSpot

## Response `200`

Successful Response

- FormularioConformidadWebhookResponse
  - `success` boolean, required
  - `message` string, required
  - `formulario_id` integer, required
  - `url_formulario` string, required
  - `email_enviado` boolean, required
  - `tecnico_email` string, required

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