User Outgoing Answered API
Each user API request in TeleCMI platform includes user login token. After getting the user login token, make a POST request to the below base URL to retrieve the user outgoing answered call details.
Base URL
Send your POST method request with valid parameters, to the following base URL.
https://rest.telecmi.com/v2/user/out_answered
Required Parameters
These are the required POST method parameters with description
Parameter Name | Type | Description |
---|---|---|
*token | string | Your user token |
*from | number | The timestamp of from date and time in UTC timezone. |
*to | number | The timestamp of to date and time in UTC timezone. |
page | number | The Number of page per 10 record. By default the page is 1. |
limit | number | The Number of record for request, By default the limit is 10. Maximum 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": 1649238593000,
"to": 1654509008000,
"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": 177,
"cdr": [
{
"cmiuid": "058a1f8d-c370-48df-bef8-92ffd814617c",
"duration": 5,
"notes": [
{
"msg": "Support Query",
"date": 1639554230141,
"agent": "101_1111112"
}
],
"billedsec": 4,
"filename": "16545045031_1000086167205_202_1111112.wav",
"rate": 0.023,
"record": "true",
"name": "unknown",
"from": "442000000000",
"to": 442000000001,
"time": 1654507445031
},
{
"cmiuid": "a6dcd717-e920-4ea5-9b53-98b586b462c1",
"duration": 4,
"billedsec": 3,
"filename": "16545295679_1000021751625_202_1111112.wav",
"rate": 0.023,
"record": "true",
"name": "unknown",
"from": "442000000003",
"to": 442000000002,
"time": 1654506295679
},
{
"cmiuid": "01654fee-8c9d-49ec-8072-8c59c589f727",
"duration": 41,
"billedsec": 7,
"filename": "16541829389_1000042897097_202_1111112.wav",
"rate": 3.627,
"record": "true",
"name": "unknown",
"from": "19170000000",
"to": 61400000000,
"time": 1654182988389
},
{
"cmiuid": "a338c60a-e587-4ca2-9eb5-fd778084317b",
"duration": 6,
"billedsec": 4,
"filename": "16541450617_1000088272801_202_1111112.wav",
"rate": 0.675,
"record": "true",
"name": "unknown",
"from": "919100000000",
"to": 19170000001,
"time": 1654148250617
},
{
"cmiuid": "1a5f5a67-ff9d-48ca-99e3-652d0066e51a",
"duration": 7,
"notes": [
{
"msg": "Sales Query",
"date": 1639554230141,
"agent": "101_1111112"
}
],
"billedsec": 3,
"filename": "16540890547_1000018204113_202_1111112.wav",
"rate": 5.967,
"record": "true",
"name": "unknown",
"from": "919000000001",
"to": 66000000001,
"time": 1654089100547
},
{
"cmiuid": "a5c0334d-4bc2-4644-8845-6888feaa9f15",
"duration": 25,
"billedsec": 15,
"filename": "1653997034_1000058994241_202_1111112.wav",
"rate": 1.8018,
"record": "true",
"name": "unknown",
"from": "919200000000",
"time": 1653992657034,
"to": 919300000000
},
{
"cmiuid": "f36d4f03-fd4c-4060-a2e9-7f8c95e2adac",
"duration": 8,
"billedsec": 2,
"filename": "16536243544_1000086510909_202_1111112.wav",
"rate": 0.675,
"record": "true",
"name": "unknown",
"from": "919400000000",
"to": 19170000000,
"time": 1653624382544
},
{
"cmiuid": "bd5077cc-135f-4350-ba3a-5fbdbf710521",
"duration": 22,
"billedsec": 18,
"filename": "1653627320_1000098801269_202_1111112.wav",
"rate": 0.675,
"record": "true",
"name": "unknown",
"from": "19170000001",
"to": 12120000000,
"time": 1653622627320
},
{
"cmiuid": "527984a3-57d9-4da4-a825-237f9717eb9d",
"duration": 11,
"billedsec": 2,
"filename": "1653464549_1000072641827_202_1111112.wav",
"rate": 1.8018,
"record": "true",
"name": "unknown",
"from": "6500000000",
"to": 919600000000,
"time": 1653462184549
},
{
"cmiuid": "d93ec69d-a883-483d-a736-8491728cd9f1",
"duration": 15,
"billedsec": 4,
"filename": "1653462039_1000022097029_202_1111112.wav",
"rate": 1.8018,
"record": "true",
"name": "unknown",
"from": "6500000000",
"to": 919700000000,
"time": 1653462031809
}
],
"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 |
cmiuid | string | A unique identifier of this call |
duration | number | The duration of call in seconds |
notes | JSON array | The entire notes information of the caller or calle |
msg | string | The notes information of the caller or calle |
date | number | Timestamp of the added notes in UTC timezone |
agent | string | The user ID for the added note |
to | number | The number of the user(agent) |
time | number | Timestamp of the call in UTC timezone |
from | string | A unique Id of the user(agent) |
billedsec | number | The duration of call in seconds |
rate | number | 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 type | Description |
---|---|---|
200 | OK | We received the request |
404 | Error | Invalid user token, Failed to authenticate token |
400 | Error | Parameter missing, Parameter limit lesser then equals 10 |