Skip to main content

Widget and Form Leads

This document defines the schema and bucket structure for lead integrations with SearchLight. For S3 setup, file format, and access steps see the overview.

Bucket Key Structure

/standard-lead/{account}/{YYYY-MM-DD}/{filename}.json.gz

Example: standard-lead/example-plumber/2026-02-19/leads_bort.json.gz


Schema

FieldTypeRequiredDescriptionExample
idstringrequiredMust be unique per conversion per account"12345"
datetimestring (ISO 8601)requiredTimestamp in UTC"2026-02-19T16:47:48.577Z"
typestringrequiredType of lead conversion"chat", "form", "call"
phone_numberstringrequiredCustomer phone number with area code"123-456-7891"
customer_namestringrequiredFull name of the customer"John Doe"
emailstringrequiredCustomer email address"example@email.com"
contentstringrequiredPlain text transcript or form content. Newlines allowed"Need a new furnace\nNo problem"
referrer_urlstringrequiredFull referrer URL as received"https://www.google.com/"
landing_page_urlstringrequiredFull landing page URL as received"https://exampleplumber.com/?gclid=..."
addressstringoptionalCustomer address"123 Main St, Austin, Texas"
zipcodenumberoptionalCustomer ZIP code12345
agentstringoptionalName or identifier of the agent or CSR"John Doe"
costfloatoptionalCost of the lead if applicable27.34