---
title: "Search Contact"
method: POST
path: "/api/hubspot/contacts/search"
tags: ["hubspot", "hubspot"]
---

# Search Contact

`POST /api/hubspot/contacts/search`

Busca un **contacto** por email (y opcionalmente código postal).
Devuelve el `contact_id` si existe.

**🔒 Endpoint Protegido:** Requiere autenticación JWT y rol 'ui_hubspot', 'admin' o 'ui_citas'

## Request body

- SearchContactRequest — Modelo para buscar un contacto en HubSpot por email
  - `email` string, email, required
  - `codigo_postal` string, nullable

## Response `200`

Successful Response

- ContactIdResponse — Respuesta con el ID de un contacto
  - `contact_id` 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)
