Field | Required | Type | Standard | Example |
---|---|---|---|---|
email (optional auto*) | + | string | RFC | [email protected] |
phone | + | number | E.164 | +44 20 1234 5678 |
full_name | + | string | James Smith | |
ip (optional auto*) | + | string | IPv4 | 192.158.1.38 |
landing | + | string | landing | |
user_id | + | number | 1 | |
country | + | string | ISO 2 | UK |
lang | + | string | EN | |
landing_name | + | string | test_name | |
source | + | string | FB | |
description (optional*) | - | string | quiz |
curl --location 'https://crm.domain.live/api/leads' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
  "email": "[email protected]",
  "full_name": "Test Test",
  "landing": "domain.ru",
  "country": "IT",
  "landing_name": "Test-funnel",
  "user_id": 1,
  "source": "FB",
  "phone": "393895421210",
  "ip": "78.208.2.210",
  "description": "quiz"
}'
{
  "status": true,
  "external_id": 1,
  "link_auto_login": "https://google.com",
  "lead_id": 1
}
Field | Required | Type | Standard | Example |
---|---|---|---|---|
date_start | + | string | 2024-12-10 | |
date_end | + | string | 2024-12-10 | |
is_action (additional req.for dep.*) | number | 1 | ||
page | number | 1 | ||
per_page | number | 100 |
curl --location --request
  GET 'https://crm.yourdomain.net/api/web-master/leads' \
  --header 'Authorization: Bearer ТОКЕН' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "date_start": "2022-05-05",
  "date_end": "2022-05-05"
}'
{"ai": "ask from your trackbox partner","ci": "1","gi": "29.249.50.83",}
{
  "success": true,
  "data": {
    "data": [{
      "id": 1,
      "email": "[email protected]",
      "status": {
      "id": 1,
      "name": "New"
      },
      "is_action": 0,
      "action_time": "",
      "date": "2024-12-10 17:58:46"
    }],
  "current_page": 1,
  "total_pages": 1,
  "total": 1
  },
  "message": "Leads collection"
}