---
title: "Search Budgets"
method: GET
path: "/api/budget/search"
tags: ["copilot_frontend", "copilot_budget"]
---

# Search Budgets

`GET /api/budget/search`

Buscador del tablero: nombre, email o teléfono (match parcial ILIKE;
sin normalización de acentos, igual que la búsqueda cliente que sustituye).

- **ui_comercial**: solo sus presupuestos
- **admin**: todos

Busca en BD directamente — encuentra presupuestos aunque no estén
cargados en el tablero (p.ej. archivados por antigüedad).

## Query parameters

- `q` string, required
- `limit` integer

## Response `200`

Successful Response

- BudgetSearchItem[]
  - `presupuesto_id` integer, required
  - `comercial_id` integer, nullable
  - `cliente_nombre` string, nullable
  - `cliente_apellidos` string, nullable
  - `cliente_email` string, nullable
  - `cliente_telefono` string, nullable
  - `cliente_direccion` string, nullable
  - `cliente_localidad` string, nullable
  - `cliente_provincia` string, nullable
  - `estado_id` integer, nullable
  - `estado_nombre` string, nullable
  - `tipo_estado_id` integer, nullable
  - `fecha_seguimiento` string, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `datos_presupuesto_firmado_id` integer, nullable
  - `datos_presupuesto_firmado` object, nullable
  - `financial_datos_presupuesto_id` integer, nullable

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