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

# Get lead by ID

This method allows getting a particular lead data by its ID.

**`“with”`parameters**

| Parameter                      | Description                                                                                                                                                                                                                                            |
| :----------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| contacts                       | Adds information about the contacts associated with the lead to the response                                                                                                                                                                           |
| only\_deleted                  | If this parameter is passed, the method request will return only the deleted leads that are still restorable in the response. You will receive lead models with the following properties: “id”, modification date and “is\_deleted” = true parameters. |
| loss\_reason                   | Adds detailed information about the lead loss reason to the response                                                                                                                                                                                   |
| is\_price\_modified\_by\_robot | Adds a property represents whether the lead sale value was changed last time by Robot to the response                                                                                                                                                  |
| catalog\_elements              | Adds lists items linked to the lead to the response                                                                                                                                                                                                    |
| source\_id                     | Adds the lead source ID to the response                                                                                                                                                                                                                |
| sourсe                         | Adds information about the source, its ID and name to the response                                                                                                                                                                                     |

**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

**Response parameters**

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Data type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        id
      </td>

      <td>
        int
      </td>

      <td>
        Lead ID
      </td>
    </tr>

    <tr>
      <td>
        name
      </td>

      <td>
        string
      </td>

      <td>
        Lead name
      </td>
    </tr>

    <tr>
      <td>
        price
      </td>

      <td>
        int
      </td>

      <td>
        Lead sale
      </td>
    </tr>

    <tr>
      <td>
        responsible_user_id
      </td>

      <td>
        int
      </td>

      <td>
        Lead responsible user ID
      </td>
    </tr>

    <tr>
      <td>
        group_id
      </td>

      <td>
        int
      </td>

      <td>
        Group ID of the lead responsible user
      </td>
    </tr>

    <tr>
      <td>
        status_id
      </td>

      <td>
        int
      </td>

      <td>
        ID of the stage the lead is added to, the first stage of the main pipeline by default
      </td>
    </tr>

    <tr>
      <td>
        pipeline_id
      </td>

      <td>
        int
      </td>

      <td>
        ID of the pipeline the lead is added to
      </td>
    </tr>

    <tr>
      <td>
        loss_reason_id
      </td>

      <td>
        int
      </td>

      <td>
        Lead loss reason ID
      </td>
    </tr>

    <tr>
      <td>
        source_id
      </td>

      <td>
        int
      </td>

      <td>
        **GET parameter “with” is required.**
        Lead source ID.
      </td>
    </tr>

    <tr>
      <td>
        created_by
      </td>

      <td>
        int
      </td>

      <td>
        Id of the user who created the lead
      </td>
    </tr>

    <tr>
      <td>
        updated_by
      </td>

      <td>
        int
      </td>

      <td>
        Id of the user who updated the lead
      </td>
    </tr>

    <tr>
      <td>
        created_at
      </td>

      <td>
        int
      </td>

      <td>
        The time and date the lead was created in the format of Unix Timestamp
      </td>
    </tr>

    <tr>
      <td>
        updated_at
      </td>

      <td>
        int
      </td>

      <td>
        The time and date the lead was updated in the format of Unix Timestamp
      </td>
    </tr>

    <tr>
      <td>
        closed_at
      </td>

      <td>
        int
      </td>

      <td>
        The time and date the lead was closed in the format of Unix Timestamp
      </td>
    </tr>

    <tr>
      <td>
        closest_task_at
      </td>

      <td>
        int
      </td>

      <td>
        The time and date of the closest open task in the format of Unix Timestamp
      </td>
    </tr>

    <tr>
      <td>
        custom_fields_values
      </td>

      <td>
        array|null
      </td>

      <td>
        An array containing information on the values of custom fields specified for this lead
      </td>
    </tr>

    <tr>
      <td>
        score
      </td>

      <td>
        int|null
      </td>

      <td>
        Lead score
      </td>
    </tr>

    <tr>
      <td>
        account_id
      </td>

      <td>
        int
      </td>

      <td>
        Account ID where the lead is located in
      </td>
    </tr>

    <tr>
      <td>
        labor_cost
      </td>

      <td>
        int
      </td>

      <td>
        Shows how much time was spent working with the lead. Calculation time in seconds.
      </td>
    </tr>

    <tr>
      <td>
        is_price_modified_by_robot
      </td>

      <td>
        bool
      </td>

      <td>
        **GET parameter “with” is required.**
        Defines whether the lead sale value was changed by the Robot last time.
      </td>
    </tr>

    <tr>
      <td>
        _embedded
      </td>

      <td>
        object
      </td>

      <td>
        Embedded entities data
      </td>
    </tr>

    <tr>
      <td>
        _embedded[loss_reason][loss_reason]
      </td>

      <td>
        object
      </td>

      <td>
        **GET parameter “with” is required.**  
        Lead loss reason
      </td>
    </tr>

    <tr>
      <td>
        _embedded[loss_reason][id]
      </td>

      <td>
        int
      </td>

      <td>
        Loss reason ID
      </td>
    </tr>

    <tr>
      <td>
        _embedded[loss_reason][name]
      </td>

      <td>
        string
      </td>

      <td>
        Loss reason name
      </td>
    </tr>

    <tr>
      <td>
        _embedded[tags]
      </td>

      <td>
        array
      </td>

      <td>
        Lead tags data array
      </td>
    </tr>

    <tr>
      <td>
        _embedded[tags][0]
      </td>

      <td>
        object
      </td>

      <td>
        Lead tag model
      </td>
    </tr>

    <tr>
      <td>
        _embedded[tags][0][id]
      </td>

      <td>
        int
      </td>

      <td>
        Tag ID
      </td>
    </tr>

    <tr>
      <td>
        _embedded[tags][0][name]
      </td>

      <td>
        string
      </td>

      <td>
        Tag name
      </td>
    </tr>

    <tr>
      <td>
        _embedded[tags][0][color]
      </td>

      <td>
        string/null
      </td>

      <td>
        Tag color
      </td>
    </tr>

    <tr>
      <td>
        _embedded[contacts]
      </td>

      <td>
        array
      </td>

      <td>
        **GET parameter “with” is required.**  
        Linked contacts data array.
      </td>
    </tr>

    <tr>
      <td>
        _embedded[contacts][0]
      </td>

      <td>
        object
      </td>

      <td>
        Linked contact data
      </td>
    </tr>

    <tr>
      <td>
        _embedded[contacts][0][id]
      </td>

      <td>
        ints
      </td>

      <td>
        Linked contact ID
      </td>
    </tr>

    <tr>
      <td>
        _embedded[contacts][0][is_main][is_main]
      </td>

      <td>
        bool
      </td>

      <td>
        Defines whether the contact is main for the lead
      </td>
    </tr>

    <tr>
      <td>
        _embedded[companies]
      </td>

      <td>
        array
      </td>

      <td>
        Linked company data array. This array always consists of 1 element as a lead can have only 1 company linked to it.
      </td>
    </tr>

    <tr>
      <td>
        _embedded[companies][0]
      </td>

      <td>
        object
      </td>

      <td>
        Linked company data
      </td>
    </tr>

    <tr>
      <td>
        _embedded[companies][0][id]
      </td>

      <td>
        int
      </td>

      <td>
        Linked company ID
      </td>
    </tr>

    <tr>
      <td>
        _embedded[catalog_elements][catalog_elements]
      </td>

      <td>
        array
      </td>

      <td>
        **GET parameter “with” is required.**  
        Linked lists’ elements data array.
      </td>
    </tr>

    <tr>
      <td>
        _embedded[catalog_elements][0]
      </td>

      <td>
        object
      </td>

      <td>
        Linked list element data
      </td>
    </tr>

    <tr>
      <td>
        _embedded[catalog_elements][0][id]
      </td>

      <td>
        int
      </td>

      <td>
        Linked element ID
      </td>
    </tr>

    <tr>
      <td>
        _embedded[catalog_elements][0][metadata]
      </td>

      <td>
        object
      </td>

      <td>
        Meta-data of the element
      </td>
    </tr>

    <tr>
      <td>
        _embedded[catalog_elements][0][quantity]
      </td>

      <td>
        int
      </td>

      <td>
        Linked element quantity
      </td>
    </tr>

    <tr>
      <td>
        _embedded[catalog_elements][0][catalog_id][catalog_id]
      </td>

      <td>
        int
      </td>

      <td>
        ID of the linked element’s list
      </td>
    </tr>

    <tr>
      <td>
        _embedded[source]
      </td>

      <td>
        object
      </td>

      <td>
        **GET parameter "with" is required**. Lead source
      </td>
    </tr>

    <tr>
      <td>
        _embedded[source][id]
      </td>

      <td>
        int
      </td>

      <td>
        Lead source ID
      </td>
    </tr>

    <tr>
      <td>
        _embedded[source][name]
      </td>

      <td>
        string
      </td>

      <td>
        Lead source name
      </td>
    </tr>
  </tbody>
</Table>

# 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/{id}": {
      "get": {
        "summary": "Get lead by ID",
        "description": "This method allows getting a particular lead data by its ID.",
        "operationId": "getting-a-lead-by-its-id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Lead ID",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "with",
            "in": "query",
            "description": "This parameter takes a string which may consist of several values (look at the table above) separated by commas.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Request successful": {
                    "value": {
                      "total": 6,
                      "accepted": 1,
                      "declined": 3,
                      "average_sort_time": 44153027,
                      "categories": {
                        "sip": {
                          "total": 2
                        },
                        "forms": {
                          "total": 3
                        },
                        "chats": {
                          "total": 1
                        }
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 152464,
                      "default": 0
                    },
                    "name": {
                      "type": "string",
                      "example": "Example lead 2"
                    },
                    "price": {
                      "type": "integer",
                      "example": 20000,
                      "default": 0
                    },
                    "responsible_user_id": {
                      "type": "integer",
                      "example": 8375357,
                      "default": 0
                    },
                    "group_id": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "status_id": {
                      "type": "integer",
                      "example": 58141807,
                      "default": 0
                    },
                    "pipeline_id": {
                      "type": "integer",
                      "example": 6950551,
                      "default": 0
                    },
                    "loss_reason_id": {},
                    "created_by": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "updated_by": {
                      "type": "integer",
                      "example": 8375357,
                      "default": 0
                    },
                    "created_at": {
                      "type": "integer",
                      "example": 1686673337,
                      "default": 0
                    },
                    "updated_at": {
                      "type": "integer",
                      "example": 1686748504,
                      "default": 0
                    },
                    "closed_at": {},
                    "closest_task_at": {},
                    "is_deleted": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "custom_fields_values": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field_id": {
                            "type": "integer",
                            "example": 184994,
                            "default": 0
                          },
                          "field_name": {
                            "type": "string",
                            "example": "Sale"
                          },
                          "field_code": {},
                          "field_type": {
                            "type": "string",
                            "example": "checkbox"
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "boolean",
                                  "example": true,
                                  "default": true
                                }
                              }
                            }
                          },
                          "is_computed": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          }
                        }
                      }
                    },
                    "score": {},
                    "account_id": {
                      "type": "integer",
                      "example": 31361463,
                      "default": 0
                    },
                    "labor_cost": {},
                    "is_price_computed": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "_links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "object",
                          "properties": {
                            "href": {
                              "type": "string",
                              "example": "https://devteam.kommo.com/api/v4/leads/152464?page=1&limit=50"
                            }
                          }
                        }
                      }
                    },
                    "_embedded": {
                      "type": "object",
                      "properties": {
                        "tags": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 2164,
                                "default": 0
                              },
                              "name": {
                                "type": "string",
                                "example": "Ex"
                              },
                              "color": {}
                            }
                          }
                        },
                        "companies": {
                          "type": "array"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "204": {
            "description": "204",
            "content": {
              "text/plain": {
                "examples": {
                  "The lead with the specified ID does not exist.": {
                    "value": ""
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "User is not authorized": {
                    "value": "{\n  \"title\": \"Unauthorized\",\n  \"type\": \"https://httpstatus.es/401\",\n  \"status\": 401,\n  \"detail\": \"Invalid user name or password\"\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": "Invalid user name or password"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "429",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```