查询外呼记录列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| EnterpriseId |
integer |
是 |
呼叫中心 id |
8004970 |
| StartTime |
integer |
否 |
开始时间,时间戳格式精确到秒。默认值取当前月份第一天 |
1775024775 |
| StartTimeEnd |
integer |
否 |
开始时间查询截止,时间戳格式精确到秒,开始时间和结束时间跨度不能超过一个月。默认值取当前时间 |
1775024775 |
| BridgeTime |
integer |
否 |
接听时间,时间戳格式精确到秒。 |
1775024775 |
| BridgeTimeEnd |
integer |
否 |
接听时间查询截止,时间戳格式精确到秒。 |
1775024775 |
| EndTime |
integer |
否 |
结束时间,时间戳格式精确到秒。 |
1775024775 |
| EndTimeEnd |
integer |
否 |
结束时间查询截止,时间戳格式精确到秒。 |
1775024775 |
| HiddenType |
integer |
否 |
是否隐藏号码。 0: 不隐藏,1: 中间四位,2: 最后八位,3: 全部号码,4: 最后四位。默认值为 0 |
0 |
| BridgeDuration |
integer |
否 |
通话时长范围查询最小值,和 bridgeDurationEnd 配合使用 |
10 |
| BridgeDurationEnd |
integer |
否 |
通话时长范围查询最大值 |
11 |
| TotalDuration |
integer |
否 |
总时长范围查询最小值,和 totalDurationEnd 配合使用 |
80 |
| TotalDurationEnd |
integer |
否 |
总时长范围查询最大值 |
86 |
| Cnos |
string |
否 |
座席工号 |
1111 |
| Qnos |
string |
否 |
外呼组 |
2222 |
| ClientNumber |
string |
否 |
座席电话 |
xxx |
| CustomerNumber |
string |
否 |
客户号码 |
xxx |
| CallType |
integer |
否 |
通话类型 4: 预览外呼,6: 主叫外呼, 默认全部 |
4 |
| LeftClid |
string |
否 |
外显号码 |
xxx |
| Xnumber |
string |
否 |
服务实例号码 |
xxx |
| Status |
integer |
否 |
接听状态。取值范围如下: 1: 客户未接听 2: 座席未接听 3: 客户接听 4: 座席接听 默认全部 |
1 |
| MainUniqueId |
string |
否 |
通话记录唯一标识 |
MainUniqueId |
| TaskName |
string |
否 |
呼叫任务名称 |
TaskName |
| Offset |
integer |
否 |
偏移量,范围 0-99990。默认值为 0。注:limit + offset 不允许超过 100000 |
0 |
| Limit |
integer |
否 |
查询条数,范围 10-100。默认值为 10。注:limit + offset 不允许超过 100000 |
19 |
| ScrollSearch |
string |
否 |
是否滚动查询。默认 false,true 代表使用滚动查询。 |
false |
| ScrollId |
string |
否 |
滚动查询 ID。配合 scrollSearch 使用,第一次查询时不需要传递此参数,后续查询可从返回列表中取值,并传参数。当 scrollId 为空时,代表滚动查询结束。 |
ScrollId |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| AccessDeniedDetail |
string |
已失效参数,请忽略 |
无 |
| RequestId |
string |
请求 ID。 |
D9CB3933-9FE3-4870-BA8E-2BEE91B69D23 |
| Message |
string |
返回信息。 |
OK |
| Data |
object |
返回数据。 |
|
| TotalCount |
integer |
总条数 |
31 |
| PageSize |
integer |
一页展示条数 |
100 |
| PageNumber |
integer |
当前页码 |
1 |
| ClinkRequestId |
string |
请求 id |
xxx |
| ScrollId |
string |
滚动查询 ID |
ScrollId |
| CdrOb |
array<object> |
外呼记录列表 |
|
|
object |
外呼记录 |
||
| InvestigationKeys |
integer |
满意度评价 |
null |
| CustomerProvince |
string |
客户号码省份 |
北京 |
| WebrtcCallId |
string |
WebRTCCallID |
xxxx |
| CalleeRingingDuration |
integer |
客户响铃时长 |
29 |
| ExistCustomer |
boolean |
是否存在客户资料 |
true |
| ObSipCause |
string |
呼叫结果 |
呼叫成功 |
| CustomerPostCode |
string |
追加客户邮编 |
xxx |
| CallTypeKey |
integer |
通话类型 Key 值 |
4 |
| LeftClidCity |
string |
外显号码归属城市 |
上海 |
| RequestUniqueId |
string |
通话唯一 ID |
xxx |
| EnterpriseId |
integer |
企业号 |
8004970 |
| ClientName |
string |
座席名称 |
ClientName |
| RecordFile |
string |
录音文件 |
RecordFile |
| CustomerNumber |
string |
客户号码 |
xxx |
| XnumberCity |
string |
服务实例号码归属城市 |
上海 |
| Status |
integer |
接听状态值 |
3 |
| Evaluation |
string |
是否邀评 |
0 |
| PreRingWaitDuration |
integer |
响铃前等待时长 |
10 |
| LeftClidArea |
string |
外显号码归属地区,省份/城市 |
上海/上海 |
| StartTime |
integer |
开始时间。Unix 时间戳,单位:秒。 |
1715326248 |
| ExistTicket |
integer |
是否存在工单 |
0 |
| MainUniqueId |
string |
通话 ID |
medias_1-171532xxxx.53 |
| TotalDuration |
integer |
总时长 |
27 |
| RtcUid |
string |
RtcUid |
xxx |
| LeftClid |
string |
外显号码 |
xxx |
| LeftClidProvince |
string |
外显号码归属省份 |
上海 |
| MarkData |
string |
备注 |
2 |
| TagNames |
array |
通话标签 |
|
|
string |
通话标签 |
tag |
|
| TaskName |
string |
外呼任务名称 |
TaskName |
| BridgeDuration |
integer |
通话时长 |
76 |
| BridgeTime |
integer |
客户接听时间。Unix 时间戳,单位:秒。 |
1715326248 |
| OnHookSource |
string |
挂断方 |
客户挂断 |
| TaskId |
integer |
外呼任务 id |
85 |
| EndTime |
integer |
结束时间。Unix 时间戳,单位:秒。 |
1715326248 |
| TrunkGroupKey |
string |
中继组号 |
10088 |
| Cno |
string |
座席工号 |
1111 |
| CustomerArea |
string |
客户地区,省份/城市 |
北京/北京 |
| CallType |
string |
通话类型 |
预览外呼 |
| BusinessIds |
array |
业务记录 ID |
|
|
integer |
业务记录 ID |
5345222 |
|
| XnumberProvince |
string |
服务实例号码归属省份 |
null |
| TaskInventoryId |
integer |
外呼任务详情 id |
83 |
| StatusDesc |
string |
接听状态描述 |
客户接听 |
| ExistBusiness |
integer |
是否存在业务记录 |
0 |
| TicketIds |
array |
工单 id |
|
|
integer |
工单 id |
333 |
|
| CalleeRingingTime |
integer |
客户响铃时间。Unix 时间戳,单位:秒。 |
1715326251 |
| Xnumber |
string |
服务实例号码 |
xxx |
| ObWaitDuration |
integer |
外呼等待时长 |
24 |
| CustomerCity |
string |
客户号码城市 |
北京 |
| CallId |
string |
CallID |
xxx |
| AsrRecord |
integer |
转写记录标识 1:存在,0:不存在 |
0 |
| CustomerAreaCode |
string |
客户号码区号 |
010 |
| UpTime |
integer |
座席接起时间。Unix 时间戳,单位:秒。 |
1715326251 |
| CustomerVip |
integer |
客户 VIP 标识 |
1 |
| CustomerNumberEncrypt |
string |
客户号码加密串 |
xxx |
| XnumberArea |
string |
服务实例号码归属地区,省份/城市 |
xxx |
| ObSipCauseRaw |
string |
被叫状态 |
呼叫成功 |
| ClientNumber |
string |
座席电话 |
xxx |
| Code |
string |
状态码。返回 OK 代表请求成功,其他错误码详见错误码列表。 |
OK |
示例
正常返回示例
JSON格式
{
"AccessDeniedDetail": "无",
"RequestId": "D9CB3933-9FE3-4870-BA8E-2BEE91B69D23",
"Message": "OK",
"Data": {
"TotalCount": 31,
"PageSize": 100,
"PageNumber": 1,
"ClinkRequestId": "xxx",
"ScrollId": "ScrollId",
"CdrOb": [
{
"InvestigationKeys": 0,
"CustomerProvince": "北京",
"WebrtcCallId": "xxxx",
"CalleeRingingDuration": 29,
"ExistCustomer": true,
"ObSipCause": "呼叫成功",
"CustomerPostCode": "xxx",
"CallTypeKey": 4,
"LeftClidCity": "上海",
"RequestUniqueId": "xxx",
"EnterpriseId": 8004970,
"ClientName": "ClientName",
"RecordFile": "RecordFile",
"CustomerNumber": "xxx",
"XnumberCity": "上海",
"Status": 3,
"Evaluation": "0",
"PreRingWaitDuration": 10,
"LeftClidArea": "上海/上海",
"StartTime": 1715326248,
"ExistTicket": 0,
"MainUniqueId": "medias_1-171532xxxx.53",
"TotalDuration": 27,
"RtcUid": "xxx",
"LeftClid": "xxx",
"LeftClidProvince": "上海",
"MarkData": "2",
"TagNames": [
"tag"
],
"TaskName": "TaskName",
"BridgeDuration": 76,
"BridgeTime": 1715326248,
"OnHookSource": "客户挂断",
"TaskId": 85,
"EndTime": 1715326248,
"TrunkGroupKey": "10088",
"Cno": "1111",
"CustomerArea": "北京/北京",
"CallType": "预览外呼",
"BusinessIds": [
5345222
],
"XnumberProvince": "null",
"TaskInventoryId": 83,
"StatusDesc": "客户接听",
"ExistBusiness": 0,
"TicketIds": [
333
],
"CalleeRingingTime": 1715326251,
"Xnumber": "xxx",
"ObWaitDuration": 24,
"CustomerCity": "北京",
"CallId": "xxx",
"AsrRecord": 0,
"CustomerAreaCode": "010",
"UpTime": 1715326251,
"CustomerVip": 1,
"CustomerNumberEncrypt": "xxx",
"XnumberArea": "xxx",
"ObSipCauseRaw": "呼叫成功",
"ClientNumber": "xxx"
}
]
},
"Code": "OK"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。