Add Lead - POST API

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 Lead Import ID is user-specific and is shown in: CRM Settings > Lead Import Settings.

If you wish to post lead data for your account (e.g. for use with Round Robin), you should use a Lead Import ID 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" => $lead_import_id,
    "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);


Updated on December 28, 2023

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support
Buying Buddy Support