Endpoints for lead creation

These API endpoints create new leads for various queues/niches in the system.

Lead type / niche / queue Endpoint Request Body
Auto https://borbolla-endpoints-717635562383.us-central1.run.app/auto `{
"type": string // "AUTO",
"event": string // "lead_created",
"lead": {
"firstName": string // "John",
"lastName": string // "Doe Test II",
"email": string // "[[email protected]](<mailto:[email protected]>)",
"phone": string // "+12249990016",
"address": {
  "zip": string // "",
  "city": string // "",
  "state": string // "Florida",
  "country": string // "",
  "street1": string // "",
  "street2": string // ""
}

} }| | Home |https://borbolla-endpoints-717635562383.us-central1.run.app/home|{ "type": string // "HOME", "event": string // "lead_created", "lead": { "firstName": string // "John", "lastName": string // "Doe Test II", "email": string // "[email protected]", "phone": string (e.164) // "+12249990016", "address": { "zip": string // "", "city": string // "", "state": string // "Florida", "country": string // "", "street1": string // "", "street2": string // "" } } }| | Archive |https://us-central1-insurance-agent-usa.cloudfunctions.net/archiveLeadForAgent|{ "customData": { "lead_phone_number": string (e.164) // "+12411234567" } }` |

Endpoints for lead archive

This API endpoint archives any lead.

Archive endpoint Endpoint Request Body
Archive https://us-central1-insurance-agent-usa.cloudfunctions.net/archiveLeadForAgent `{
"**customData"**: {
    "lead_phone_number": string (e.164) // "+12411234567"
}

}` |

Request Parameters

Request Body

Send a JSON payload with the following fields in the lead object:

Field Type Required Description
firstName string Yes Lead's first name
lastName string No Lead's last name
email string No Lead's email address
phone string Yes Phone number (E.164 format)
address object No Lead's address

Data Validation

Phone Number Validation

Duplicate Prevention