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.]

NOTE: Lead Import-API keys are user-specific and are shown on the Profile tab in User Preferences.
If you wish to post lead data for your account (e.g. for use with Round Robin), you should use a a Lead Import-API key from the main admin / account User.

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
See the Lead Import-API Field Reference for all available fields

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" => $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);
curl_close($ch);

Admin