Lead411 APIs

API to access lead411

POST Create Free Trial Signup
https://api.lead411.com/v1/create_free_trial?first_name=testlive&last_name=api&company=test+name+from+api&phone=2222222222&password=123456&newsletter=yes&customer_type=general&email=test_api6@lead411.net

Send all required params mentioned below to create a free trial account.

PARAMS

first_name
testlive
last_name
api
company
test+name+from+api
phone
2222222222
password
123456
newsletter
yes
customer_type
general
email
test_api6@lead411.net
BODY



Example Request
Create Free Trial Signup
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/create_free_trial?first_name=testlive&last_name=api&company=test+name+from+api&phone=2222222222&password=123456&newsletter=yes&customer_type=general&email=test_api6@lead411.net",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
Example Response
200 - OK
{
  "status": "success",
  "hash_key": "$2y$10$psRFiOHpaQyvYzmdOB/mEOClh31rbQZIxQTWUBc/KHuzN2zkoytEK",
  "msg": "Free trial account has been created. Please check your inbox."
}
POST Login and Get token
https://api.lead411.com/v1/authenticate_user?email=test_api6@lead411.net&password=123456

By Calling this API, we will validate username and password and if it passes the db authentication then API will return the access token which needs to be passed to all further subsequent API calls.

When the token expires then call 'Login and Get token' API to get a new token

PARAMS

email
test_api6@lead411.net
password
123456
BODY



Example Request
Login and Get token
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/authenticate_user?email=test_api6@lead411.net&password=123456",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Create customer's Sub-Account
https://api.lead411.com/v1/create_customer_sub_account?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MzIxNiwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTQzOTY1OTcsImV4cCI6MTUxNDY1NTc5NywibmJmIjoxNTE0Mzk2NTk3LCJqdGkiOiJRdXZDMm43VnVtMjViUjVRIn0.-JDRthOE0Nr52VaOHX_Fy3gRJj9t0pqH123DLGt8v6s&first_name=testlive&last_name=api&company=test+name+from+api&phone=2222222222&password=123456&newsletter=yes&customer_type=general&email=subaccount411@lead411.net

Send auth token along with all required params mentioned below to create a customer's sub account

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MzIxNiwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTQzOTY1OTcsImV4cCI6MTUxNDY1NTc5NywibmJmIjoxNTE0Mzk2NTk3LCJqdGkiOiJRdXZDMm43VnVtMjViUjVRIn0.-JDRthOE0Nr52VaOHX_Fy3gRJj9t0pqH123DLGt8v6s
first_name
testlive
last_name
api
company
test+name+from+api
phone
2222222222
password
123456
newsletter
yes
customer_type
general
email
subaccount411@lead411.net
BODY



Example Request
Create Free Trial Signup
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/create_free_trial?first_name=testlive&last_name=api&company=test+name+from+api&phone=2222222222&password=123456&newsletter=yes&customer_type=general&email=test_api6@lead411.net",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
Example Response
200 - OK
{
  "status": "success",
  "hash_key": "$2y$10$psRFiOHpaQyvYzmdOB/mEOClh31rbQZIxQTWUBc/KHuzN2zkoytEK",
  "msg": "Free trial account has been created. Please check your inbox."
}
POST Get Logged in user details
https://api.lead411.com/v1/getCustomerDetails?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY

Send access token to get all the details related to authenticated user.

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY
BODY



Example Request
Get Logged in user details
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/getCustomerDetails?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Insert Suppression Emails
https://api.lead411.com/v1/suppression/insertSuppressionEmail?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTY3NzAzODcsImV4cCI6MTUxNzAyOTU4NywibmJmIjoxNTE2NzcwMzg3LCJqdGkiOiJKR2xGcWc0Z1hMVzNnUnFsIn0.5qVkYundXwp8X_cBdbwBh-_Z1S2pcShv11iLXJXt5ok&email_json=["juan.galan@mobileim.com"]&employee_id_json=["376"]&sub_account_email=subaccount411@lead411.net

Add employee_id(s) or email(s) in suppression list in customer or sub-account: We can send any or both of the below mentioned parameter in request:

1) "employee_id_json" holds the collection of existing employee_id which needs to be added in suppression list. Example: ["12345" , "67890"]

2) "email_json" holds the collection of email which needs to be added in suppression list. Example: ["juan.galan@example.com" , "andrea.young@example.com"]

API accepts 50,000 employee_ids/emails in json per request which mean if there are more than 50,000 records then api will consider only first 50,000 employee_ids/emails and insert in suppression list per api call and rest will be discarded in that request.

if you want to send more than 50,000 employee_ids/emails then send more employee_id/email in next batch/api call because, as of now, there is no limitation in holding employee_ids/emails in suppression database per customer.

1) if "sub_account_email" params available in request then employee_ids/emails present in "employee_id_json"/email_json" param will be added to sub-account suppression list.
2) if "sub_account_email" is not available in request then employee_ids/emails will be added to master's account suppression list

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTY3NzAzODcsImV4cCI6MTUxNzAyOTU4NywibmJmIjoxNTE2NzcwMzg3LCJqdGkiOiJKR2xGcWc0Z1hMVzNnUnFsIn0.5qVkYundXwp8X_cBdbwBh-_Z1S2pcShv11iLXJXt5ok
email_json
["juan.galan@mobileim.com"]
employee_id_json
["376"]
sub_account_email
subaccount411@lead411.net

optional parameter which hold the email of sub account

BODY



Example Request
Insert Suppression Emails
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/suppression/insertSuppressionEmail?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTY3NzAzODcsImV4cCI6MTUxNzAyOTU4NywibmJmIjoxNTE2NzcwMzg3LCJqdGkiOiJKR2xGcWc0Z1hMVzNnUnFsIn0.5qVkYundXwp8X_cBdbwBh-_Z1S2pcShv11iLXJXt5ok&email_json=%5B%22juan.galan@mobileim.com%22%5D&employee_id_json=%5B%22376%22%5D&sub_account_email=subaccount411@lead411.net",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get Suppression List
https://api.lead411.com/v1/suppression/getSuppressionEmails?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTY3NzAzODcsImV4cCI6MTUxNzAyOTU4NywibmJmIjoxNTE2NzcwMzg3LCJqdGkiOiJKR2xGcWc0Z1hMVzNnUnFsIn0.5qVkYundXwp8X_cBdbwBh-_Z1S2pcShv11iLXJXt5ok&email_json=["juan.galan@mobileim.com"]&employee_id_json=["376"]&sub_account_email=subaccount411@lead411.net

Get Suppression list of customer or sub-account:

1) if "sub_account_email" params available in request then sub-account suppression list will be returned returned in response.
2) if "sub_account_email" is not available in request then master's account suppression list will be returned in response.

Filter : We can send any or both of the below mentioned parameter in request to filter the suppression result :

1) "employee_id_json" holds the collection of employee_ids which needs to be return in suppression list response. Example: ["12345" , "67890"]

2) "email_json" holds the collection of email which needs to return in suppression list result. Example: ["juan.galan@example.com" , "andrea.young@example.com"]

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTY3NzAzODcsImV4cCI6MTUxNzAyOTU4NywibmJmIjoxNTE2NzcwMzg3LCJqdGkiOiJKR2xGcWc0Z1hMVzNnUnFsIn0.5qVkYundXwp8X_cBdbwBh-_Z1S2pcShv11iLXJXt5ok
email_json
["juan.galan@mobileim.com"]

optional filter

employee_id_json
["376"]

optional filter

sub_account_email
subaccount411@lead411.net

optional parameter which hold the email of sub account

BODY



Example Request
Get Suppression List
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/suppression/getSuppressionEmails?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTY3NzAzODcsImV4cCI6MTUxNzAyOTU4NywibmJmIjoxNTE2NzcwMzg3LCJqdGkiOiJKR2xGcWc0Z1hMVzNnUnFsIn0.5qVkYundXwp8X_cBdbwBh-_Z1S2pcShv11iLXJXt5ok&email_json=%5B%22juan.galan@mobileim.com%22%5D&employee_id_json=%5B%22376%22%5D&sub_account_email=subaccount411@lead411.net",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Delete Suppression Email
https://api.lead411.com/v1/suppression/deleteSuppressionEmail?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTYxNjczNjIsImV4cCI6MTUxNjQyNjU2MiwibmJmIjoxNTE2MTY3MzYyLCJqdGkiOiJmNzZrRmdIeUVrdUlFMkpwIn0.abDiL6i_m4qUVToopSZdDmIDXZLhkl6NrSwbMpQJcu4&email_json=["juan.galan@mobileim.com"]&employee_id_json=["376"]&sub_account_email=subaccount411@lead411.net

Delete records from suppression list in customer or sub-account:

We can send any or both of the below mentioned parameter in request:

1) "employee_id_json" holds the collection of existing employee_id which needs to be added in suppression list. Example: ["12345" , "67890"]

2) "email_json" holds the collection of email which needs to be added in suppression list. Example: ["juan.galan@example.com" , "andrea.young@example.com"]

1) if "sub_account_email" params available in request then emails present in "email_json" param will be deleted to sub-account suppression list.
2) if "sub_account_email" is not available in request then emails will be deleted to master's account suppression list

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTYxNjczNjIsImV4cCI6MTUxNjQyNjU2MiwibmJmIjoxNTE2MTY3MzYyLCJqdGkiOiJmNzZrRmdIeUVrdUlFMkpwIn0.abDiL6i_m4qUVToopSZdDmIDXZLhkl6NrSwbMpQJcu4
email_json
["juan.galan@mobileim.com"]

optional

employee_id_json
["376"]

optional

sub_account_email
subaccount411@lead411.net

[{"key":"sub_account_email","value":"subaccount411@lead411.net","equals":true,"description":"optional parameter which hold the email of sub account","enabled":true}]

BODY



Example Request
Delete Suppression Email
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/suppression/deleteSuppressionEmail?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTYxNjczNjIsImV4cCI6MTUxNjQyNjU2MiwibmJmIjoxNTE2MTY3MzYyLCJqdGkiOiJmNzZrRmdIeUVrdUlFMkpwIn0.abDiL6i_m4qUVToopSZdDmIDXZLhkl6NrSwbMpQJcu4&email_json=%5B%22juan.galan@mobileim.com%22%5D&employee_id_json=%5B%22376%22%5D&sub_account_email=subaccount411@lead411.net",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get Customer Unlock Quota Details
https://api.lead411.com/v1/get_customer_quota?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY

Send access token to get unlock Quota details left.

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY
BODY



Example Request
Get Customer Unlock Quota Details
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/get_customer_quota?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Search API filled parameters with result
https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTI0ODE4MDEsImV4cCI6MTUxMjc0MTAwMSwibmJmIjoxNTEyNDgxODAxLCJqdGkiOiIxSFZkbVJnY3hPbjU2MFQ1In0.LeDh7G38FsYXhIr2FS4I64rlfS-6d1u4GB7UOSZNk_k&company_ids=1743&user_search_string=cisco&search_result_filter=resultTypeAll&title_keyword=ceo&Title_array&country_code=US&State_array=&cityPostal=&range=5&Area_Codes=&Industry_Codes=&SIC_Codes=&company_description_string&news_date_from=2017-11-13&news_date_to=2017-11-13&news_category_source=&currently_hiring_title=&hiring_date=&SoftwareHardware_array=&technology_uses_text=&FilterEmployee=all,1,2,3,4,5,6,7,8,9,10,11,12&FilterRevenue=all,1,2,3,4,5,6,7,8,9,10,11,12&email_filter=peopleResultsEmails&suppression_filter=suppressed_no&exportedResults=exported_yes&companyResults=companyResultsAll&linkedinResult=linkedin_no&has_direct_dialResults=has_direct_dial_no&since_date=&start_date=&default_sort_by=yearlyRevDesc&page=1&sub_account_email=subaccount411@lead411.net

Send UX Element data to search the Lead11 database for company or employee records

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTI0ODE4MDEsImV4cCI6MTUxMjc0MTAwMSwibmJmIjoxNTEyNDgxODAxLCJqdGkiOiIxSFZkbVJnY3hPbjU2MFQ1In0.LeDh7G38FsYXhIr2FS4I64rlfS-6d1u4GB7UOSZNk_k
company_ids
1743
user_search_string
cisco
search_result_filter
resultTypeAll
title_keyword
ceo
Title_array
country_code
US
State_array
cityPostal
range
5
Area_Codes
Industry_Codes
SIC_Codes
company_description_string
news_date_from
2017-11-13
news_date_to
2017-11-13
news_category_source
currently_hiring_title
hiring_date
SoftwareHardware_array
technology_uses_text
FilterEmployee
all,1,2,3,4,5,6,7,8,9,10,11,12
FilterRevenue
all,1,2,3,4,5,6,7,8,9,10,11,12
FilterLevel
c_level,vp_level,director_level,manager_level

optional, if available in request then will be used otherwise all level will be returned. where: c_level="Executive Level" , vp_level="VP Level", director_level="Director Level",manager_level="Manager Level"

email_filter
peopleResultsEmails
suppression_filter
suppressed_no
exportedResults
exported_yes
companyResults
companyResultsAll
linkedinResult
linkedin_no
has_direct_dialResults
has_direct_dial_no
since_date
start_date
default_sort_by
yearlyRevDesc
page
1
sub_account_email
subaccount411@lead411.net

optional, if available in request then sub_account suppression will be used

BODY



Example Request
Search API filled parameters with result
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTI0ODE4MDEsImV4cCI6MTUxMjc0MTAwMSwibmJmIjoxNTEyNDgxODAxLCJqdGkiOiIxSFZkbVJnY3hPbjU2MFQ1In0.LeDh7G38FsYXhIr2FS4I64rlfS-6d1u4GB7UOSZNk_k&company_ids=1743&user_search_string=cisco&search_result_filter=resultTypeAll&title_keyword=ceo&Title_array&country_code=US&State_array=&cityPostal=&range=5&Area_Codes=&Industry_Codes=&SIC_Codes=&company_description_string&news_date_from=2017-11-13&news_date_to=2017-11-13&news_category_source=&currently_hiring_title=&hiring_date=&SoftwareHardware_array=&technology_uses_text=&FilterEmployee=all,1,2,3,4,5,6,7,8,9,10,11,12&FilterRevenue=all,1,2,3,4,5,6,7,8,9,10,11,12&email_filter=peopleResultsEmails&suppression_filter=suppressed_no&exportedResults=exported_yes&companyResults=companyResultsAll&linkedinResult=linkedin_no&has_direct_dialResults=has_direct_dial_no&since_date=&start_date=&default_sort_by=yearlyRevDesc&page=1&sub_account_email=subaccount411@lead411.net",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Search API using parameter
https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTE3ODk2MDQsImV4cCI6MTUxMjA0ODgwNCwibmJmIjoxNTExNzg5NjA0LCJqdGkiOiJuN01KbFNkOExibkVNSE1kIn0.NI-nzlzhZ4vgM-pLC23nq_Va_XJS4hYvqWBJ2S7vYLo&company_ids=1743&user_search_string=cisco&search_result_filter=resultTypeAll&title_keyword=ceo&Title_array=&country_code=US&State_array=IL,IN&cityPostal=95001,95134&range=5&Area_Codes=201&Industry_Codes=159&SIC_Codes=301,4011&company_description_string=&news_date_from=2017-11-13&news_date_to=2017-11-13&news_category_source=-1&currently_hiring_title=ceo&hiring_date=2017-10-13&SoftwareHardware_array=62_ot&technology_uses_text=technology_uses_yes&FilterEmployee=all,1,2,3,4,5,6,7,8,9,10,11,12&FilterRevenue=all,1,2,3,4,5,6,7,8,9,10,11,12&email_filter=peopleResultsEmails&suppression_filter=suppressed_no&exportedResults=exported_yes&companyResults=companyResultsAll&linkedinResult=linkedin_no&has_direct_dialResults=has_direct_dial_no&since_date=2017-08-08&start_date=2017-11-23&default_sort_by=yearlyRevDesc&page=1&sub_account_email=subaccount411@lead411.net

Send UX Element data to search the Lead11 database for company or employee records

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTE3ODk2MDQsImV4cCI6MTUxMjA0ODgwNCwibmJmIjoxNTExNzg5NjA0LCJqdGkiOiJuN01KbFNkOExibkVNSE1kIn0.NI-nzlzhZ4vgM-pLC23nq_Va_XJS4hYvqWBJ2S7vYLo
company_ids
1743
user_search_string
cisco
search_result_filter
resultTypeAll
title_keyword
ceo
Title_array
country_code
US
State_array
IL,IN
cityPostal
95001,95134
range
5
Area_Codes
201
Industry_Codes
159
SIC_Codes
301,4011
company_description_string
news_date_from
2017-11-13
news_date_to
2017-11-13
news_category_source
-1
currently_hiring_title
ceo
hiring_date
2017-10-13
SoftwareHardware_array
62_ot
technology_uses_text
technology_uses_yes
FilterEmployee
all,1,2,3,4,5,6,7,8,9,10,11,12
FilterRevenue
all,1,2,3,4,5,6,7,8,9,10,11,12
email_filter
peopleResultsEmails
suppression_filter
suppressed_no
exportedResults
exported_yes
companyResults
companyResultsAll
linkedinResult
linkedin_no
has_direct_dialResults
has_direct_dial_no
since_date
2017-08-08
start_date
2017-11-23
default_sort_by
yearlyRevDesc
page
1
sub_account_email
subaccount411@lead411.net

optional, if available in request then sub_account suppression will be used

BODY



Example Request
Search API using parameter
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTE3ODk2MDQsImV4cCI6MTUxMjA0ODgwNCwibmJmIjoxNTExNzg5NjA0LCJqdGkiOiJuN01KbFNkOExibkVNSE1kIn0.NI-nzlzhZ4vgM-pLC23nq_Va_XJS4hYvqWBJ2S7vYLo&company_ids=1743&user_search_string=cisco&search_result_filter=resultTypeAll&title_keyword=ceo&Title_array=&country_code=US&State_array=IL,IN&cityPostal=95001,95134&range=5&Area_Codes=201&Industry_Codes=159&SIC_Codes=301,4011&company_description_string=&news_date_from=2017-11-13&news_date_to=2017-11-13&news_category_source=-1&currently_hiring_title=ceo&hiring_date=2017-10-13&SoftwareHardware_array=62_ot&technology_uses_text=technology_uses_yes&FilterEmployee=all,1,2,3,4,5,6,7,8,9,10,11,12&FilterRevenue=all,1,2,3,4,5,6,7,8,9,10,11,12&email_filter=peopleResultsEmails&suppression_filter=suppressed_no&exportedResults=exported_yes&companyResults=companyResultsAll&linkedinResult=linkedin_no&has_direct_dialResults=has_direct_dial_no&since_date=2017-08-08&start_date=2017-11-23&default_sort_by=yearlyRevDesc&page=1&sub_account_email=subaccount411@lead411.net",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Search API using json search string
https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTI0ODE4MDEsImV4cCI6MTUxMjc0MTAwMSwibmJmIjoxNTEyNDgxODAxLCJqdGkiOiIxSFZkbVJnY3hPbjU2MFQ1In0.LeDh7G38FsYXhIr2FS4I64rlfS-6d1u4GB7UOSZNk_k&sub_account_email=subaccount411@lead411.net

Send JSON string to search the Lead11 database for company or employee records

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTI0ODE4MDEsImV4cCI6MTUxMjc0MTAwMSwibmJmIjoxNTEyNDgxODAxLCJqdGkiOiIxSFZkbVJnY3hPbjU2MFQ1In0.LeDh7G38FsYXhIr2FS4I64rlfS-6d1u4GB7UOSZNk_k
sub_account_email
subaccount411@lead411.net

optional, if available in request then sub_account suppression will be used

BODY

search_string
{"company_ids":"1743","US_zipcodes":"","range":"5","State_array":"", "Technology_array":"","SoftwareHardware_array":"", "Category_array":"", "Title_array":"", "user_search_string":"cisco","SIC_Codes":"", "Area_Codes":"","Employee_Skills":"","Industry_Codes":"", "FilterRevenue":"all,1,2,3,4,5,6,7,8,9,10,11,12", "FilterEmployee":"all,1,2,3,4,5,6,7,8,9,10,11,12", "FilterLevel":"", "FilterType":"resultTypeAll,companyResultsAll,peopleVerifiedEmails,resultNormal,,,suppressed_no,,linkedin_no,,allcountries,exported_no,has_direct_dial_no,", "Press_event_data":"null#2017-11-13#2017-11-13", "company_description_string":"","title_keyword":"", "product_keyword":"","currently_hiring_title":"","technology_uses_text":"technology_uses_yes"}

json search string for searching data



Example Request
Search API using json search string
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTI0ODE4MDEsImV4cCI6MTUxMjc0MTAwMSwibmJmIjoxNTEyNDgxODAxLCJqdGkiOiIxSFZkbVJnY3hPbjU2MFQ1In0.LeDh7G38FsYXhIr2FS4I64rlfS-6d1u4GB7UOSZNk_k&sub_account_email=subaccount411@lead411.net",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => array('search_string' => '{"company_ids":"1743","US_zipcodes":"","range":"5","State_array":"",
"Technology_array":"","SoftwareHardware_array":"", "Category_array":"", "Title_array":"", "user_search_string":"cisco","SIC_Codes":"", "Area_Codes":"","Employee_Skills":"","Industry_Codes":"", "FilterRevenue":"all,1,2,3,4,5,6,7,8,9,10,11,12", "FilterEmployee":"all,1,2,3,4,5,6,7,8,9,10,11,12", "FilterLevel":"", "FilterType":"resultTypeAll,companyResultsAll,peopleVerifiedEmails,resultNormal,,,suppressed_no,,linkedin_no,,allcountries,exported_no,has_direct_dial_no,", "Press_event_data":"null#2017-11-13#2017-11-13", "company_description_string":"","title_keyword":"",
"product_keyword":"","currently_hiring_title":"","technology_uses_text":"technology_uses_yes"}'),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get Company Details
https://api.lead411.com/v1/company/getCompanyInfo?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&company_id=1762

This API will return all the information regarding company

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY

required user access token

company_id
1762

company id for which api needs to send result

BODY



Example Request
Get Company Details
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/company/getCompanyInfo?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&company_id=1762",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get Company Employees List
https://api.lead411.com/v1/company/getCompanyEmployees?company_id=1762&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&start=0

This apAPIi will return all employees attached to the company for which we are sending request by providing company ID

PARAMS

company_id
1762

company id for which api needs to send result

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY
start
0

Optinal parameter, The OFFSET value allows to specify which row to start from retrieving data

BODY



Example Request
Get Company Employees List
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/company/getCompanyEmployees?company_id=1762&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&start=0",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get Company Employees information
https://api.lead411.com/v1/employee/getEmployeeInformation?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&employee_id=8972869

This API will return employees information for which we are sending request by providing employee ID

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY
employee_id
8972869
BODY



Example Request
Get Company Employees information
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/employee/getEmployeeInformation?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&employee_id=8972869",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Search Employee based on Email
https://api.lead411.com/v1/employee/getEmployeeInformation?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&email=example@lead411.com

This API will return employees information for which we are sending request by providing email address

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY
email
example@lead411.com
BODY



Example Request
Search Employee based on Email
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/employee/getEmployeeInformation?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&email=example@lead411.com",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Search into Company Employees list
https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&company_id=1762&search_name=Patterson

Filter company Employee Result based on name, title, dept

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec

required user access token

company_id
1762

company id for which api needs to send result

search_name
Patterson

optional parameter to filter the result based on first_name or last_name or title

BODY



Example Request
Search into Company Employees list
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&company_id=1762&search_name=Patterson",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Search Company's Employees using Linkedin URL
https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNDgyLCJpc3MiOiJodHRwczovL2FdswaS5sZWFkNDExLmNvbS92MS9hdXRoZW50aWNhdGVfdXNlciIsImlhdCI6M JuYmYiOjE1NTkxMTc1NTQsImp0aSI6IlR4a3FVZnVJRlJoRdzZDZTcifQ.DMwmzfrCRwBvS811bZmf4URiBWdiDgXr2O7MvBhUoxY&company_id=1762&linkedin_url=linkedin.com/in/acagnetta

Filter company Employee Result based on Employee linked url. Example:

Filter the result based on Employee's Linkedin URL, Pass 'linkedin_url' param value in any of below format

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNDgyLCJpc3MiOiJodHRwczovL2FdswaS5sZWFkNDExLmNvbS92MS9hdXRoZW50aWNhdGVfdXNlciIsImlhdCI6M JuYmYiOjE1NTkxMTc1NTQsImp0aSI6IlR4a3FVZnVJRlJoRdzZDZTcifQ.DMwmzfrCRwBvS811bZmf4URiBWdiDgXr2O7MvBhUoxY

required user access token

company_id
1762

optional param: company id for which api needs to look for specific company's employees

linkedin_url
linkedin.com/in/acagnetta

Filter the result based on Employee's Linkedin URL, you can pass value as https://www.linkedin.com/in/acagnetta or linkedin.com/in/acagnetta or in/acagnetta

BODY



Example Request
Search Company's Employees using Linkedin URL
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNDgyLCJpc3MiOiJodHRwczovL2FdswaS5sZWFkNDExLmNvbS92MS9hdXRoZW50aWNhdGVfdXNlciIsImlhdCI6M%20JuYmYiOjE1NTkxMTc1NTQsImp0aSI6IlR4a3FVZnVJRlJoRdzZDZTcifQ.DMwmzfrCRwBvS811bZmf4URiBWdiDgXr2O7MvBhUoxY&company_id=1762&linkedin_url=linkedin.com/in/acagnetta",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Search Employees using Linkedin URL
https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNDgyLCJpc3MiOiJodHRwczovL2FdswaS5sZWFkNDExLmNvbS92MS9hdXRoZW50aWNhdGVfdXNlciIsImlhdCI6M JuYmYiOjE1NTkxMTc1NTQsImp0aSI6IlR4a3FVZnVJRlJoRdzZDZTcifQ.DMwmzfrCRwBvS811bZmf4URiBWdiDgXr2O7MvBhUoxY&linkedin_url=linkedin.com/in/acagnetta

Filter Employee Result based on Employee linked url. Example:

Filter the result based on Employee's Linkedin URL, Pass 'linkedin_url' param value in any of below format

  • https://www.linkedin.com/in/acagnetta
  • http://www.linkedin.com/in/acagnetta
  • www.linkedin.com/in/acagnetta
  • linkedin.com/in/acagnetta
PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNDgyLCJpc3MiOiJodHRwczovL2FdswaS5sZWFkNDExLmNvbS92MS9hdXRoZW50aWNhdGVfdXNlciIsImlhdCI6M JuYmYiOjE1NTkxMTc1NTQsImp0aSI6IlR4a3FVZnVJRlJoRdzZDZTcifQ.DMwmzfrCRwBvS811bZmf4URiBWdiDgXr2O7MvBhUoxY

required user access token

linkedin_url
linkedin.com/in/acagnetta

Filter the result based on Employee's Linkedin URL, you can pass value as https://www.linkedin.com/in/acagnetta or linkedin.com/in/acagnetta

company_id
1762

optional parameter to filter the result based on company id

BODY



Example Request
Search Employees using Linkedin URL
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNDgyLCJpc3MiOiJodHRwczovL2FdswaS5sZWFkNDExLmNvbS92MS9hdXRoZW50aWNhdGVfdXNlciIsImlhdCI6M%20JuYmYiOjE1NTkxMTc1NTQsImp0aSI6IlR4a3FVZnVJRlJoRdzZDZTcifQ.DMwmzfrCRwBvS811bZmf4URiBWdiDgXr2O7MvBhUoxY&linkedin_url=linkedin.com/in/acagnetta",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Search Company's Employees based on Employees Title
https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OT2ac5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2sdFyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&company_id=1762&search_title=ceo

Search company's cmployees based only on employee title

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OT2ac5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2sdFyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec

required user access token

company_id
1762

company id for which api needs to send result

search_title
ceo

optional parameter to filter the result based on employee title

BODY



Example Request
Search Company's Employees based on Employees Title
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OT2ac5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2sdFyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&company_id=1762&search_title=ceo",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Unlock Employee Data Email and Phone
https://api.lead411.com/v1/employee/unlock_employee_record?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&employee_id=8972869

This API will unlock the employee and return the email and phone if available in the Lead411 DB

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY
employee_id
8972869
BODY



Example Request
Unlock Employee Data Email and Phone
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/employee/unlock_employee_record?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&employee_id=8972869",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Logout and exit
https://api.lead411.com/v1/logout/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY

Logout and delete the generated token

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY
BODY



Example Request
Logout and exit
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/logout/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get UX Element
https://api.lead411.com/v1/get_advance_popup_elements?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjgwMzgwLCJleHAiOjE1MTE1Mzk1ODAsIm5iZiI6MTUxMTI4MDM4MCwianRpIjoiUjU3RzdYaXFhRmlLbWFYaiJ9.lb4JXAPtfCA4hKyTAfFAqi8q9QxqQfxrLczSYiyVBR0

This API will return all required elements which are required to build the Advance Popup UX

In the result, a few elements will return with the values tag having 'dynamic' value in the 'api_call' tag, which means you can get the dynamic data require to display in the dropdown by calling api url mentioned in 'api_call'

Data returned in response are used to create the Collection of HTML elements which is further used to send to Lead411 search API  after filling required valid data where ever possible or required. (for search string JSON, please check search API document)

Just place the element values in search string JSON's appropriate position and hit the search API URL with filled search string JSON and the search API will validate the data and match using those filled element data within the Lead411 database and return the records matches as per filled data provided in request.

Let's first undersntand how to build the UX as follows:

This API's returned response will contains around 25 elements to build the UX and each of the element having its own essential role to get the 'company and/or people' result from Lead411 database using search API.

Lets start with basic and most important element of UX i.e. user_search_string and also we will get to know how to use this JSON snippet to build HTML element for front end:

Snipped captured from JSON response:

{
"advance_feature_popup_elements":

{

"user_search_string": {
"display_name": "Company or Person",
"input_type": "text",
"values": {
"rules": "none"
},
"default_value": "",
"maxlength": "255",
"minlength": "0"
},

As this element is 'user_search_string' and the same tag will be there in JSON search string as well, which needs to be filled in for search API request hit or can be send using form element or parameter to API request. So it's upto the user to fill the search string or send these as a parameter. Lets understand its child element tags as follows:

display_name :This repersents the label to be shown for the element or can be used for the placeholder of the element. So in this case it would be "Company or Person".

input_type: This repersents which type of the HTML element is required to build, it can be text input filed, dropdown/selectbox, radio, date, slider. Its upto the customer if they want to change it to some other element but on search string you have to fill the data which make sense as per given input type in response. In this case, it would be text inpur field.

rules: Rules mentioned here are restrictions that apply before sending or filling its input value in the search string. It can be :

none: meaning anything can be fill

1 or 2 or n : Minimum char required to fill before filling json.

Leave empty for all: meaning it will take every possible value in consideration so not required to fill out if you with to.

default_value: As name suggest , so this is default value which would be considered if you don't fill anything in JSON search string.

maxlength: maximum length of the input type.

minlength: minmum length of the input type.

As we have covered all the tags , now is the time to build the HTML element code based on these values.

<input type="text" placeholder="Company or Person" value=""/>

so this will be the result of above provided snippet

 

 

 

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjgwMzgwLCJleHAiOjE1MTE1Mzk1ODAsIm5iZiI6MTUxMTI4MDM4MCwianRpIjoiUjU3RzdYaXFhRmlLbWFYaiJ9.lb4JXAPtfCA4hKyTAfFAqi8q9QxqQfxrLczSYiyVBR0
BODY



Example Request
Get UX Element
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/get_advance_popup_elements?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjgwMzgwLCJleHAiOjE1MTE1Mzk1ODAsIm5iZiI6MTUxMTI4MDM4MCwianRpIjoiUjU3RzdYaXFhRmlLbWFYaiJ9.lb4JXAPtfCA4hKyTAfFAqi8q9QxqQfxrLczSYiyVBR0",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get Title From DB
https://api.lead411.com/v1/search/searchTitleData?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=ceo&filterIds=300,9,40&existingIds=12,232,300

This API will return title to build Title Element on Advance UX popup

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec
search_keyword
ceo

optional paramter to search in to title colletion

filterIds
300,9,40

optional paramter to exlude from the title result

existingIds
12,232,300

optional paramter to include only title matching passed ids

BODY



Example Request
Get Title From DB
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/search/searchTitleData?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=ceo&filterIds=300,9,40&existingIds=12,232,300",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get Area Code From DB
https://api.lead411.com/v1/search/searchAreaCode?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=cal&filterIds=818&existingIds=403

This apAPIi will return area code to build AreaCode Element on Advance UX popup

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec
search_keyword
cal

optional paramter to search in to AreaCode colletion

filterIds
818

optional paramter to exlude from the AreaCoderesult

existingIds
403

optional paramter to include only search matching passed ids

BODY



Example Request
Get Area Code From DB
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/search/searchAreaCode?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=cal&filterIds=818&existingIds=403",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get Zip Code From DB
https://api.lead411.com/v1/search/searchZipCode?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=cal&filterIds=04619&existingIds=04619&country_code=US

This API will return zip code to build ZipCode Element on Advance UX popup

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec
search_keyword
cal

optional paramter to search in to ZipCode colletion

filterIds
04619

optional paramter to exlude from the ZipCode result

existingIds
04619

optional paramter to include only search matching passed ids

country_code
US

optional paramter , default set to US

BODY



Example Request
Get Zip Code From DB
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/search/searchZipCode?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=cal&filterIds=04619&existingIds=04619&country_code=US",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get Region From DB
https://api.lead411.com/v1/search/searchRegion?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=cal&filterIds=CA&existingIds=CA

This API will return region code to build RegionCode Element on Advance UX popup

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec
search_keyword
cal

optional paramter to search in to ZipCode colletion

filterIds
CA

optional paramter to exlude from the ZipCode result

existingIds
CA

optional paramter to include only search matching passed ids

BODY



Example Request
Get Region From DB
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/search/searchRegion?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=cal&filterIds=CA&existingIds=CA",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get SoftwareHardware From DB
https://api.lead411.com/v1/search/searchSoftwareHardware?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=IT&filterIds=14807_it,21891_it&existingIds=21891_it

This API will return software and hardware data to build Software/Hardware Element on Advance UX popup

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec
search_keyword
IT

optional paramter to search in to SoftwareHardware colletion

filterIds
14807_it,21891_it

optional paramter to exlude from the SoftwareHardware result

existingIds
21891_it

optional paramter to include only search matching passed ids

BODY



Example Request
Get SoftwareHardware From DB
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/search/searchSoftwareHardware?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=IT&filterIds=14807_it,21891_it&existingIds=21891_it",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get Search SIC code From DB
https://api.lead411.com/v1/search/searchSic?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=Wheat&filterIds=01110000&existingIds=0111

This API will return SIC code to build Search SIC Element on Advance UX popup

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec
search_keyword
Wheat

optional paramter to search in to SoftwareHardware colletion

filterIds
01110000

optional paramter to exlude from the SoftwareHardware result

existingIds
0111

optional paramter to include only search matching passed ids

BODY



Example Request
Get Search SIC code From DB
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/search/searchSic?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=Wheat&filterIds=01110000&existingIds=0111",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get Industry Data
https://api.lead411.com/v1/search/getIndustryData?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec

This API will return industry data to build Industry Dropdown Element on Advance UX popup

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec
BODY



Example Request
Get Industry Data
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/search/getIndustryData?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Get News Category Data
https://api.lead411.com/v1/search/getNewsCategoryData?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec

This API will return the News Category data to build News Category Dropdown Element on Advance UX popup

PARAMS

token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec
BODY



Example Request
Get News Category Data
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/search/getNewsCategoryData?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>
POST Stripe Test
https://api.lead411.com/v1/stripe/stripe_test?stripe_customer_id=customer id of user&auth_test_code=test
PARAMS

stripe_customer_id
customer id of user
auth_test_code
test
BODY



Example Request
Stripe Test
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.lead411.com/v1/stripe/stripe_test?stripe_customer_id=customer%20id%20of%20user&auth_test_code=test",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
} ?>