---
sidebar_position: 3
---
# Get lead
Gets a lead by ID
`Function GetLead(Val URL, Val LeadID, Val Token = "") Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| URL | --url | String | URL of webhook or a Bitrix24 domain, when token used |
| LeadID | --lead | Number, String | Lead ID |
| Token | --token | String | Access token, when app auth method used |
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
:::tip
Method at API documentation: [crm.lead.get](https://dev.1c-bitrix.ru/rest_help/crm/leads/crm_lead_get.php)
:::
```bsl title="Code example"
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
LeadID = "";
Result = OPI_Bitrix24.GetLead(URL, LeadID);
URL = "b24-ar17wx.bitrix24.by";
Token = "ec4dc366006e9f06006b12e400000001000...";
LeadID = "";
Result = OPI_Bitrix24.GetLead(URL, LeadID, Token);
```
```sh title="CLI command example"
oint bitrix24 GetLead --url "b24-ar17wx.bitrix24.by" --lead %lead% --token "ec4dc366006e9f06006b12e400000001000..."
```
```json title="Result"
```