Fetch List of Leads in Lead List

This API allows you to fetch list of leads in lead list.

Sample Request

curl --request GET \
     --url https://api-smartflo.tatateleservices.com/v1/broadcast/leads/id \
     --header 'accept: application/json'

📘 Important!

Before we begin, note that the * sign denotes the mandatory variables in each table.

Request Variables (Path Params)

The following parameter is required to fetch list of leads in lead list:

Variable NameDescriptionData Type
idUnique ID of the broadcast List to which the lead corresponds toString

Sample Response

[
  {
    "id": "6054635a16a4a70b3041ea09",
    "lead_id": "6054635a16a4a70b3041ea09",
    "list_id": 8668,
    "field_0": "+918375992071",
    "field_1": "Ramneek",
    "field_2": "[email protected]",
    "field_3": "Delhi",
    "field_4": "TATA",
    "field_5": "",
    "field_6": "689",
    "field_7": "Cloud",
    "field_8": "",
    "field_9": "",
    "field_10": "",
    "field_11": "",
    "field_12": "",
    "field_13": "",
    "field_14": "",
    "field_15": "",
    "field_16": "",
    "field_17": "",
    "field_18": "",
    "field_19": "",
    "field_20": "",
    "field_21": "",
    "field_22": "",
    "field_23": "",
    "field_24": "",
    "field_25": "",
    "field_26": "",
    "field_27": "",
    "field_28": "",
    "field_29": "",
    "field_30": "",
    "field_31": "",
    "field_32": "",
    "field_33": "",
    "field_34": "",
    "skill_id": null,
    "time_group": null,
    "added_by": 4753,
    "created_by": 4753,
    "dial_status": 1,
    "lead_picked": 0,
    "available_at": {
      "$date": {
        "$numberLong": "1696428233000"
      }
    },
    "dialer_dial_status": 0,
    "created_at": {
      "$date": {
        "$numberLong": "1616099994000"
      }
    },
    "undisposed_lead": false,
    "call_count": 0,
    "updated_at": {
      "$date": {
        "$numberLong": "1696428233000"
      }
    },
    "retry_count": 0,
    "alternate_phone_number": "",
    "priority": 1,
    "list_name": "Dialer dynamic field list",
    "header": "[\"Phone Number\",\"Name\",\"Email Id\",\"Address\",\"Company Name\",\"Alternate Phone Number\",\"DOB\",\"Credit Score\",\"Nature of Business\"]",
    "sensitive_field_map": "[5,6,7]",
    "dialer_skill": null
  },

Response Variables

The response returned is as following:

Variable NameDescriptionData Type
idUnique ID of the broadcast List to which the lead corresponds toString
lead_idUnique ID of the LeadInteger
list_idUnique ID of the Broadcast List the lead corresponds toInteger
field_0Phone Number of the LeadString
field_1Name for the LeadString
field_2Email of the LeadString
field_3Address for the LeadString
field_4Company Name of the LeadString
field_5Custom Field.String
field_6Custom Field.String
skill_idUnique ID of the skill assigned to the lead.Integer
time_groupUnique ID of the time group assigned to the lead.Integer
added_byUnique ID of the client.Integer
created_byUnique ID of the client.Integer
dial_statusStatus of the lead. For example: "1" => "New", "2" => "Message Played" , "3" => "DTMF Pressed", "4" => "No Answer", "5" => "DND", "6" => "Busy", "7" => "Congestion", "8" => "Failed", "9" => "Account DND".Integer
lead_pickedWhether the call is answered by the lead or not.Integer
available_at.$date.$numberLongTotal time for which the lead was available to call.String
dialer_dial_statusDisposition status of the lead in the lead list. For example: 'New' => 0, 'Undisposed' => -1, 'Number in Account DND List' => -2, 'Number in Public DND List' => -3, 'Emergency' => -4, 'Call Drop' => -5, 'Channel Limit Reached' => -6, 'Number in Account Block List' => -7.Integer
created_at.$date.$numberLongTime at which the lead was created in the listString
retry_countTimes for which the call has been retried for the lead.String
alternate_phone_numberAlternate phone number of the lead.String
priorityPriority at which the lead will be selected to dial. Note: Priority should be between 1 and 30 where 30 is highest and 1 is lowest.Integer
list_nameName of the List Lead corresponds toString
headerName of all the detail fields that corresponds to the LeadJSON
sensitive_field_mapNumber of fields mapped with the lead that are sensitive.String.
dialer_skillID and name of the skill list assigned to the lead.Object

fields can increase like field_7, field_8 etc. according to the field array that is set while creating the Broadcast List.

Language
Click Try It! to start a request and see the response here!