1. Home
  2. Integrations
  3. Lead Import API Field Reference
  1. Home
  2. Plugin, Widgets and Website Settings
  3. Advanced Widgets
  4. Lead Import API Field Reference

Lead Import API Field Reference

Supported fields for lead import can be used with all three general import methods
NOTE These fields and values should not be used with widgets or on websites as filters etc.

  1. Form Submit
    Used when any HTML FORM is submitted from a website. (Form Submit)
  2. Email import
    This allows structured emails to be used to import lead data. (Email Import )
  3. API
    This method is typically executed from a system. (Lead Import API)

This support article lists all available fields and their applicability to each import method.

Lead Import Actions

When a lead is imported, these are the key actions that can occur.
Follow the links for these sections to see the fields and values required in each case.
Then add these fields and values to your forms etc.

Mandatory Fields

  • Name of lead as ONE of the following options (depends on method)
    • "name" (full name of lead)
    • or "fname" (first name of lead)
    • or "lname" (last name of lead)
    • or both "fname" and "lname"
  • Additional Mandatory Fields for: Email and API Import
    • Lead Import API Key ("api_key") used to authorize the import to your account.

All other fields are optional.

NOTE: the "Lead Import API Key " for lead import is user-specific and is shown on the Users' Profile tab in User Preferences.

Email Import Template

Click here for a email template with all the fields.

Lead Profile and Contact

Reference NameField NameValuesDescription and Notes
Lead Import IDapi_key{lead-import-id}A User's Lead Import ID that is used to authorize the import to your account
Assigned Websitesite_url{text_string}This is the website the Lead is assigned to when an account has multiple authorized domains. Do NOT include the "www"
siteurl
Email Addressemail{text_string}Email address of lead
Full Namename{text_string}The full name (use this or specify parts).
First Namefname{text_string}First name of lead
first_name
first_nm
Last Namelname{text_string}Last name of lead
last_name
last_nm
Passwordpassword{text_string}If this is NOT included then the password will be auto-generated in the Buying Buddy dashboard when the account is created and will be shown in the 'welcome email' that is sent to the consumer.
Addressaddress{text_string}Street address of lead
Address-2 (e.g. Unit #)address2{text_string}Additional address details of lead
Citycity{text_string}City of lead
Statestate{2-character}2 character state code of lead
Zipzip5 digitsZip code of lead
Primary Phonephonexxx-xxx-xxxxPrimary phone number for the lead
Mobile Phonemobilephonexxx-xxx-xxxxMobile phone of the lead
mobile_phone
Work Phoneworkphonexxx-xxx-xxxxWork Phone of the lead
Home Phonehomephonexxx-xxx-xxxxHome phone of the lead
home_phone

Lead Assignment

This only applies to multi-user accounts.

  • If nothing is specified then the lead is assigned according to the User's Lead Import API Key being used.
  • Or, you may use the parameters below to set Referral IDs (mbbuser), and/or other specific Role Assignments.
  • Or, you may set the parameter to use the Round Robin established in your account.
    With this approach you must use a Lead Import API Key from an Admin user in your account.

mbbuser | assistant | loanofficer | other (optional)
Buying Buddy Referral IDs, where each Referral ID listed must represent a user with a different ROLE (see User Roles)

A multi-user account allows multiple Users (who must have different Roles - Agent, Loan Officer, Asst etc) to be assigned the same lead).

For Example

mbbuser:cd45Tu 
assistant:fg6TYh
  • cd45Tu is the referral ID for Bob Smith.
    Lead will be assigned to Bob Smith as the primary 'Agent' role
  • fg6TYh is referral ID for Jim Jones.
    Lead will be assigned to Jim Jones in the "Assistant" role.
Reference NameField NameValuesDescription and Notes
Agent assignedmbbuser{referral_ID}The Buying Buddy Referral ID is for the primary Agent assigned to the lead.
mbbagent
Assistant assignedassistant{referral_ID}The Buying Buddy Referral ID is the Referral ID is for the user to have the Assistant role.
Loan Officer assignedloanofficer{referral_ID}The Buying Buddy Referral ID is for the user to have the Loan Officer role.
Other assignedother{referral_ID}The Buying Buddy Referral ID is for the user to have the Other role.
Round Robin distributionround_robin0 | 1Numeric value: Set to "1" if this method is to be used for lead assignment. If set, then assignment of the lead will be processed by the round robin system and mbbuser value, and the Lead Import ID and User Referral ID used for assignment will be ignored.

Marketing Tracking

Reference NameField NameValuesDescription and Notes
Sign Up Page URLsource_url{text_string}URL of the domain or page the lead registered on
Campaign Sourcead_campaign{text_string}Name of your (advertising) campaign that originated the lead *NO SPACES ALLOWED*. This parameter is designed to help track sources of traffic.

Note: Search for leads matching Campaign Source using the Lead Advanced Search form. The Campaign Source is shown on the Lead Profile panel under Registration Summary.

Inquiry Details

Reference NameField NameValuesDescription and Notes
Inquiry Subjectrequest_subject{text_string}This is used if there was a request or form submitted.
form_nm
Inquiry Detailsrequest_details{text_string}The information submitted in a form or information about the inquiry
Task Statusrequest_status0 | 10 (default) creates a "due" task showing in the "Tasks" tab. If you make this "1" it will be marked complete.
Task Duerequest_due{integer}Number of days. How many days in future this task will be due. If a future period is not specified then the period is zero and the task will be due today.
Notes (history)notes{text_string}Creates a note in the "Note" tab
Profile Commentscomments{text_string}Sticky Comments on the Lead Profile tab

Lead Profiling

Reference NameField nameValuesDescription and Notes
Star Ratingrating1 | 2 | 3 | 4 | 5Set this to be the STAR rating for this lead. Values can be one of: 1 (default),2,3,4,5
Category IDcategory{id_number}Set to be a Category ID established in your account, e.g. "126" or "126,467"
Tagstags{text_string}Comma separated list of tag keywords to be applied to lead
Buyer Statusbuyer_status1 | 2 | 3 | 4 | 51=Now, 2=Within three months, 3= Three to Six Months, 4=Six to Twelve months, 5= More than a year
Mortgage Statusmortgage_status1 | 2 | 31=Need one, 2=Prequalified, 3=None
Agent Agreementagent_status0 | 1 0=Not sure or does not have an agent agreement in place, 1=Does have agent agreement in place

Lead Processing

Reference NameField NameValuesDescription and Notes
Match to Existingmatch_existingfalse | trueIf "true", this ONLY imports if the lead already exists, i.e. if "true" then this will not import unless this lead is already in the account. Consequently, if set to "true", then leads are never created - existing leads are only updated with additional notes, inquiries and comments for a lead.
Welcome Emailwelcome_emailfalse | true0 / false =Don't send welcome email (default), 1 / true =Send welcome email **IMPORTANT** The "Welcome email" is the standard system 'auto-responder" email which cannot be changed. To send a specific single email as your immediate follow up email, you should create an email template and use the option to "Send Additional Email"
welcome_email0 | 1
Send Additional Emailtemplate_id{template_id}Buying Buddy email Template ID to be sent to the lead immediately (can be applied as-well-as, or instead-of Welcome email)
Campaign for New Leadcampaign_id{campaign_id}Buying Buddy Campaign ID to assign to NEW lead. If no campaign ID is specified, no campaign will be assigned.
campaign (email)
Campaign for Existing Leadcampaign_existing{campaign_id}Buying Buddy Campaign ID to assign to an EXISTING lead. If no campaign ID is specified, no campaign will be assigned.
Campaign is to be the only Campaignonly_campaign0 | 1Numeric value: 0= allow multiple campaigns (default), 1=Delete all other campaigns

Create Property Alerts

Reference NameField NameValuesDescription and Notes
Save Searchsave_custom_search1Setting "1" will create a "Just Listed Property Alert" for the lead based on the MLS criteria that must also be submitted in the Form.
Name of Searchsaved_search_nm{text_string}This option allows you to give the saved search/alert a name. {name_of_search} = any text string. If not specified, the search alert name will be "First Saved Search".
Frequency of Alertfrequencyinstant | daily | weekly | monthlyThis option allows you to set the frequency of the alert. {frequency} = instant | daily | weekly | monthly. The default value if not specified is "daily".
saved_search_frequency
Duration of Alertduration1 to 18This option allows you to set the duration of the alert in months - i.e. how many months the alert executes. {months} = any number, from 1 to 18. The default value is 6.
saved_search_duration
End Date (alternative)end_dtmm-dd-yyAlternative. Specify an actual end date INSTEAD of "duration"
saved_search_end_dt
Buying Buddy MLS ID*mls_id{your_BB_mlsid}**IMPORTANT** mls_id is required. The Buying Buddy defined "mls_id" for your MLS Use the Widget Wizards to identify the value for your MLS.
For Email import DO NOT specify as a standalone field, instead you must include the mls_id as part of the filter - see below.
MLS Criteria(various) Specify MLS criteria using field NAME and VALUEs. for example, to submit a minimum price of $1million... <input type="hidden" name="price_min" value="1000000"> Use the Widget Wizards to identify the correct field names and values to use for your MLS.
saved_search_filter Specify a normal search filter. For example, to submit a minimum price of $1million... mls_id:tx492+price_min:1000000. Use the Widget Wizards to create a filter.

Updated on July 30, 2025
Was this article helpful?

Related Articles

Buying Buddy Support