Call Logs Report
Call Logs Report
This Voice API supports the following:
API Endpoint
https://eu.cpaas.bics.com/api/v2/
GET
{endpoint}voice/calls
MANDATORY PARAMETERS
Name |
Descriptions |
access_token |
Access token of your account |
Filters
Name |
Descriptions |
datetime[end_at] |
daterange for filtering the call logs |
Example Request
curl -X GET \
"{endpoint}voice/calls?access_token=209eccd40ee3a2e14af7fe45b21xxx&datetime[end_at]=Aug 12, 2019 - Aug 12, 2019"
Example Response
{
"status": "OK",
"data": {
"current_page": 1,
"data": [
{
"id": "c839b4c4-8c0d-11e9-bb88-6c2b59c79f5a",
"call_from": "917989532456",
"call_to": "918068287601",
"service": "IN",
"bridge": "918068287601",
"status": "RECEIVED",
"duration": "00:00:12",
"billing": "00:00:12",
"pulsing": "30",
"charges": "0.0150",
"start_at": "2019-06-11 05:57:24",
"end_at": "2019-06-11 05:57:36",
"hangup_by": "caller",
"dtmf": null,
"location": "IN",
"region": "AP",
"provider": "RJ",
"notes": "Hi laxman final fix",
"audio": null,
"name": "Laxman ka"
}
],
"first_page_url": "{endpoint}voice/calls?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "{endpoint}voice/calls?page=1",
"next_page_url": null,
"path": "{endpoint}voice/calls",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
Recordings Report
API Endpoint
https://eu.cpaas.bics.com/api/v2/
GET
{endpoint}voice/recordings
MANDATORY PARAMETERS
Name |
Descriptions |
access_token |
Access token of your account |
Filters
Name |
Descriptions |
datetime[r.created_at] |
daterange for filtering the recordings |
Example Request
curl -X GET \
"{endpoint}voice/recordings?access_token=209eccd40ee3a2e14af7fe45b21xxx&datetime[r.created_at]=Jun 07, 2019 - Aug 13, 2019"
Example Response
{
"status": "OK",
"data": {
"current_page": 1,
"data": [
{
"id": "c136768e-8c0e-11e9-b795-6c2b59c79f5a",
"call_from": "918553001122",
"call_to": "918068287601",
"audio": "https://s30m.s3.ap-southeast-1.amazonaws.com/rc/190624/c-9180682876012-11061911.mp3?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAITXHQTJADVE4ZNPA%2F20190813%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20190813T124618Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=cab675aec80b0d2544232ee3b1c272217c49e2c028a3029d58feffc94bc11576",
"duration": "00:01:33",
"agent": null,
"created_at": "2019-06-11 06:04:21"
},
{
"id": "066f0afa-8c0e-11e9-8b2f-6c2b59c79f5a",
"call_from": "917989532456",
"call_to": "918068287601",
"audio": "https://s30m.s3.ap-southeast-1.amazonaws.com/rc/190624/c-9180682876012-11061911.mp3?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAITXHQTJADVE4ZNPA%2F20190813%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20190813T124618Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=cab675aec80b0d2544232ee3b1c272217c49e2c028a3029d58feffc94bc11576",
"duration": "00:00:47",
"agent": null,
"created_at": "2019-06-11 05:59:07"
}
],
"first_page_url": "{endpoint}voice/recordings?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "{endpoint}voice/recordings?page=1",
"next_page_url": null,
"path": "{endpoint}voice/recordings",
"per_page": 15,
"prev_page_url": null,
"to": 2,
"total": 2
}
}