---
title: "Vincular leads entrantes"
method: POST
path: "/api/v4/leads/unsorted/{uid}/link"
---

# Vincular leads entrantes

`POST /api/v4/leads/unsorted/{uid}/link`

Este método permite vincular un lead entrante a un lead existente.

## Path parameters

- `uid` string, required

## Request body

- object
  - `link` object
    - `entity_id` integer — ID de la entidad a la que se vinculará el lead entrante
    - `entity_type` string — Tipo de entidad. Opciones disponibles: leads
    - `metadata` object — Metadatos de acción
      - `contact_id` integer — ID del contacto al que se vinculará el contacto del no analizado
  - `user_id` integer — ID del usuario en cuyo nombre se realizará la vinculación

## Response `200`

200

- object
  - `uid` string
  - `_embedded` object
    - `leads` object[]
      - `id` integer
      - `_links` object
        - `self` object
          - `href` string
    - `contacts` unknown[]
      - unknown

## Other responses

- `400` — 400
- `401` — 401

---

[API](https://skmtc.dev/kommo/apis/kommo-api.md) · [All operations](https://skmtc.dev/kommo/apis/kommo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kommo/kommo-api/revisions/e291c0b2038d/schema)
