---
updatedAt: 2026-06-29T14:14:43.000Z
agentTools:
  projectIndex: https://developers.kommo.com/llms.txt
---

# Get incoming lead by UID

This method allows getting a particular incoming lead data by its UID

**Limitations**\
The method is available in accordance with the user’s rights.

**Authorization type**\
OAuth 2.0 with Access Token/ Long-lived token

**Data type header when the request is successful**\
Content-Type: application/hal+json

**Data type header in case of an error**\
Content-Type: application/problem+json

### An example of the request

In the following example, we will get a single incoming lead list.

```json
https://devteam.kommo.com/api/v4/leads/unsorted/5af9dedb6f2c6a29eaac6ee37fc75ffbb66e139e4603bdd0e14e39d4b319
```

### Response parameterss

| Parameter              | Data type | Description                                                                                             |
| :--------------------- | :-------- | :------------------------------------------------------------------------------------------------------ |
| uid                    | string    | Incoming lead UID                                                                                       |
| source\_uid            | string    | Incoming lead source UID. Generated by the integration                                                  |
| source\_name           | string    | Incoming lead source name                                                                               |
| category               | string    | Incoming lead category: sip, mail, chats, forms                                                         |
| pipeline\_id           | int       | ID of the pipeline in which the incoming lead is located                                                |
| created\_at            | int       | The time and date the incoming lead was created in the format of Unix Timestamp                         |
| metadata               | object    | Incoming lead [metadata](https://kommo.readme.io/reference/metadata). Each type has its own parameters. |
| account\_id            | int       | Account ID in which the incoming lead is located                                                        |
| \_embedded             | object    | Embedded entities data                                                                                  |
| \_embedded\[contacts]  | array     | Data related to the contact of the incoming lead. Always consists of **one** object                     |
| \_embedded\[0]         | object    | Contact model                                                                                           |
| \_embedded\[0]\[id]    | int       | Contact ID                                                                                              |
| \_embedded\[companies] | array     | Data related to the company of the incoming lead. Always consists of **one** object                     |
| \_embedded\[0]         | object    | Company model                                                                                           |
| \_embedded\[0]\[id]    | int       | Company ID                                                                                              |
| \_embedded\[leads]     | array     | Data related to the lead to which the incoming lead is connected . Always consists of **one** object    |
| \_embedded\[0]         | object    | Lead model                                                                                              |
| \_embedded\[0]\[id]    | int       | Lead ID                                                                                                 |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kommo-api-references",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{subdomain}.kommo.com",
      "variables": {
        "subdomain": {
          "default": "subdomain"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v4/leads/unsorted/{uid}": {
      "get": {
        "summary": "Get incoming lead by UID",
        "description": "This method allows getting a particular incoming lead data by its UID",
        "operationId": "incoming-lead-uid",
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "description": "Incoming lead UID",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "uid": "9ca097816a45770002e406db35e2a1945364d570b765332cef7a57289fc0",
                      "source_uid": "amojo:onlinechat:b4b939f3-5a25-4cab-a4e8-57140f7c72fa",
                      "source_name": "onlinechat:1494984c-db73-4ceb-b980-a20a5de569f2",
                      "category": "chats",
                      "pipeline_id": 6950551,
                      "created_at": 1686818940,
                      "metadata": {
                        "from": "",
                        "to": "1494984c-db73-4ceb-b980-a20a5de569f2",
                        "received_at": 1686818940,
                        "service": "onlinechat",
                        "client": {
                          "name": null,
                          "avatar": null
                        },
                        "origin": {
                          "chat_id": "b4b939f3-5a25-4cab-a4e8-57140f7c72fa",
                          "ref": null,
                          "visitor_uid": "b2aa4364-7790-4dca-8acc-ab90554f97f8"
                        },
                        "last_message_text": 1686818940,
                        "source_name": "Live chat"
                      },
                      "account_id": 31361463,
                      "_links": {
                        "self": {
                          "href": "LINK"
                        }
                      },
                      "_embedded": {
                        "contacts": [
                          {
                            "id": 583308,
                            "_links": {
                              "self": {
                                "href": "https://devteam.kommo.com/api/v4/contacts/583308"
                              }
                            }
                          }
                        ],
                        "leads": [
                          {
                            "id": 236738,
                            "_links": {
                              "self": {
                                "href": "https://devteam.kommo.com/api/v4/leads/236738"
                              }
                            }
                          }
                        ],
                        "companies": []
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "uid": {
                      "type": "string",
                      "example": "9ca097816a45770002e406db35e2a1945364d570b765332cef7a57289fc0"
                    },
                    "source_uid": {
                      "type": "string",
                      "example": "amojo:onlinechat:b4b939f3-5a25-4cab-a4e8-57140f7c72fa"
                    },
                    "source_name": {
                      "type": "string",
                      "example": "onlinechat:1494984c-db73-4ceb-b980-a20a5de569f2"
                    },
                    "category": {
                      "type": "string",
                      "example": "chats"
                    },
                    "pipeline_id": {
                      "type": "integer",
                      "example": 6950551,
                      "default": 0
                    },
                    "created_at": {
                      "type": "integer",
                      "example": 1686818940,
                      "default": 0
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "from": {
                          "type": "string",
                          "example": ""
                        },
                        "to": {
                          "type": "string",
                          "example": "1494984c-db73-4ceb-b980-a20a5de569f2"
                        },
                        "received_at": {
                          "type": "integer",
                          "example": 1686818940,
                          "default": 0
                        },
                        "service": {
                          "type": "string",
                          "example": "onlinechat"
                        },
                        "client": {
                          "type": "object",
                          "properties": {
                            "name": {},
                            "avatar": {}
                          }
                        },
                        "origin": {
                          "type": "object",
                          "properties": {
                            "chat_id": {
                              "type": "string",
                              "example": "b4b939f3-5a25-4cab-a4e8-57140f7c72fa"
                            },
                            "ref": {},
                            "visitor_uid": {
                              "type": "string",
                              "example": "b2aa4364-7790-4dca-8acc-ab90554f97f8"
                            }
                          }
                        },
                        "last_message_text": {
                          "type": "integer",
                          "example": 1686818940,
                          "default": 0
                        },
                        "source_name": {
                          "type": "string",
                          "example": "Live chat"
                        }
                      }
                    },
                    "account_id": {
                      "type": "integer",
                      "example": 31361463,
                      "default": 0
                    },
                    "_links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "object",
                          "properties": {
                            "href": {
                              "type": "string",
                              "example": "LINK"
                            }
                          }
                        }
                      }
                    },
                    "_embedded": {
                      "type": "object",
                      "properties": {
                        "contacts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 583308,
                                "default": 0
                              },
                              "_links": {
                                "type": "object",
                                "properties": {
                                  "self": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://devteam.kommo.com/api/v4/contacts/583308"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "leads": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 236738,
                                "default": 0
                              },
                              "_links": {
                                "type": "object",
                                "properties": {
                                  "self": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://devteam.kommo.com/api/v4/leads/236738"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "companies": {
                          "type": "array"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "The user is not authorized": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```