Broadcast List's Lead

Get List of all Leads

Details of the client's to be grouped together in a Broadcast List are Leads

curl --request GET \
  --url https://api.servetel.in/v1/broadcast/leads/id \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere'

Path Parameters

Variable NameDescriptionData type
id*Unique ID of the broadcast List to which the lead corresponds toString

Response Variables

Variable NameDescriptionData type
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
lead_idUnique ID of the LeadInteger
list_nameName of the List Lead corresponds toString
list_idUnique ID of the Broadcast List the lead corresponds toInteger
headerName of all the detail fields that corresponds to the LeadJSON

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

Error: response variables

Variable NameDescriptionData type
successRequest success statusBoolean
messageMessage corresponding success statusString

Create Lead

Leads can be created using the following manner

curl --request POST \
  --url https://api.servetel.in/v1/broadcast/lead/id \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere' \
  --header 'content-type: application/json'

Path Parameters

Variable NameDescriptionData type
id*Unique ID of the List to which lead will corresponds toString

Request Variables

Variable NameDescriptionData type
field_0*Phone number of the lead.Integer
filed_1Name of the lead.String
field_2Email of the lead.String
field_3Address of the lead.String
field_4Company name of the lead.String

Fields can increase like field_5, field_6 etc. (custom fields) according to the field array that is set while creating the Broadcast List and are optional

Error: response variables

Variable NameDescriptionData type
successRequest success statusBoolean
messageMessage corresponding success statusString

Update a Lead

Lead can be Update using the following manner

curl --request PUT \
  --url https://api.servetel.in/v1/broadcast/lead/id \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere' \
  --header 'content-type: application/json'

Path Parameters

Variable NameDescriptionData type
id*Unique ID of the Lead to be updatedString

Request variables

Variable NameDescriptionData-type
field_0Phone number of the lead.Integer
field_1Name of the lead.String
field_2Email of the lead.String
field_3Address of the lead.String
field_4Company name of the lead.String

Fields can increase like field_5, field_6 etc. (custom fields) according to the field array that is set while creating the Broadcast List and are optional

Response

Variable NameDescriptionData type
successRequest success statusBoolean
messageMessage corresponding success statusString

Delete a Lead

Lead can be updated in the following manner

curl --request DELETE \
  --url https://api.servetel.in/v1/broadcast/lead/id \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere'

Path Parameters

Variable NameDescriptionData type
id*Unique ID of the Lead to be deletedString

Response Variables

Variable NameDescriptionData type
successRequest success statusBoolean
messageMessage corresponding success statusString