Lead Import API Guide

Overview

The Lead Import API lets you send lead data directly to your Buying Buddy CRM database.

Use your personal Lead Import API Key to ensure leads are imported and get added to your account.

Authentication

  • Requires User's Lead Import API Key (find in User Profile)

If you are intending to add leads to Round Robin distribution, use Admin User's Lead Import API Key.

API Endpoint

POST https://www.leadsandcontacts.com/clientapi/lead-import

Available Fields

See the Lead Import-API Field Reference for all available fields

Example Fields:

FieldDescription
api_keyYour Lead Import API Key
emailLead's email address
fnameFirst name
lnameLast name
phonePhone number
request_subjectLead's inquiry subject
request_detailsDetailed message
notesInternal notes
campaign_idAssociated campaign
ratingLead rating
buyer_statusTimeframe/Status
tagsLead tags
welcome_emailSend welcome email (0/1)

Code Examples

PHP Example

$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);

cURL Example

curl -X POST https://www.leadsandcontacts.com/clientapi/lead-import \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "your-lead-import-id",
    "email": "john@example.com",
    "fname": "John",
    "lname": "Smith",
    "phone": "555-0123",
    "request_subject": "Property Inquiry",
    "welcome_email": "0"
  }'

Response

Returns JSON:

{
    "success": true    // or false if request fails
}


Updated on July 16, 2025
Was this article helpful?

Related Articles

Buying Buddy Support