Call Logs
Fetches the call logs of a given date (Only allows the past dates). This api returns at max 100 records in one page.
get/call/logs
Query parameters
datestring
Example:2020-05-25
Date for which call logs should be fetched. Accepted format is YYYY-MM-DD. Only the past dates are allowed.
pageNonumber required
Requested Page number
processNamestring
Example:Default Proccess
Name of the proccess for which call logs should be fetched.
isLatestOnlyboolean
When true this api fetches the latest call interaction of each customer on the given day. It is false by default.
Response
If the auth token is valid.
Example response
{
"statusCode": 0,
"message": "Successfully fetched the call logs",
"data": {
"metadata": [
{
"total": 2,
"page": 1
}
],
"data": [
{
"callId": "5e256e1cc9785f000845fe2c",
"callerId": "731e0bc1-1p4e-4eq1-9lb7-6290276172co",
"calledBy": "Rahul Singh",
"name": "Rohit Agarwal",
"customerId": "5e256e1cc9785f000845fe2c",
"phoneNumber": "+919898989898",
"startTime": 1600486640,
"duration": 132,
"type": "outgoing",
"status": "Appointment Fixed",
"tag": null,
"createdAt": 1600486640
},
{
"callerId": "731e0bc1-1p4e-4eq1-9lb7-6290276172co",
"calledBy": "Rahul Singh",
"name": "Rohit Agarwal",
"customerId": "5e256e1cc9785f000845fe2c",
"phoneNumber": "+919898989898",
"startTime": 1600286640,
"duration": 0,
"type": "outgoing",
"status": "Not Contacted",
"tag": "unanswered",
"createdAt": 1600286640
}
]
}
}