Запрос¶
GET lead/[lead_id]
Передаваемые параметры¶
- lead_id - ID лида
Пример запроса¶
curl -H 'token: someToken' https://direct.lptracker.ru/lead/1234
Пример ответа при успешном выполнении:
{ "status": "success", "result": { "id": 1234, "contact_id": 12345, "name": "TestLead", "custom": [ { "id": 124, "name": "Владелец заявки", "type": "owner", "value": { "id": 100, "type": "main" } }, { "id": 125, "name": "Шаг воронки", "type": "funnel", "value": "123" } ], "contact": { "id": "contact_id", "project_id": 123, "details": [ { "id": "contact_detail_id", "type": "email/phone", "data": "email@example.com/+71234567890" } ], "fields": [ { "id": "12", "type": "string", "name": "fieldName", "value": "exampleText" } ], "created_at": "DD.MM.YY HH:MM:SS", "name": "user_name", "site": "example.com" } } }