get https://api.classifyit.co/biz/api/voice/responses/
Get data of calls occurred between particular time intervals on SquadVoice platform
The request to this endpoint returns a paginated response.
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"task_id": 8,
"contact_name": "John Smith",
"phone_number": "+919512345678",
"meta": {
"order_id": 127812,
"order_name": "Denim Jeans"
},
"completed_at": 1479992291000,
"call_attempts": [
{
"recording_url": null,
"called_at": 1479992221000,
"answers": {},
"call_duration": 10,
"outcome": "Abruptly Disconnected and Not Receiving",
"is_attempt_final": false,
"player_mission_ref_id": "ABCD123"
},
{
"recording_url": "https://s3-ap-southeast-1.amazonaws.com/squadrun/squadrun/dummy.mp3",
"called_at": 1479992291000,
"answers": {
"age": 23,
"was_puchase_done": "Yes",
"order_received_on_time": "Yes"
},
"call_duration": 100,
"outcome": "Survey Completed!",
"is_attempt_final": true,
"player_mission_ref_id": "EFGH123"
}
]
}
]
}
Different fields arriving as part of response of /biz/api/voice/responses/
means
Key | Explanation | Data type |
---|---|---|
contact_name | contact_name shared with us via /biz/api/voice/task/ endpoint | String |
phone_number | phone_number shared with us via /biz/api/voice/task/ endpoint | String |
meta | meta data shared with us via /biz/api/voice/task/ endpoint | JSON |
task_id | meta data shared with us via /biz/api/voice/task/ endpoint | Integer |
completed_at | Epoch timestamp at which the call task was completely executed. | Timestamp |
call_attempts | List of call attempts that were done for related task_id | Array of JSON |
where each "call_attempts"
object has the following keys:
Key | Explanation | Data type |
---|---|---|
recording_url | An URL containing audio recording of the call happened for this attempt. | String |
called_at | Epoch timestamp at which the call attempt was made. | Timestamp |
answers | Map of key-value pair, where both keys and values are of string type. Key denotes identifier for the question asked, while value denotes respective answer. | JSON |
outcome | This value denotes the business output from the call attempt made. | String |
is_attempt_final | Flag denoting whether this call attempt was final one for the task and no more call_attempts were made after this. | Boolean |
call_duration | Duration of the call happened for this attempt. | Integer |
player_mission_ref_id | Unique reference ID for that call attempt | String |