Lead Request Object

Reference documentation for the Lead Request object, outlining all supported fields, data types, and constraints used when creating leads through the ClosingDealz API.

Table of Contents

Lead Request Object

The Lead Request Object defines the structure used when creating leads through the ClosingDealz API.

A lead represents either:

  • A company lead, or
  • A contact lead

This object supports rich contact data, company grouping, labels, and multiple associated contacts.

Lead Record Fields

This section outlines the fields available for creating or updating a lead in the ClosingDealz CRM via the API. Each field includes its expected data type, whether it is required or optional, and any specific constraints.

Lead-Level Fields

Field NameData TypeDescriptionConstraints
IsContactbooleanDetermines the lead type. When false, the lead represents a company. When true, the lead represents a contact.Required
EmployeeCountintegerNumber of employees associated with the company lead.Optional. Range: 0–5,000,000
CompanyIdUUIDLinks the lead to an existing company record.Optional
Labelsstring[]Labels applied to the lead for categorization and filtering.Optional. Max length per label: 64 characters
ContactsCreateContactRequest[]Additional contacts associated with the lead.Optional

Contact Fields (Inherited)

The Lead Request Object inherits all fields from the Contact Request Object. These fields can be used directly on the lead or inside the Contacts array.

Contact Record Fields

Field NameData TypeDescriptionConstraints
ContactIdUUIDReferences an existing contact record.Optional
NamestringFirst name of the contact.Optional. Max length: 256
LastNamestringLast name of the contact.Optional. Max length: 256
IndustrystringIndustry associated with the contact or company.Optional. Max length: 256
RolestringJob title or role of the contact.Optional. Max length: 256
SocialsContactSocial[]Social or web profiles linked to the contact.Optional
EmailsContactEmailAddress[]Email addresses associated with the contact.Optional
PhoneNumbersContactPhoneNumber[]Phone numbers associated with the contact.Optional
AddressesContactAddress[]Physical or mailing addresses for the contact.Optional
DescriptionstringNotes or additional context about the lead or contact.Optional. Max length: 6942
InterestLevelenum (InterestLevel)Indicates the lead’s interest level.Optional
DateAcquireddatetimeDate the contact or lead was acquired.Optional

Contact Email Address Record Fields

Field NameData TypeDescriptionConstraints
AddressstringEmail address value.Max length: 124
Typeenum (ContactPurposeType)Purpose of the email address (e.g. Home, Work).Optional

Contact Phone Number Record Fields

Field NameData TypeDescriptionConstraints
NumberstringPhone number value.Max length: 64
Typeenum (ContactPhoneType)Type of phone number (e.g. Mobile, Work, Direct).Optional

Contact Social Record Fields

Field NameData TypeDescriptionConstraints
ValuestringSocial profile URL or identifier.Max length: 512
Typeenum (ContactSocialType)Platform type (e.g. LinkedIn, Twitter, Website).Optional
PurposeTypeenum (ContactPurposeType)Intended purpose of the social profile (e.g. Work, Home).Optional

Contact Address Record Fields

Field NameData TypeDescriptionConstraints
AddressstringStreet or address line.Max length: 512
CitystringCity name.Max length: 256
StatestringState or region.Max length: 256
PostalCodestringPostal or ZIP code.Max length: 256
CountrystringCountry name.Max length: 256
Typeenum (ContactAddressType)Address type (e.g. Office, Billing, Shipping).Optional

ContactPurposeType

Defines the purpose of a contact detail such as an email address or social profile.

ValueDescription
NoneNo specific purpose defined.
HomePersonal or home-related contact detail.
WorkWork or business-related contact detail.

ContactPhoneType

Defines the type of a phone number.

ValueDescription
NoneNo specific phone type defined.
HomeHome phone number.
WorkWork phone number.
MobileMobile or cell phone number.
DirectDirect line phone number.
FaxFax number.

ContactSocialType

Defines the platform or type of a social or web profile.

ValueDescription
WebsitePersonal or company website.
LinkedInLinkedIn profile.
TwitterTwitter (X) profile.
InstagramInstagram profile.
FacebookFacebook profile.
YoutubeYouTube channel or profile.
TiktokTikTok profile.
TelegramTelegram account or channel.
DiscordDiscord profile or server.
BlogBlog or personal writing site.
GithubGitHub profile or repository.
PinterestPinterest profile.

ContactAddressType

Defines the purpose of a physical or mailing address.

ValueDescription
NoneNo specific address type defined.
HomeResidential or home address.
PostalPostal or mailing address.
OfficeOffice or workplace address.
BillingBilling address used for invoices.
ShippingShipping or delivery address.

InterestLevel

Represents the level of interest or qualification status of a lead or contact.

ValueDescription
UnknownInterest level has not been determined yet.
PotentialShows early potential but not yet qualified.
BadFitNot a good fit for the business or offering.
QualifiedMeets qualification criteria and is sales-ready.
InterestedActively interested in the product or service.
NotInterestedExplicitly indicated no interest.
CanceledLead or opportunity was canceled or dropped.

Multiple Contacts & Company Grouping

  • A single lead can include multiple contacts
  • When multiple contacts share the same company, they are grouped under the same company lead
  • This allows one company record to contain several decision-makers or stakeholders

Example Json Payloads

Creating 1 company with 1 contact:

[
  {
    "IsContact": false,
    "Name": "BrightPeak Solutions",
    "Industry": "Marketing Services",
    "EmployeeCount": 42,
    "Labels": ["Inbound", "Qualified"],
    "Description": "Inbound lead from website chatbot",
    "Contacts": [
      {
        "Name": "Alex",
        "LastName": "Morgan",
        "Role": "Head of Growth",
        "InterestLevel": "Interested",
        "Emails": [
          {
            "Address": "alex.morgan@brightpeak.io",
            "Type": "Work"
          }
        ],
        "PhoneNumbers": [
          {
            "Number": "+1-555-204-7789",
            "Type": "Mobile"
          }
        ],
        "Socials": [
          {
            "Value": "https://www.linkedin.com/in/alex-morgan-brightpeak",
            "Type": "LinkedIn",
            "PurposeType": "Work"
          }
        ],
        "Addresses": [
          {
            "Address": "421 Market Street",
            "City": "San Francisco",
            "State": "CA",
            "PostalCode": "94105",
            "Country": "USA",
            "Type": "Office"
          }
        ],
        "Description": "Primary decision maker for marketing software"
      }
    ]
  }
]

Creating 1 company with 2 contacts

[
  {
    "IsContact": false,
    "Name": "Northline Systems",
    "Industry": "SaaS",
    "Labels": ["Inbound"],
    "Contacts": [
      {
        "Name": "Emma",
        "LastName": "Reed",
        "Role": "Founder",
        "Emails": [
          {
            "Address": "emma@northline.io",
            "Type": "Work"
          }
        ]
      },
      {
        "Name": "Daniel",
        "LastName": "Kerr",
        "Role": "Operations Manager",
        "Emails": [
          {
            "Address": "daniel@northline.io",
            "Type": "Work"
          }
        ]
      }
    ]
  }
]

Creating 2 companies (no contacts attached)

[
  {
    "IsContact": false,
    "Name": "Bluewave Consulting",
    "Industry": "Business Consulting",
    "Labels": ["Imported"]
  },
  {
    "IsContact": false,
    "Name": "Atlas Digital",
    "Industry": "Web Development",
    "Labels": ["Inbound"]
  }
]

Creating 2 standalone contacts (no company)

[
  {
    "IsContact": true,
    "Name": "Sofia",
    "LastName": "Nilsson",
    "Role": "Marketing Lead",
    "Emails": [
      {
        "Address": "sofia.nilsson@example.com",
        "Type": "Work"
      }
    ]
  },
  {
    "IsContact": true,
    "Name": "Liam",
    "LastName": "Berg",
    "Role": "Sales Manager",
    "Emails": [
      {
        "Address": "liam.berg@example.com",
        "Type": "Work"
      }
    ]
  }
]