This user-specific API is designed for you to use in your own code.
The API creates a one-way specific post of information to the LAC database. The precursor events and post-api events will also need to be part of your own code.
The LAC accepts a POST to the following URL https://www.leadsandcontacts.com/clientapi/lead-import
The API key will identify the user to the LAC and the API will not accept connections without the key.
The response will be a JSON response, one of:
- success = true
- success = false
CURL Post Example
The following example code shows how a set of CURL instructions could be setup to post the API.
This is for reference only.
**2017. This is now updated to reflect SSL.
$postFields = array(
"api_key" => $import_api_key,
"email" => $email,
"fname" => $firstname,
"lname" => $lastname,
"phone" => $phone,
"request_subject" => $request,
"request_details" => $message,
"notes" => 'some notes',
"campaign_id" => $campaign,
"rating" => $lead_rating,
"buyer_status" => $timeframe,
"tags" => $tags,
"welcome_email" => "0"
$url = 'https://www.leadsandcontacts.com/clientapi/lead-import';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);