Skip to main content

User Outgoing Calls 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 missed and 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_cdr

Required Parameters

These are the required POST method parameters with description

Parameter NameTypeDescription
typenumberThe call type, it can be missed or answered.
  • type: 0 - missed,
  • type: 1 - answered
*tokenstringYour user token
*fromnumberThe timestamp of from date and time in UTC timezone.
*tonumberThe timestamp of to date and time in UTC timezone.
pagenumberThe Number of page per 10 record. By default the page is 1.
limitnumberThe 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

{
"type": 1,
"token": "xxxx-xxxx-xxxx-xxxx",
"from": 1569911400000,
"to": 1570167249853,
"page": 1,
"limit": 10
}

Sample Response

If the provided information is valid, your web server will get a sample response from TeleCMI Platform as given below

{
"count": 249,
"cdr": [
{
"cmiuid": "1586633b-a7f9-48d4-b934-4f9befd32a0e",
"duration": 15,
"billedsec": 1,
"filename": "1641771_1000026329497_101_2222223.wav",
"rate": 0.1001,
"record": "true",
"name": "unknown",
"from": "442000000000",
"to": 37100000000,
"time": 1641787135771,
"region": "LV"
},
{
"cmiuid": "9ab1d5a9-16da-40c4-9006-0f177732fe23",
"duration": 5,
"billedsec": 3,
"filename": "16454_1000014001664_101_2222223.wav",
"rate": 0.0011,
"record": "true",
"name": "unknown",
"from": "442000000000",
"to": 442000000002,
"time": 1641552750154,
"region": "GB"
},
{
"cmiuid": "5c5dd828-b867-485a-af4d-27aa19ffe64b",
"duration": 4,
"billedsec": 3,
"filename": "164121845_1000031521545_101_2222223.wav",
"rate": 0.0011,
"record": "true",
"name": "unknown",
"from": "442000000000",
"to": 442000000004,
"time": 1641552721845,
"region": "GB"
},
{
"cmiuid": "a870a2e8-359b-4d69-938c-7aee7bbbd718",
"duration": 26,
"billedsec": 25,
"filename": "1641473811_1000010226748_101_2222223.wav",
"rate": 0.0096,
"record": "true",
"name": "unknown",
"from": "442000000000",
"to": 442000000001,
"time": 1641552473811,
"region": "GB"
},
{
"cmiuid": "1e042fc3-0100-4a78-ae5c-dae7667290a1",
"duration": 8,
"billedsec": 6,
"filename": "1641518_1000053394104_101_2222223.wav",
"rate": 0.0023,
"record": "true",
"name": "unknown",
"from": "442000000000",
"to": 442000000003,
"time": 1641551534318,
"region": "GB"
},
{
"cmiuid": "623a61e8-f05b-4d3b-8c6b-95a4278b9893",
"duration": 7,
"billedsec": 3,
"filename": "16423252_1000094279153_101_2222223.wav",
"rate": 0.0011,
"record": "true",
"name": "unknown",
"from": "442000000000",
"to": 442000000005,
"time": 1641551423252,
"region": "GB"
},
{
"cmiuid": "8162215d-c2a9-487c-8ffc-773f613939d1",
"duration": 7,
"notes": [
{
"msg": "Sales Lead",
"date": 1655389002028,
"agent": "101_2222223"
},
{
"msg": "Need discount on service",
"date": 1641549977494,
"agent": "101_2222223"
}
],
"billedsec": 6,
"filename": "16415494_1000060339754_101_2222223.wav",
"rate": 0.0023,
"record": "true",
"name": "unknown",
"from": "442000000000",
"to": 442000000008,
"time": 1641549977494,
"region": "GB"
},
{
"cmiuid": "d12ba2e3-3501-455a-afd3-79d5b50cd4f7",
"duration": 17,
"billedsec": 11,
"filename": "16863420_1000010627570_101_2222223.wav",
"rate": 0.0046,
"record": "true",
"name": "unknown",
"from": "442000000000",
"to": 442000000002,
"time": 1641549863420,
"region": "GB"
},
{
"cmiuid": "bc29f22c-e9a4-45e4-bb71-268b4362861b",
"duration": 6,
"billedsec": 3,
"filename": "1644876_1000035097858_101_2222223.wav",
"rate": 0.0011,
"record": "true",
"name": "unknown",
"from": "442000000000",
"to": 442000000001,
"time": 1641549283996,
"region": "GB"
},
{
"cmiuid": "d935fa11-ba0f-420f-830f-6eace4a189a5",
"duration": 18,
"billedsec": 6,
"filename": "17924357_1000043750482_101_2222223.wav",
"rate": 0.002,
"record": "true",
"name": "unknown",
"from": "442000000000",
"to": 919000000000,
"time": 1641547924357,
"region": "IN"
}
],
"code": 200
}

Properties

These are the list of properties and its description

PropertyTypeDescription
countnumberThe total count of call detail record(cdr) available
cdrJSON arrayThe list of total cdr in detail
cmiuidstringA unique identifier of this call
durationnumberThe duration of call in seconds
notesJSON arrayThe entire notes information of the caller or calle
msgstringThe notes information of the caller or calle
datenumberTimestamp of the added notes in UTC timezone
agentstringThe user ID for the added note
billedsecnumberThe billed duration of call in seconds
filenamestringThe file name of the recorded conversation
ratenumberThe call cost of the call
recordstringCall recording is enabled
namestringThe name of the caller
fromnumberThe CallerID for this call
tonumberThe number the call was made to
timenumberTimestamp of the call in UTC timezone
regionstringThe destination country ISO code

HTTP status codes

TeleCMI API platform represents the following status code to identity the errors.

Status codeStatus typeDescription
200OKWe received the request
404ErrorInvalid user token, Failed to authenticate token
400ErrorParameter missing, Parameter limit lesser then equals 10