---
title: "Aceitando leads de entrada"
method: POST
path: "/api/v4/leads/unsorted/{uid}/accept"
---

# Aceitando leads de entrada

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

## Request

- Base URL: `https://subdomain.kommo.com`
- URL: `https://subdomain.kommo.com/api/v4/leads/unsorted/{uid}/accept`
- Auth: OAuth 2

Este método permite aceitar um lead de entrada.

## Path parameters

- `uid` string, required

## Request body

- object
  - `user_id` integer: O ID do usuário que será definido como criador do lead.
  - `status_id` integer: O ID da etapa onde o lead será localizado após a aceitação do lead de entrada.

## 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/referencias-de-api-da-kommo.md) - [All operations](https://skmtc.dev/kommo/apis/referencias-de-api-da-kommo/llms.txt) - [OpenAPI document](https://skmtc.dev/kommo/apis/referencias-de-api-da-kommo/revisions/55101699dddb?raw)
