查询通话记录

查询通话记录,时间限制为7天

访问路径

POST   /openapi/call/web/v1/cdr/query 

请求参数

字段名称字段类型是否必填字段描述
callTypestring[]呼叫类型 呼入:'callin', 外呼:'callout', 双向呼叫:'twoWayCall', 智能外呼:'autoCallout', 外呼任务:'callTask', 咨询:'consult', 转接:'transfer', 咨询转接:'consultTransfer'
customerNumberstring客户号码
disNumberstring外显号
endTimestring获取呼叫时间的结束时间,格式 yyyy-­MM-­dd HH:mm:ss
pagenumber页数
pageSizenumber每页条数,默认1000
serviceNumberstring服务号
startTimestring获取呼叫时间的开始时间,格式 yyyy-­MM-­dd HH:mm:ss
statusstring通话状态:'CCR_LIMIT':并发限制,'BLACK_LIMIT'黑名单限制,'ANSWER'已接听,'IVR'语音导航中挂机, 'QUEUE_ABANDON'排队放弃,'LEAVE_MSG'留言,'AGENT_NO_ANSWER'坐席未接听,'CUSTOMER_NO_ANSWER'客户未接听,'THREE_WAY_CALL':三方,'TRANSFER'呼叫转移,'CONSULT'咨询已接听,'CONSULT_TRANSFER': 咨询转移

请求示例

{ "startTime": "2021-03-25 00:27:33", "endTime": "2021-03-26 19:27:33", "callType": [], "status": "ANSWER", "customerNumber": "1121", "disNumber": "02258834811", "serviceNumber": "", "page": 1, "pageSize": 6 }

返回参数

字段名称字段类型字段描述
callIdstring通话ID
accountIdstring账户编号
customerNumberstring客户号码,来电是主叫号码,去电是被叫号码
customerProvincestring客户省份
customerCitystring客户城市
callTypestring通话类型,呼入:'callin', 外呼:'callout', 双向呼叫:'twoWayCall', 智能外呼:'autoCallout', 外呼任务:'callTask', 咨询:'consult', 转接:'transfer', 咨询转接:'consultTransfer'
serviceNumberstring服务号,来电的被叫号码
disNumberstring外显号,去电的主叫号码
disProvincestring外显号省份
disCitystring外显号城市
statusstring通话状态:'CCR_LIMIT':并发限制,'BLACK_LIMIT'黑名单限制,'ANSWER'已接听,'IVR'语音导航中挂机, 'QUEUE_ABANDON'排队放弃,'LEAVE_MSG'留言,'AGENT_NO_ANSWER'坐席未接听,'CUSTOMER_NO_ANSWER'客户未接听,'THREE_WAY_CALL':三方,'TRANSFER'呼叫转移,'CONSULT'咨询已接听,'CONSULT_TRANSFER': 咨询转移
agentNamestring座席名称
agentNumberstring座席工号
queueNumberstring技能组编号
queueNamestring技能组编号
answerTimestring接通时间
hangupTimestring挂机时间
callDurationInteger通话时长 挂机时间-接通时间
startTimestring呼叫开始时间
endTimestring呼叫结束时间
inQueueTimestring进入队列时间
queueDurationInteger技能组排队等待时长 呼叫座席的时间-进入队列的时间
satisfyDurationInteger满意度调查时长 满意度结束时间-满意度开始时间
satisfyStartTimestring满意度调查开始时间
satisfyEndTimestring满意度调查结束时间
satisfyKeysString  满意度按键值记录,多级按键以_隔开
recordUrlstring通话录音文件地址
leaveMsgUrlstring留言录音文件地址
consultRecordUrlstring咨询录音文件地址
failReasonString失败原因编码
failReasonMsgString失败原因描述
hangUpPartystring挂机方 'CUSTOMER'客户, 'AGENT'坐席, 'SYSTEM'系统
transferFrom  string转接到该通话的座席工号
callIdFrom  string转接到该通话的通话记录id
extras  jsonString自定义参数

返回示例

{ "success": true, "message": "200 ok!", "code": "200", "data": { "list": [ { "callId": "686022412562452480", "accountId": "1090", "customerNumber": "17391XXXXXXX", "customerProvince": "陕西", "customerCity": "西安", "callType": "callTask", "serviceNumber": "", "disNumber": "010514XXX", "disProvince": "北京", "disCity": "北京", "status": "ANSWER", "agentNumber": "8277", "agentName": "gs", "queueNumber": "", "queueName": "", "answerTime": "2023-06-27 15:40:37", "hangupTime": "2023-06-27 15:40:45", "callDuration": 8, "startTime": "2023-06-27 15:40:29", "endTime": "2023-06-27 15:40:45", "inQueueTime": "", "queueDuration": 0, "satisfyDuration": 0, "satisfyStartTime": "", "satisfyEndTime": "", "satisfyKeys": 1_2, "recordUrl": "https://useasy-oss.oss-cn-hangzhou.aliyuncs.com/1090/20230627/1090-20230627154030-8277-XXXXXX.wav", "recordDuration": 0, "leaveMsgUrl": "", "consultRecordUrl": "", "failReason": "", "hangUpParty": "CUSTOMER", "transferFrom": "", "callIdFrom": "", "extras": "" } ], "page": { "pageSize": 6, "pageNumber": 1, "totalPage": 1, "total": 2 } } }
2023-12-04