forked from nxtele/http-api-document
-
Notifications
You must be signed in to change notification settings - Fork 1
WebCall CDR List Page By Page
henryou edited this page Dec 12, 2022
·
2 revisions
Get CDR page by page
- 0.5QPS(call 1 time within 2 seconds)
- Only records within 15 days are allowed to be queried.
https://api.nxcloud.com/api/voiceSms/getSipCdr
field | required | type | desc |
---|---|---|---|
appkey | Yes | string | Get it from nxcloud console |
secretkey | Yes | string | Get it from nxcloud console |
username | No | string | webcall user name |
start_time | Yes | string | start time of range,format: [yyyy-MM-dd HH:mm:ss] e.g. 2018-12-10 10:00:00 |
end_time | Yes | string | end time of range, format: [yyyy-MM-dd HH:mm:ss] e.g.2018-12-10 20:00:00 |
direction | No | string | 0: inbound 1: outbound |
page_size | Yes | string | [,1000]] |
page | Yes | string | start from 1 |
note
- this API will list all records if not specify username.
- limit: 15 days are allowed and the time span of start and end is not allowed to exceed 24 hours.
success
{
"code": "1",
"info": {
"total": 5,
"page": 1,
"pageSize": 2,
"rows": [
{
"phone": "81314382782",
"direction": "0",
"hangup_cause": "NORMAL_CLEARING",
"answer_time": "2019-01-25 12:41:57",
"country_code": "62",
"id": 636597,
"sipid": 1055014,
"duration": 0,
"username": "6282215699804",
"mobile_name": "name",
"end_time": "2019-01-25 12:42:26",
"effective_called_number": "626281314382782",
"start_time": "2019-01-25 12:42:26",
"orderid": "FLNK-FLNK-maqKSi_IDW0hXGl-FO0xjE_FLNK-1548391358819-QgNuzM",
"record_url": null,
"show_phone": "6282215699804"
},
{
"phone": "878828666",
"direction": "0",
"hangup_cause": "NORMAL_CLEARING",
"answer_time": "2019-01-25 12:40:42",
"country_code": "62",
"id": 636600,
"sipid": 1055015,
"duration": 0,
"username": "6282215699803",
"mobile_name": "name",
"end_time": "2019-01-25 12:42:29",
"effective_called_number": "626287882866266",
"start_time": "2019-01-25 12:42:29",
"orderid": "FLNK-FLNK-vpHnoi_ID2l3NgE-YPsthe_FLNK-1548391367271-RPC1U0",
"record_url": null,
"show_phone": "6282215699803"
}
]
}
}
fail
{
"code": "0",
"info": "appkey or secretkey invalid"
}
Response Params
field | requird | type | desc |
---|---|---|---|
total | Yes | string | total record numbers under this condition |
page | Yes | string | - |
pageSize | Yes | string | - |
sipid | Yes | string | webcall sipid, don't care |
id | Yes | string | Record ID of NXCLOUD |
username | Yes | string | webcall user name |
mobile_name | Yes | string | webcall nick name |
duration | Yes | string | - |
phone | Yes | string | origin callee |
start_time | Yes | string | - |
end_time | Yes | string | - |
orderid | Yes | string | Passed in when the call is initiated |
show_phone | Yes | string | display number |
record_url | Yes | number | The remote address of the recording file of the call |
answer_time | Yes | string | call answered time |
direction | Yes | string | 0: inbound 1: outbound |
effective_called_number | Yes | string | called after formatted |
hangup_cause | Yes | string | reason of hangup |
API failed reason
info | desc |
---|---|
appkey or secretkey invalid | - |
mobile no exist | - |
page_size or page_index invalid | please check page or page_size limit |
time invalid | please check start_time < end_time and the span cannot exceed 24 hours |
hangup_cause please refer: WebCall CDR Hangup Cause
Introduction
- Send Message
- Mark Incoming Message as Read
- Upload Media File
- Get Media File
- Delete Media File
- Webhook
- Query Number Information
- Query Message Template
- Create Message Template
- Edit Message Template
- Delete Message Template
- Upload Template Example File
- Embedded Page Login
- Create Client Application
- List of Phone Numbers for Client Application
- Get Verification Code
- Verify Verification Code
- Create Local Client
Short message
Voice
Call Center(NXLink)
- Web Iframe
- Manual Dial Record
- Manual Dial Record Query By orderId
- List Agent Information
- List Agent Status
- List Queue
- List Agents In Queue
- List Agent Efficiency
- Update Queue Agents
- Create AutoDial Task
- Webhook - Manual Dial
Call Center(Callbot)
- Callbot API Summary
- Callbot API Authorization
- Callbot API Ping
- Create Auto Dial Task
- Add Contact List To Task
- Create Task And Add Contact
- Start Or Pause Task
- Update Task Parameters
- Get List Task
- List Call
- List Task Orders
- Stop Order
- Get Call Detail By Order
- Webhook - By Call
- Webhook - By Order
- Webhook - Task Status
Flash Call
Short links
邮件验证码
DID号码
通用
号码检测