---
updatedAt: 2025-07-22T09:06:45.000Z
agentTools:
  projectIndex: https://pt-developers.kommo.com/llms.txt
---

# Aceitando leads de entrada

Este método permite aceitar um lead de entrada.

**Limitações**\
O método está disponível de acordo com os direitos do usuário.

**Cabeçalho de tipo de dado quando a solicitação é bem-sucedida**\
Content-Type: application/hal+json

**Cabeçalho de tipo de dado em caso de erro**\
Content-Type: application/problem+json

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "referencias-de-api-da-kommo",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://{subdomain}.kommo.com",
      "variables": {
        "subdomain": {
          "default": "subdomain"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v4/leads/unsorted/{uid}/accept": {
      "post": {
        "summary": "Aceitando leads de entrada",
        "description": "Este método permite aceitar um lead de entrada.",
        "operationId": "aceitando-leads-de-entrada",
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "description": "uid do lead",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_id": {
                    "type": "integer",
                    "description": "O ID do usuário que será definido como criador do lead.",
                    "format": "int32"
                  },
                  "status_id": {
                    "type": "integer",
                    "description": "O ID da etapa onde o lead será localizado após a aceitação do lead de entrada.",
                    "format": "int32"
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "user_id": 8375357,
                    "status_id": 58141807
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Lead de entrada aceito com sucesso.": {
                    "value": "{\n    \"uid\": \"5af9dedb6f2c6a29eaac6ee37fc75ffbb66e139e4603bdd0e14e39d4b319\",\n    \"pipeline_id\": 6950551,\n    \"category\": \"forms\",\n    \"created_at\": 1686819152,\n    \"_embedded\": {\n        \"leads\": [\n            {\n                \"id\": 236768,\n                \"_links\": {\n                    \"self\": {\n                        \"href\": \"https://subdomain.kommo.com/api/v4/leads/236768\"\n                    }\n                }\n            }\n        ],\n        \"contacts\": [\n            {\n                \"id\": 583338,\n                \"is_deleted\": false,\n                \"is_unsorted\": false,\n                \"_links\": {\n                    \"self\": {\n                        \"href\": \"https://subdomain.kommo.com/api/v4/contacts/583338\"\n                    }\n                }\n            }\n        ],\n        \"companies\": []\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "uid": {
                      "type": "string",
                      "example": "5af9dedb6f2c6a29eaac6ee37fc75ffbb66e139e4603bdd0e14e39d4b319"
                    },
                    "pipeline_id": {
                      "type": "integer",
                      "example": 6950551,
                      "default": 0
                    },
                    "category": {
                      "type": "string",
                      "example": "forms"
                    },
                    "created_at": {
                      "type": "integer",
                      "example": 1686819152,
                      "default": 0
                    },
                    "_embedded": {
                      "type": "object",
                      "properties": {
                        "leads": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 236768,
                                "default": 0
                              },
                              "_links": {
                                "type": "object",
                                "properties": {
                                  "self": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://subdomain.kommo.com/api/v4/leads/236768"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "contacts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 583338,
                                "default": 0
                              },
                              "is_deleted": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "is_unsorted": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "_links": {
                                "type": "object",
                                "properties": {
                                  "self": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://subdomain.kommo.com/api/v4/contacts/583338"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "companies": {
                          "type": "array"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Solicitação invalida": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Usuário não autorizado": {
                    "value": "{\n  \"title\": \"Unauthorized\",\n  \"type\": \"https://httpstatus.es/401\",\n  \"status\": 401,\n  \"detail\": \"Nome de usuário ou senha inválidos\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "example": "Unauthorized"
                    },
                    "type": {
                      "type": "string",
                      "example": "https://httpstatus.es/401"
                    },
                    "status": {
                      "type": "integer",
                      "example": 401,
                      "default": 0
                    },
                    "detail": {
                      "type": "string",
                      "example": "Nome de usuário ou senha inválidos"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "O lead de entrada com este UID não foi encontrado.": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```