Agent Incoming Answered API
Each agent API request in TeleCMI platform includes agent login token. After getting the agent login token, make a POST request to the below base URL to retrieve the agent incoming answered call details.
Base URL
Send your POST method request with valid parameters, to the following base URL.
https://piopiy.telecmi.com/v1/agentAnswered
Required Parameters
These are the required POST method parameters with description
Parameter Name | Type | Description |
---|---|---|
*token | string | Your agent token |
*from | number | The from date and time in timestamp. |
*to | number | The to date and time in timestamp. |
*page | number | The Number of page per 10 record. |
limit | number | The Number of record for request, By default the limit is 10. |
Note
The * marked parameter is mandatory.
Sample JSON Request
Below is the following sample JSON POST method request
{
"token": "xxxx-xxxx-xxxx-xxxx",
"from": 1569911400000,
"to": 1570167249853,
"page": 1,
"limit": 5
}
Sample Response
If the provided information is valid, your web server will get a sample response from TeleCMI Platform as given below
{
"count": 8,
"cdr": [
{
"_id": "5d96b7ac20837a1998da1105",
"to": 9100000000,
"time": 1570158644552,
"from": 9200000000,
"billedsec": 14,
"rate": "0.00",
"record": "true",
"filename": "157013885042084974500563_1111113.mp3",
"name": "unknown"
},
{
"_id": "5d96b47a3e23420b5f1fa7d9",
"to": 9100000000,
"time": 1570157515003,
"from": 9300000000,
"billedsec": 26,
"rate": "0.00",
"record": "true",
"filename": "157013787029086721586702_1111113.mp3",
"name": "unknown"
},
{
"_id": "5d960cba20837a1998da0b5a",
"to": 9100000000,
"time": 1570114729565,
"from": 9400000000,
"billedsec": 17,
"rate": "0.00",
"record": "true",
"filename": "15700950846189478332012_1111113.mp3",
"name": "unknown"
},
{
"_id": "5d96071c3e23420b5f1fa254",
"to": 9100000000,
"time": 1570113146794,
"from": 9500000000,
"billedsec": 12,
"rate": "0.00",
"record": "true",
"filename": "157009350283700648424543_1111113.mp3",
"name": "unknown"
},
{
"_id": "5d95ff7104eaac7de3aa2469",
"to": 9100000000,
"time": 1570111330456,
"from": 9600000000,
"billedsec": 15,
"rate": "0.00",
"record": "true",
"filename": "157009153683678179848348_1111113.mp3",
"name": "unknown"
}
],
"code": 200
}
Properties
These are the list of properties and its description
Property | Type | Description |
---|---|---|
count | number | The total count of call detail record(cdr) available |
cdr | JSON array | The list of total cdr in detail |
_id | string | A unique identifier of this call |
to | number | The number of the user(agent) |
time | number | Timestamp of the call |
from | number | The number the call came from |
billedsec | number | The duration of call in seconds |
rate | string | The call cost of the call |
record | string | Call recording is enabled |
filename | string | The file name of the recorded conversation |
name | string | The name of the caller |
HTTP status codes
TeleCMI API platform represents the following status code to identity the errors.
Status code | Status code | Description |
---|---|---|
200 | OK | We received the request |
404 | Error | Invalid agent token, authentication failed |