GET /lead - Получить список лидов

Обновлено 8 июня 2026 г.

Метод возвращает список лидов. При выполнении запроса Access Token необходимо поместить в заголовки.

  • HTTP-метод: GET
  • URL: https://{idcrm}-crm-api.vionvi.com
  • Заголовки: Authorization: Bearer <токен>

Параметры запроса (Query Parameters)

  • page — номер страницы для пагинации (По умолчанию: 1)
  • per_page — лимит элементов на странице (По умолчанию: 15, Максимум 500)
  • dtCreate[0] — дата и время создания лида (с) (формат unixtime)
  • dtCreate[1] — дата и время создания лида (по) (формат unixtime)
  • expand — связанные сущности (client, userOwnerName, params, sourceName)

Пример запроса:

curl -X GET "https://{idcrm}-crm-api.vionvi.com/lead?expand=client,userOwnerName" \
     -H "Authorization: Bearer ezI1NiJ9.eyJhdWQiOiIyIiwianRpIjoiNGNhMTgwMDczM2"

Пример ответа:

{
  "data": [
    {
      "id": 7,
      "firstId": null,
      "sourceId": 1,
      "clientId": 7,
      "notAnswer": null,
      "userIdCreate": 1,
      "userIdUpdate": null,
      "dtCreate": 1688146992,
      "dtUpdate": 1688146992,
      "dtNotAnswer": null,
      "locationUnitId": null,
      "locationCityId": null,
      "funnelStageId": 7,
      "userIdOwner": 1,
      "otherCount": 0,
      "cost": null,
      "remoteId": null,
      "utmSource": null,
      "utmMedium": null,
      "utmCampaign": null,
      "utmContent": null,
      "utmTerm": null,
      "utmReferrer": null,
      "openstatService": null,
      "openstatCampaign": null,
      "openstatAd": null,
      "openstatSource": null,
      "from": null,
      "yclid": null,
      "ymclid": null,
      "ymClientId": null,
      "gclid": null,
      "yqrid": null,
      "fbclid": null,
      "roistatId": null,
      "referrer": null,
      "ip": null
    },
    {
      "id": 6,
      "firstId": null,
      "sourceId": 3,
      "clientId": 6,
      "notAnswer": null,
      "userIdCreate": 1,
      "userIdUpdate": null,
      "dtCreate": 1688146184,
      "dtUpdate": 1688146184,
      "dtNotAnswer": null,
      "locationUnitId": null,
      "locationCityId": null,
      "funnelStageId": 7,
      "userIdOwner": 1,
      "otherCount": 0,
      "cost": null,
      "remoteId": null,
      "utmSource": null,
      "utmMedium": null,
      "utmCampaign": null,
      "utmContent": null,
      "utmTerm": null,
      "utmReferrer": null,
      "openstatService": null,
      "openstatCampaign": null,
      "openstatAd": null,
      "openstatSource": null,
      "from": null,
      "yclid": null,
      "ymclid": null,
      "ymClientId": null,
      "gclid": null,
      "yqrid": null,
      "fbclid": null,
      "roistatId": null,
      "referrer": null,
      "ip": null
    },
    {
      "id": 5,
      "firstId": null,
      "sourceId": 3,
      "clientId": 5,
      "notAnswer": null,
      "userIdCreate": 1,
      "userIdUpdate": null,
      "dtCreate": 1688122977,
      "dtUpdate": 1688122977,
      "dtNotAnswer": null,
      "locationUnitId": null,
      "locationCityId": null,
      "funnelStageId": null,
      "userIdOwner": 4,
      "otherCount": 0,
      "cost": null,
      "remoteId": null,
      "utmSource": null,
      "utmMedium": null,
      "utmCampaign": null,
      "utmContent": null,
      "utmTerm": null,
      "utmReferrer": null,
      "openstatService": null,
      "openstatCampaign": null,
      "openstatAd": null,
      "openstatSource": null,
      "from": null,
      "yclid": null,
      "ymclid": null,
      "ymClientId": null,
      "gclid": null,
      "yqrid": null,
      "fbclid": null,
      "roistatId": null,
      "referrer": null,
      "ip": null
    },
    {
      "id": 4,
      "firstId": 1,
      "sourceId": 3,
      "clientId": 4,
      "notAnswer": null,
      "userIdCreate": 1,
      "userIdUpdate": null,
      "dtCreate": 1688122939,
      "dtUpdate": 1688122939,
      "dtNotAnswer": null,
      "locationUnitId": null,
      "locationCityId": null,
      "funnelStageId": null,
      "userIdOwner": 3,
      "otherCount": 2,
      "cost": null,
      "remoteId": null,
      "utmSource": null,
      "utmMedium": null,
      "utmCampaign": null,
      "utmContent": null,
      "utmTerm": null,
      "utmReferrer": null,
      "openstatService": null,
      "openstatCampaign": null,
      "openstatAd": null,
      "openstatSource": null,
      "from": null,
      "yclid": null,
      "ymclid": null,
      "ymClientId": null,
      "gclid": null,
      "yqrid": null,
      "fbclid": null,
      "roistatId": null,
      "referrer": null,
      "ip": null
    },
    {
      "id": 3,
      "firstId": 1,
      "sourceId": 3,
      "clientId": 3,
      "notAnswer": null,
      "userIdCreate": 1,
      "userIdUpdate": null,
      "dtCreate": 1688122569,
      "dtUpdate": 1688122569,
      "dtNotAnswer": null,
      "locationUnitId": null,
      "locationCityId": null,
      "funnelStageId": null,
      "userIdOwner": null,
      "otherCount": 2,
      "cost": null,
      "remoteId": null,
      "utmSource": null,
      "utmMedium": null,
      "utmCampaign": null,
      "utmContent": null,
      "utmTerm": null,
      "utmReferrer": null,
      "openstatService": null,
      "openstatCampaign": null,
      "openstatAd": null,
      "openstatSource": null,
      "from": null,
      "yclid": null,
      "ymclid": null,
      "ymClientId": null,
      "gclid": null,
      "yqrid": null,
      "fbclid": null,
      "roistatId": null,
      "referrer": null,
      "ip": null
    },
    {
      "id": 2,
      "firstId": null,
      "sourceId": 3,
      "clientId": 2,
      "notAnswer": null,
      "userIdCreate": 1,
      "userIdUpdate": null,
      "dtCreate": 1687702314,
      "dtUpdate": 1687702314,
      "dtNotAnswer": null,
      "locationUnitId": 1,
      "locationCityId": null,
      "funnelStageId": 11,
      "userIdOwner": null,
      "otherCount": 0,
      "cost": null,
      "remoteId": null,
      "utmSource": null,
      "utmMedium": null,
      "utmCampaign": null,
      "utmContent": null,
      "utmTerm": null,
      "utmReferrer": null,
      "openstatService": null,
      "openstatCampaign": null,
      "openstatAd": null,
      "openstatSource": null,
      "from": null,
      "yclid": null,
      "ymclid": null,
      "ymClientId": null,
      "gclid": null,
      "yqrid": null,
      "fbclid": null,
      "roistatId": null,
      "referrer": null,
      "ip": null
    },
    {
      "id": 1,
      "firstId": null,
      "sourceId": null,
      "clientId": 1,
      "notAnswer": null,
      "userIdCreate": 1,
      "userIdUpdate": null,
      "dtCreate": 1679322027,
      "dtUpdate": 1679322027,
      "dtNotAnswer": null,
      "locationUnitId": 1,
      "locationCityId": null,
      "funnelStageId": 11,
      "userIdOwner": null,
      "otherCount": 2,
      "cost": null,
      "remoteId": null,
      "utmSource": null,
      "utmMedium": null,
      "utmCampaign": null,
      "utmContent": null,
      "utmTerm": null,
      "utmReferrer": null,
      "openstatService": null,
      "openstatCampaign": null,
      "openstatAd": null,
      "openstatSource": null,
      "from": null,
      "yclid": null,
      "ymclid": null,
      "ymClientId": null,
      "gclid": null,
      "yqrid": null,
      "fbclid": null,
      "roistatId": null,
      "referrer": null,
      "ip": null
    }
  ],
  "links": {
      "first": "https://1-crm-api.vionvi.com/lead?page=1",
      "last": "https://1-crm-api.vionvi.com/lead?page=1",
      "prev": null,
      "next": null
    },
  "meta": {
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "links": [
        {
          "url": null,
          "label": "« Назад",
          "active": false
        },
        {
          "url": "https://1-crm-api.vionvi.com/lead?page=1",
          "label": "1",
          "active": true
        },
        {
          "url": null,
          "label": "Вперёд »",
          "active": false
        }
      ],
      "path": "https://1-crm-api.vionvi.com/lead",
      "per_page": 15,
      "to": 7,
      "total": 7
    }
}

Результат возвращается постранично. В meta содержится информация о постраничной разбивке.

Данные о Лидах находятся в data