七鱼开发文档中心
总览服务端 APIWebiOSAndroid鸿蒙Uniapp微信小程序插件三方接入
呼叫中心数据接口

呼叫坐席历史数据

按时间范围、客服组或客服筛选坐席历史统计数据;数据为 T+1,最大查询跨度 90 天,时间会补足到整小时,不传时间时默认查询近一个月,连续请求间隔不小于 5 分钟。旧协议中业务数据以 JSON 字符串形式放在 message 中。

请求参数

名称类型必填描述示例值
appKeystring是应用 AppKey
timeint64是请求时间戳,单位秒
checksumstring是请求签名校验和
checksumAlgorithmint32否签名算法:0=SHA1,1=SHA256

请求体

名称类型必填描述示例值
staffGroupListint64[]否客服组 ID 列表;model=2 时必填
staffIdListint64[]否客服 ID 列表;model=3 时必填
pageSizeint32否每页条数;分页接口不传或非法时按默认值处理100
startTimeint64否查询开始时间,毫秒时间戳;不传 startTime/endTime 时默认最近 30 天1719763200000
modelint32否查询模式:1=全部,2=按客服组,3=按客服1
endTimeint64否查询结束时间,毫秒时间戳;最大跨度 90 天1719849599000
pageint32否页码;分页接口不传或非法时按默认值处理1

返回参数

名称类型描述示例值
codeint32业务状态码,200 表示业务成功200
messageobject[]客服历史统计数组;实际响应中该数组序列化为 JSON 字符串放在 message 中[{"callDuration":7200,"onlineDuration":28800,"staffName":"张三","startTime":1719763200000,"endTime":1719849599000,"totalCount":36,"staffId":1001,"callOutCount":16,"callInCount":20}]
└callOutAnsweredCountint64呼出接通量
└callDurationint64通话总时长
└inviteEvaluateRatiodouble邀评率
└satisfactionDetailCallOutobject
└level3GoodCountint64三级评价非常满意数
└level5BadCountint64五级评价不满意数
└level4VeryBadCountint64四级评价非常不满意数
└level4VeryGoodCountint64四级评价非常满意数
└level5VeryBadCountint64五级评价非常不满意数
└level3BadCountint64三级评价非常不满意数
└level5VeryGoodCountint64五级评价非常满意数
└level4BadCountint64四级评价不满意数
└level4GoodCountint64四级评价满意数
└level5SosoCountint64五级评价一般数
└level2BadCountint64二级评价不满意数
└level5GoodCountint64五级评价满意数
└level2GoodCountint64二级评价满意数
└level3SosoCountint64三级评价一般数
└totalCountint64通话总量36
└callInCountint64呼入量20
└avgOutDealingDurationint64呼出平均处理时长
└markerConnectedRatiodouble智能识别接通率
└callInAnsweredCountint64呼入接通量
└evaluateCountint64参评数
└staffNamestring客服姓名张三
└callInDurationint64呼入通话总时长
└startTimeint64查询开始时间,毫秒时间戳1719763200000
└outRingDurationint64呼出振铃总时长
└markerConnectedCountint64智能识别接通量
└avgInDealingDurationint64呼入平均处理时长
└callOutCountint64呼出量16
└satisfactionRatiodouble满意度
└evaluateRatiodouble参评率
└forecastDurationint64自动外呼时长
└outDealingDurationint64呼出处理总时长
└callOutDurationint64呼出通话总时长
└avgCallOutDurationint64呼出平均通话时长
└onlineDurationint64在线总时长
└satisfactionDetailCallInobject
└level3GoodCountint64三级评价非常满意数
└level5BadCountint64五级评价不满意数
└level4VeryBadCountint64四级评价非常不满意数
└level4VeryGoodCountint64四级评价非常满意数
└level5VeryBadCountint64五级评价非常不满意数
└level3BadCountint64三级评价非常不满意数
└level5VeryGoodCountint64五级评价非常满意数
└level4BadCountint64四级评价不满意数
└level4GoodCountint64四级评价满意数
└level5SosoCountint64五级评价一般数
└level2BadCountint64二级评价不满意数
└level5GoodCountint64五级评价满意数
└level2GoodCountint64二级评价满意数
└level3SosoCountint64三级评价一般数
└satisfactionDetailTotalobject
└level3GoodCountint64三级评价非常满意数
└level5BadCountint64五级评价不满意数
└level4VeryBadCountint64四级评价非常不满意数
└level4VeryGoodCountint64四级评价非常满意数
└level5VeryBadCountint64五级评价非常不满意数
└level3BadCountint64三级评价非常不满意数
└level5VeryGoodCountint64五级评价非常满意数
└level4BadCountint64四级评价不满意数
└level4GoodCountint64四级评价满意数
└level5SosoCountint64五级评价一般数
└level2BadCountint64二级评价不满意数
└level5GoodCountint64五级评价满意数
└level2GoodCountint64二级评价满意数
└level3SosoCountint64三级评价一般数
└avgCallDurationint64平均通话时长
└callOutAnsweredRatiodouble呼出接通率
└inviteEvaluateCountint64邀评数
└inDealingDurationint64呼入处理总时长
└endTimeint64查询结束时间,毫秒时间戳1719849599000
└staffIdint64客服 ID1001
└avgCallInDurationint64呼入平均通话时长
└avgOutRingDurationint64呼出平均振铃时长

错误码

状态码描述
14001AppKey 不存在
14002checksum 校验失败
14003请求时间戳与服务器时间误差超过 10 分钟
14004请求参数或内容不合法
14402查询频率超过限制
14500系统异常或处理超时
postEndpoint
/openapi/ipcc/history/seat
POST
/openapi/ipcc/history/seat
curl -X POST "https://qiyukf.com/openapi/ipcc/history/seat?appKey=string&time=0&checksum=string" \  -H "Content-Type: application/json" \  -d '{    "startTime": 1719763200000,    "model": 1,    "endTime": 1719849599000  }'
{
  "code": 200,
  "message": [
    {
      "callDuration": 7200,
      "onlineDuration": 28800,
      "staffName": "张三",
      "startTime": 1719763200000,
      "endTime": 1719849599000,
      "totalCount": 36,
      "staffId": 1001,
      "callOutCount": 16,
      "callInCount": 20
    }
  ]
}
{
  "code": 14001,
  "message": "AppKey 不存在"
}
{
  "code": 14002,
  "message": "checksum 校验失败"
}
{
  "code": 14003,
  "message": "请求时间戳与服务器时间误差超过 10 分钟"
}
{
  "code": 14004,
  "message": "请求参数或内容不合法"
}
{
  "code": 14402,
  "message": "查询频率超过限制"
}
{
  "code": 14500,
  "message": "系统异常或处理超时"
}

这篇文档有帮助吗?