API Reference / LeadService

LeadService

Captures and exports leads generated from ads.

CreateLead

Request

FieldTypeValidationDescription
business_namestringmin_len: 1
first_namestringmin_len: 1
last_namestringmin_len: 1
emailstringemail
zip_codestringmin_len: 1
phone_numberstring
websitestring

Response

FieldTypeDescription
idstringULID of the resource

ListLeads

Request

FieldTypeValidationDescription
pageint32.int32.gte = 0
page_sizeint32

Response

FieldTypeDescription
leadsLead[]
total_resultsint64
pageint32
page_sizeint32

GetLead

Request

FieldTypeValidationDescription
idstringmin_len: 26ULID of the resource

Response

FieldTypeDescription
leadLead
locationsLeadLocation[]

Messages

Lead

FieldTypeDescription
idstringULID of the resource
business_namestring
first_namestring
last_namestring
emailstring
zip_codestring
phone_numberstring
websitestring
enrichment_statusstring
created_attimestamp
location_countint64
image_gathering_statusstring
selected_logoLeadImage
selected_bannerLeadImage

LeadImage

FieldTypeDescription
idstringULID of the resource
image_kindstring
source_urlstring
page_urlstring
created_attimestamp

LeadLocation

FieldTypeDescription
idstringULID of the resource
street_addressstring
citystring
statestring
zipstring
phonestring
created_attimestamp