赞
踩
通话相关
某任务的通话记录列表
接口:POST v1/task/query_done_task_phones
data
参数 类型 示例 解释 required
task_id string 1bcecc13-e873-4910-913c-d9246a891280 外呼任务的id yes
page int 1 页码 yes
id string b1e91cb9-597cc-a5d25c339a99 通话记录的id no
levels array [[0, 100], [100, 500]] 评分等级对应的评分区间 no
keyword string 18651683344 被叫号码 no
bills array [0, 200] 通话时间(秒) no
rounds array [0, 5] 交互次数 no
tags array [1bcecc13-e873-499c-913c-d9246a898180] 标签的id no
start_at string 2019-05-23 23:59:59 开始时间 no
end_at string 2019-05-23 23:59:59 结束时间 no
返回
{ "data": [{ // 通话记录列表 "tags": [ // 本次通话被打上的子标签列表 { "id": "ee109a20-6b98-4463-94fe-ea730e2188c7", // 子标签id "name": "脏话", // 子标签名称 "description": "脏话", "color": "#2d8cf0", // 子标签颜色 "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9", "status": true, // 子标签状态 "created_at": "2020-03-06 21:55:56", "updated_at": "2020-03-06 21:55:56", "pivot": { // 子标签 - 母标签 的关联关系记录 "taggable_id": "80599bfe-7027-412f-adec-1f24075219ca", "tag_id": "ee109a20-6b98-4463-94fe-ea730e2188c7", "created_at": "2020-03-06 22:32:37", "updated_at": "2020-03-06 22:32:37" }, "tag_groups": [ // 此标签属于的母标签 { "id": "fbe408c5-f77f-49cd-9bd1-85ca0b434bcc", "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9", "name": "无意向", "created_at": "2020-03-06 21:54:58", "updated_at": "2020-03-06 21:54:58", "tag_scene_id": "a13ad9cb-d9be-4498-bfe3-cd32c677f0dd" // 母标签属于的业务场景 } ] } ], "tag_groups": [ // 命中的母标签列表 { "id": "f7eba8dd-3721-4e15-b197-6b0c16639eec", "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9", "name": "有意向", "created_at": "2020-03-06 21:54:51", "updated_at": "2020-03-06 21:54:51", "tag_scene_id": "a13ad9cb-d9be-4498-bfe3-cd32c677f0dd" }, { "id": "f7eba8dd-3721-4e15-b197-6b0c16639eec", "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9", "name": "有意向", "created_at": "2020-03-06 21:54:51", "updated_at": "2020-03-06 21:54:51", "tag_scene_id": "a13ad9cb-d9be-4498-bfe3-cd32c677f0dd", }, { "id": "fbe408c5-f77f-49cd-9bd1-85ca0b434bcc", "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9", "name": "无意向", "created_at": "2020-03-06 21:54:58", "updated_at": "2020-03-06 21:54:58", "tag_scene_id": "a13ad9cb-d9be-4498-bfe3-cd32c677f0dd" }, ], "operator_name": "联通", // 运营商 "id": "6d44d2f4-90f9-4621-8c77-e5e70c810623", // 本次通话记录的id "task_id": "234cdcac-501c-47b5-9c06-47a658f363b8",// 任务id "group_id": 299, // 话术组id "callid": "d6a577d4-7180-11e9-80bd-7fed30fcff3f", "score": 0, // 通话得分 "callee": "18810495721", // 被叫号码 "caller_number": "300708", // 主叫号码 "duration": 60080, "error_code": 0, "gender": 1, // 性别 "level_id": "e605e0b0-96b2-4af0-9b78-7cdd5fc6b783", "calldate": "2019-05-08 19:02:58", "bill": 31319, // 通话时间ms "hangupcause": "NORMAL_CLEARING", "hangupdate": "2019-05-08 19:03:58", "answerdate": "2019-05-08 19:03:26", "recordfile": "/mnt/smartivr/recordings/2019-05-08/18810495721.299.19-03-27.d6a577d4-7180-11e9-80bd-7fed30fcff3f.wav", // 全程通话录音在硬盘里的位置 "bridge_callid": null, "bridge_number": null, "bridge_calldate": null, "bridge_answerdate": null, "hangup_disposition": 1, // 挂断方 "created_at": "2019-05-08 19:03:27", "updated_at": "2019-05-08 19:03:59", "rounds": 0, // 通话轮数 "level_name": "D级(无意向)", "bredge_number": null, "read_at": "2020-03-06 23:06:46", // 查看时间 "province_id": 3, // 省id "city_id": 12, // 市id "operator": 2, // 运营商 "level": { // score对应评分等级 "id": "e605e0b0-96b2-4af0-9b78-7cdd5fc6b783", "name": "D级", "alias": "无意向", "color": "#000" }, "gender_str": "未知", // 性别 "hangup_disposition_str": "AI", // 挂断方 "city": { // 被叫号码的归属地 id: 12 pid: 3 city: "南京" area_code: "025" post_code: "210000" created_at: "2019-05-09 09:08:45" updated_at: "2019-05-09 09:08:45" }, "province": { // 被叫号码的归属地 "id": 3, "pid": null, "city": "江苏", "area_code": "0519", "post_code": "213000", "created_at": "2019-05-09 09:08:45", "updated_at": "2019-05-09 09:08:45" }, }], "total": 1, // 总计多少条数据 "last_page": 1 // 总计多少页(每页15条) }
字段说明 1.评分等级需要自己请求,接口在其他中; 2.标签需要自己请求,接口在其他中;
某任务的电话号码
接口:GET v1/task/number
params
参数 类型 示例 解释 required
task_id string 1bcecc13-e873-4910-913c-d9246a891280 外呼任务的id yes
page int 1 页码 yes
status array [0 ,1] 号码的状态 no
keyword string 18651683344 被叫号码 no
type array [‘lt’, ‘dx’, ‘yd’] 运营商 no
call_history int 1 是否要呼叫记录[不传或者传0为不要] No
status:
0等待呼叫、1呼叫成功、2线路故障、3拒接、4无应答/无人接听、5空号、6关机、7停机、8占线/用户正忙、9呼入限制、10欠费、11黑名单、12呼损
返回
{ "code": 200, "status": "ok", "message": "获取号码列表成功", "data": { "data": [ { "number": "18651683344", // 被叫号码 "city": "南京", // 号码地区 "pro": "江苏", // 号码地区 "mobile_type": "联通", // 号码运营商 "area_code": "025", "post_code": "210000", "id": 1691, "status_str": "呼叫成功", // 被叫号码状态 "callid": "90a48ed3-a5f6-4904-b1f3-a9ec883b069f",
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。