Skip to main content

Lead

Stored in the leads collection. createdAt and updatedAt are maintained automatically.

Returned by DELETE /lead, POST /lead, GET /lead/:id, PUT /lead/:id.

FieldTypeNotes
fieldsobject[]default []
fields._idObjectId -> CustomFieldrequired
fields.valueany
customFieldsMapmapdefault {}
formIdObjectId
pageIdObjectId
leadIdstring
sourcestringone of Bulk Import, Offline, Facebook, Website, AI Generated, Instagram, Whatsapp, SMS and 5 more
sourceIdObjectId
importIdObjectId[] -> Importdefault []
importSnapshotobject[]default []
importSnapshot.importObjectId
importSnapshot.fileNamestring
contactObjectId -> Contactrequired
contactSnapshotobject
contactSnapshot.contactObjectId
contactSnapshot.namestring
contactSnapshot.emailstring
contactSnapshot.contactNumber.countryCodestring
contactSnapshot.contactNumber.numberstring
contactSnapshot.fullContactNumberstring
productServicesObjectId[] -> ProductServicedefault []
productServicesSnapshotobject[]default []
productServicesSnapshot.productServiceObjectId
productServicesSnapshot.namestring
statusstringdefault Warm · one of Hot, Warm, Cold
stagestringdefault New · one of New, Contacted, Follow-up Required, Qualified, Interested, Proposal Sent, Negotiation, Won and 3 more
prioritystringdefault Low · one of High, Medium, Low
enquiryAtdatedefault now
companyObjectId -> Company
ad_idstring
ad_namestring
adset_idstring
adset_namestring
campaignNamestring
campaignIdstring
utmUrlstring
utmCampaignIdstring
utmCampaignNamestring
utmSourcestring
utmMediumstring
utmCampaignstring
utmTermstring
utmContentstring
notesstring
searchTextstring
teamObjectId -> Team
teamSnapshotobject
teamSnapshot.teamObjectId
teamSnapshot.namestring
teamSnapshot.colorstring
teamMemberObjectId -> Member
teamMemberSnapshotobject
teamMemberSnapshot.memberObjectId
teamMemberSnapshot.namestring
teamMemberSnapshot.emailstring
contactCreatedByObjectId -> Member
createdByObjectId -> Member
createdBySnapshotobject
createdBySnapshot.memberObjectId
createdBySnapshot.namestring
createdBySnapshot.emailstring
updatedByObjectId -> Member
updatedBySnapshotobject
updatedBySnapshot.memberObjectId
updatedBySnapshot.namestring
updatedBySnapshot.emailstring
isDeletedbooleandefault false
isRestoredbooleandefault false
restoredAtdate
seperateDeletedbooleandefault false
aiGeneratedbooleandefault false
leadGeneratorConfigIdObjectId -> LeadGeneratorConfig
genieSchedulerIdObjectId -> GenieScheduler
enrichmentStatusstringone of queued, processing, completed, failed
enrichmentRequestedAtdate
enrichmentDoneAtdate
enrichmentCountnumberdefault 0
enrichmentHistoryobject[]default []
enrichmentHistory.statusstringdefault queued · one of queued, processing, completed, failed
enrichmentHistory.requestedAtdatedefault now
enrichmentHistory.startedAtdatedefault null
enrichmentHistory.doneAtdatedefault null
enrichmentHistory.contactObjectId -> Contactdefault null
enrichmentHistory.sourcestringdefault manual
enrichmentHistory.changedFieldsstring[]default []
enrichmentHistory.errorstringdefault ""
enrichmentHistory._idObjectIddefault "6a95712f932657988a91c09c"
enrichmentHistory.createdAtdateset once
enrichmentHistory.updatedAtdate
_idObjectIddefault "6a95712f932657988a91c09d"
createdAtdateset once
updatedAtdate