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 Name | Description | Data type |
---|---|---|
id* | Unique ID of the broadcast List to which the lead corresponds to | String |
Response Variables
Variable Name | Description | Data type |
---|---|---|
field_0 | Phone Number of the Lead | String |
field_1 | Name for the Lead | String |
field_2 | Email of the Lead | String |
field_3 | Address for the Lead | String |
field_4 | Company Name of the Lead | String |
lead_id | Unique ID of the Lead | Integer |
list_name | Name of the List Lead corresponds to | String |
list_id | Unique ID of the Broadcast List the lead corresponds to | Integer |
header | Name of all the detail fields that corresponds to the Lead | JSON |
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 Name | Description | Data type |
---|---|---|
success | Request success status | Boolean |
message | Message corresponding success status | String |
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 Name | Description | Data type |
---|---|---|
id* | Unique ID of the List to which lead will corresponds to | String |
Request Variables
Variable Name | Description | Data type |
---|---|---|
field_0* | Phone number of the lead. | Integer |
filed_1 | Name of the lead. | String |
field_2 | Email of the lead. | String |
field_3 | Address of the lead. | String |
field_4 | Company 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 Name | Description | Data type |
---|---|---|
success | Request success status | Boolean |
message | Message corresponding success status | String |
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 Name | Description | Data type |
---|---|---|
id* | Unique ID of the Lead to be updated | String |
Request variables
Variable Name | Description | Data-type |
---|---|---|
field_0 | Phone number of the lead. | Integer |
field_1 | Name of the lead. | String |
field_2 | Email of the lead. | String |
field_3 | Address of the lead. | String |
field_4 | Company 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 Name | Description | Data type |
---|---|---|
success | Request success status | Boolean |
message | Message corresponding success status | String |
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 Name | Description | Data type |
---|---|---|
id* | Unique ID of the Lead to be deleted | String |
Response Variables
Variable Name | Description | Data type |
---|---|---|
success | Request success status | Boolean |
message | Message corresponding success status | String |
Updated 5 months ago