API Doc

POST Push Leads (Registration method)
Headers
Accept
application/json
FieldRequiredTypeStandardExample
email+stringRFC[email protected]
phone+numberE.164 +44 20 1234 5678
full_name+stringJames Smith
ip
(optional auto*)
+stringIPv4192.158.1.38
landing+stringlanding
user_id+number1
country+stringUK
lang+stringEN
landing_name+stringtest_name
source+stringFB
Example Request
curl --location 'https://crm.domain.live/api/leads' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode '[email protected]' \
  --data-urlencode 'full_name=Test Test' \
  --data-urlencode 'landing=domain.ru' \
  --data-urlencode 'country=IT' \
  --data-urlencode 'landing_name=Test-funnel' \
  --data-urlencode 'user_id=1' \
  --data-urlencode 'source=FB' \
  --data-urlencode 'phone=393895421210' \
  --data-urlencode 'ip=78.208.2.210' \
  --data-urlencode 'description=quiz'
View more
Example Response
Body
{
  "status": true,
  "external_id": 1,
  "link_auto_login": "https://google.com",
  "lead_id": 1
}
No response headers
This request doesn't return any response headers
Get Leads list
Headers
Accept
application/json
Authorization
Bearer ТОКЕН
FieldRequiredTypeStandardExample
date_start+string2024-12-10
date_end+string2024-12-10
is_action
(additional req.for dep.*)
number1
pagenumber1
per_pagenumber100
Example Request
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"
}'
View more
{
"ai": "ask from your trackbox partner",
"ci": "1",
"gi": "29.249.50.83",
}
Example Response
Body
 {
  "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"
}
No response headers
This request doesn't return any response headers
© CRMate, 2024. All rights reserved.