Add Lead - POST API

Article Contents

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 Import-API Key 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 an Import-API Key from the main admin / account User.

The LAC accepts a POST to the following URL

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" => $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 = '';
$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);

Updated on November 4, 2021

Was this article helpful?

Related Articles

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