get https://api-smartflo.tatateleservices.com/v2/broadcasts
This API allows you to fetch list of broadcasts.
This API helps you access the entire list of existing broadcasts and their corresponding data. From the fetched broadcast list, you get privy to the number of calls made using a particular campaign, the time the call tries to connect to each number in the list, the agents acting for the broadcast, and more.
Sample Request
curl --request GET \
--url https://api-smartflo.tatateleservices.com/v2/broadcasts \
--header 'accept: application/json'
š Important!
Before we begin, note that the * sign denotes the mandatory variables in each table.
Request Variables (Query Params)
The following parameter is required to fetch lists of broadcasts:
Variable Name | Description | Data Type |
---|---|---|
limit | number of records to be fetched. Min: 1 max: 100. | String |
broadcast_id | Unique ID of the Broadcast. | String |
page | page number of which broadcasts need to be fetched. | String |
Sample Response
{
"page": 1,
"size": 10,
"limit": 10,
"broadcast_limit": 100,
"results": [
{
"id": "93585",
"name": "Aayurvaid broadcast",
"description": "Aayurvaid broadcast",
"destination_type": "auto_attendant",
"destination_id": "56210",
"list_id": "263902",
"list_name": "Test disposition Dec",
"timeout": 120,
"concurrent_limit": 3,
"caller_id": "+918069651170",
"time_group_id": null,
"time_group_name": null,
"start_date_time": 1703848800,
"end_date_time": 1703849100,
"retry": 0,
"retry_after": null,
"sms_notification": null,
"status": 0,
"start_count": 3,
"created_at": 1703848625,
"dialstatus": [
"New",
"Message Played",
"DTMF Pressed",
"No Answer",
"DND",
"Busy",
"Congestion",
"Failed",
"Account DND"
]
},
Response Variables
The response returned is as following:
Variable Name | Description | Data Type |
---|---|---|
limit | number of records to be fetched. Min: 1 max: 100. | Integer |
size | number of records fetched. | Integer |
page | page number of which broadcasts need to be fetched. | Integer |
broadcast_limit | max number of broadcast concurrent limits allowed for the account. | Integer |
Result[].id | The unique ID of the broadcast. For example, 9. | String |
Result[].name | The name of the broadcast. For example, Campaign 1. | String |
Result[].description | The description of the broadcast. For example, Campaign 1 description. | String |
Result[].destination_type | Type of destination where the broadcast is directed to. For example, ivr, hangup, etc. | String |
Result[].destination_id | Unique ID of the destination. | String |
Result[].list_id | The unique ID of the list associated with the broadcast. For example, 70006. | String |
Result[].list_name | The name of the lists in the broadcast. For example, Campaign list. | String |
Result[].timeout | The time the call tries to connect to each number in the list. For example, Minimum: 10, Maximum: 60. | Integer |
Result[].concurrent_limit | The number of channels to be used for broadcast. For example,15. | Integer |
Result[].caller_id | Caller ID that is showed to the called party. | String |
Result[].time_group_id | Unique ID of the time_group associated with the broadcast. | String |
Result[].time_group_name | Name of the time group associated with the broadcast. | String |
Result[].start_date_time | Date and time in which leads associated with broadcast are called. | String |
Result[].end_date_time | Date and time till which leads associated with broadcast are called. | String |
Result[].retry | Specifies Retry count to dial on the dial status other than new. | |
Result[].retry_after | Time Duration after which the retry will take place. | |
Result[].sms_notification.type | Whether SMS is to be triggered for missed, answered or both. | |
Result[].sms_notification.missed_call_template_id | Template ID of the missed call template. | |
Result[].sms_notification.missed_call_template_name | Template Name of the missed call template. | |
Result[].sms_notification.recieved_call_template_id | Template ID of the received call template. | |
Result[].sms_notification.recieved_call_template_name | Template Name of the received call template. | |
Result[].sms_notification.retry | If retry is required for SMS. | |
Result[].status | The current status of the broadcast. For example, The possible values are 0: Inactive, 1: Active, 2: Paused. | Integer |
Result[].start_count | Number of times that broadcast has been started. | |
Result[].created_at | Created Time Stamp of the broadcast. | |
Result[].dialstatus | Dial Status to dial the call on selected in the campaign. |