Lead

Create a Lead

POST /v1/leads

Body Parameters

The request has the following parameters in body:

ParameterDescription
nameThe name of the leadRequired
emailThe email of the leadRequired
phoneThe phone of the leadOptional
broker_channel_idThe ID of the broker productOptional
broker_product_idThe ID of the broker productOptional
{
  "name": "string",
  "email": "string",
  "phone": "string",
  "broker_channel_id": "string",
  "broker_product_id": "string"
}
Response

The above request returns JSON structured like this:

ParameterDescription
idThe ID of the lead
{
  "id": "string"
}

List Leads

GET /v1/leads

URL Parameters
ParameterDescription
rowsA limit of objects to be returned, between 1 and 100 itemsOptional
pageThe page for the list of objects to returnOptional
cursorThe cursor of the current page list of objectsOptional
Response

The above request returns JSON structured like this:

ParameterDescription
totalThe total of items
items.idThe ID of the lead
items.nameThe name of the lead
items.emailThe email of the lead
items.phoneThe phone of the lead
items.broker_channel_idThe ID of the broker product
items.broker_product_idThe ID of the broker product
{
  "total": 0,
  "items": [
    {
      "id": "string",
      "name": "string",
      "email": "string",
      "phone": "string",
      "broker_channel_id": "string",
      "broker_product_id": "string"
    }
  ]
}