---
title: "Obtener Recomendaciones Rutas Endpoint"
method: POST
path: "/api/copilot/recomendaciones-rutas"
tags: ["copilot_frontend", "copilot"]
---

# Obtener Recomendaciones Rutas Endpoint

`POST /api/copilot/recomendaciones-rutas`

Genera recomendaciones de rutas optimizadas para un código postal del cliente.

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

Returns:
    Top 3 recomendaciones ordenadas por score (mostrar como citas sugeridas azules)

## Request body

- RecomendacionesRutasRequest
  - `cp_cliente` string, required
  - `dias_busqueda` integer
  - `fecha_inicio` string, nullable
  - `comerciales` string[], nullable
  - `slots_precalculados` object, nullable

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