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

# Aceptar leads entrantes

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

Este método permite aceptar un lead entrante.

## Path parameters

- `uid` string, required

## Request body

- object
  - `user_id` integer — El ID del usuario que se establecerá como creador del lead
  - `status_id` integer — El ID de la etapa donde se ubicará el lead después de aceptar el lead entrante

## Response `200`

200

- object
  - `uid` string
  - `pipeline_id` integer
  - `category` string
  - `created_at` integer
  - `_embedded` object
    - `leads` object[]
      - `id` integer
      - `_links` object
        - `self` object
          - `href` string
    - `contacts` object[]
      - `id` integer
      - `is_deleted` boolean
      - `is_unsorted` boolean
      - `_links` object
        - `self` object
          - `href` string
    - `companies` unknown[]
      - unknown

## Other responses

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

---

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