查询通话记录列表
获取后台电销手机菜单中通话录音列表(包含三方呼叫中心通话记录和录音)
POST https://qw-openapi-tx.dustess.com/device/v1/callRecord/list?accessToken=
Content-Type: application/json
字段 | 类型 | 描述 | 是否必须 |
---|---|---|---|
accessToken | String | accessToken | true |
{
"ids": ["32694780-1111-1111-1111-18ccad06a9d4"],
"start": 1500084074,
"end": 1500084074,
"cf_ts": 1037819331766915072,
"page_size": 500
}
请求参数名 | 类型 | 说明 | 是否必须 |
---|---|---|---|
ids | String[] | 通话记录ID列表 | false |
start | Int | 开始时间(通话开始时间,时间戳,单位秒) | false |
end | Int | 结束时间(通话开始时间,时间戳,单位秒) | false |
cf_ts | Int | 筛选条件(返回大于此值的数据) | false |
page_size | Int | 分页尺码(最大值500,默认500) | false |
端口查询区间最长一个月, 若超过查询区间,查询自开始时间后一个月内的区间; 若不传递查询区间,则查询至今一个月内的区间
{
"success": true,
"msg": "",
"data": {
"list": [
{
"id": "41f3b1a8603777dc18ebc3a130d71111",
"cid": "e8a98347-1111-1111-1111-0242ac11000f",
"imei": "860113049121111",
"call_type": "out",
"local_tel": "15328081111",
"uid": "61",
"uname": "张xx",
"is_delete": false,
"contact_tel": "1532801111",
"begin_time": "2020-10-12 19:35:32",
"end_time": "2020-10-12 19:35:32",
"duration": 156,
"sound_url": "",
"connect_type": "connected",
"cf_ts": 1029839803681607680,
"call_id": "",
"remark": "",
"tags": ["00000001"],
"address": "四川省成都市武侯区吉泰一路89号靠近成都国际科技节能大厦B座",
"longitude": 104.066364,
"latitude": 30.549175,
"is_effective": false,
"source": "work_phone",
"contact_id": "",
"company_id": ""
}
]
}
}
响应参数名 | 类型 | 说明 |
---|---|---|
success | Bool | 请求状态, true: 成功; false: 失败 |
code | Int | 响应代码 |
msg | String | 消息提示 |
data | Object | 数据信息 |
data
字段类型说明字段名称 | 类型 | 说明 |
---|---|---|
list | Object[] | 通话记录列表 |
count | Int | 当前查询总个数 |
list
字段说明字段名称 | 类型 | 说明 |
---|---|---|
id | String | 通话记录Id |
cid | String | 通话当时匹配到的客户id; 其中 NA : 未匹配到联系人; multiCus : 匹配到多个联系人 |
imei | String | 设备的IMEI设备码 |
call_type | String | 通话类别, in:接收; out:发出 |
local_tel | String | 本机号码 |
uid | String | 当时设备持有人id |
uname | String | 当时设备持有人name |
is_delete | Bool | 是否离职, true: 离职; false: 在职 |
contact_tel | String | 联系号码 |
begin_time | String | 通话开始时间 |
end_time | String | 通话结束时间 |
duration | String | 通话时长(单位秒) |
sound_url | String | 通话录音地址,有效期为1个小时,请转储到本地服务器,如过期,可以重新请求查询获取新地址 |
connect_type | String | 通话类型, connected: 接通; disconnected: 未接通) |
cf_ts | Int | 查询标识 |
remark | String | 备注 |
tags | String[] | 标签ids |
address | String | 通话地址 |
longitude | Int | 通话时经度 |
latitude | Int | 通话时纬度 |
is_effective | Bool | 是否有效通话, true: 有效; false: 无效 |
source | String | 数据来源:work_phone:工作手机; scrm_assistant: scrm助手 |
contact_id | String | 联系人id |
company_id | String | 企业id |
call_id | String | 第三方客户自定义字段(请确保唯一性),方便快速匹配通话记录或录音 |