批量获取任务拨打明细
更新时间:2025-09-04
批量获取任务拨打明细
URL
https://aiob-open.baidu.com/api/v3/console/apitask/create
https://aicc.bce.baidu.com/api/v3/console/apitask/create(即将下架)
HTTP Method
POST
Header
参数名称 | 是否必须 | 说明 | 示例 |
---|---|---|---|
Content-Type | 是 | application/json | application/json |
Authorization | 是 | 参考「生成认证Token」文档 | cc-api-auth-v1/5b050c050f5a4e74b8c20bf512e39c1d/2021-04-13T08:05:43Z/1800000/host;x-bce-date/746ed9ad706c379f31bafc292e3c720797e39bb7f08ce5f641d657e14e42dd33 |
Body
参数名称 | 类型 | 是否必须 | 说明 | 示例 |
---|---|---|---|---|
searchStartTime | string | 是 | 拨打时间 | “2025-09-01 17:00:00” |
searchEndTime | string | 是 | 拨打时间 | “2025-09-10 17:00:00” |
nextCursor | object[] | 否 | 第一次不传,后续根据响应传入 | [1755733242000, "4908141290684416_xxxx"] |
ps | int | 否 | 页码数,最大不超过200,默认是100 | 100 |
请求参数
名称 | 类型 | 备注 |
---|---|---|
code | int | http响应码,比如200 |
msg | string | 响应信息,成功为success,失败时为具体原因 |
data | obj | 成功时为任务列表数据 |
Data数据
名称 | 类型 | 备注 |
---|---|---|
nextCursor | array | 否 |
hasMore | boolean | 是否还有后续 |
total | Integer | 总个数 |
items | array | 任务详情信息列表 |
requestId | String | 请求Id |
Items数据
参数名称 | 类型 | 说明 |
---|---|---|
tenantId | Long | 租户Id,一个租户的唯一Id |
sessionId | string | 会话Id,唯一标识 |
collectInfo | obj | 信息收集,流程中收集的信息 |
intent | string | 意向,在外呼机器人·流程节点·信息收集,配置key为"意向",对应的value值 |
callerNum | String | 主叫号码 |
endType | int | 接通状态,1-已接通 0-未接通 2-待拨打 |
endTypeReason | string | 未接通原因,string//空号:notexist,停机:stopped, 关机:poweroff,无法接通:cantbeconnected,用户忙:linebusy, 规则限拨:ruleslimit, 超过截止时间:beyonddeadline, 黑名单:blacklist, 其他原因:else, 成功:success |
endTime | String | 呼叫结束时间 |
contactUUID | String | 生成通话录音唯一标识,可通过该标识, 获取录音 |
durationTimeLen | int | 拨号总时长,单位为秒 |
ringingTimeLen | int | 振铃时长,单位为秒 |
talkingTimeLen | int | 对话时长,单位为秒 |
talkingStartTime | string | 通话开始时间 |
startTime | string | 开始呼叫时间 |
memberId | long | 号码组ID |
mobile | string | 被叫号码 |
robotId | String | 机器人ID |
action | array | 动作,HUNGUP:挂机 |
isRobotHangup | boolean | 是否机器人主动挂机 |
dialogVar | obj | 变量,导入名单的变量 |
transResult | int | 转人工状态 |
extJson | String | 客户传递的随路数据(客户传递的原样返回) |
recordFileUrl | String | 通话录音相对路径 |
sipCode | int | 号线状态 |
sipInfo | String | 号线状态解释 |
tagExtractInfo | Map | 标签抽取,具体标签根据机器人配置确定 |
batchMarking | String | 批次标记 |
secretType | int | 加密类型 |
secretId | Long | 密钥Id |
customTagList | List | 自定义标签 |
taskId | Long | 任务Id |
taskName | String | 任务名称 |
robotName | String | 机器人名称 |
callTimes | int | 拨打次数 |
memberCallTimes | int | 号码组拨打次数 |
completeType | int | 业务完成状态(是否触发流程片段中的完成节点),2-完成 3-未完成 |
callType | int | 呼叫类型,0-首次呼叫;1-重试;2-预约呼叫;3-实时呼叫 |
smsStatus | int | 短信状态 |
contactId | String | 联系Id |
fileId | String | 文件Id |
agentEndTime | String | 坐席挂断时间 |
smsVar | obj | 短信变量 |
createTime | Long | 创建时间 |
executiveStrategy | List | 完成节点 |
isAnswer | boolean | 是否接通 |
talkingTurn | int | 对话轮次 |
totalCalls | int | 拨打总次数 |
connectedTimes | int | 接通次数 |
record | array | 对话内容 |
Record数据
参数名称 | 类型 | 说明 |
---|---|---|
role | string | 会话角色,分为机器人侧(speech)和客户侧(voice) |
timestamp | long | 会话时间戳,微秒 |
contextText | string | 会话文本 |
sn | String | 语音Id |
intent | string | 触发的意图 |
start | string | 片段开始时间,基于对话开始的相对时间 |
stop | string | 片段结束时间,基于对话开始的相对时间 |
timeLen | long | 片段时长,毫秒 |
interrupted | boolean | 打断标识 |
interruptedTime | string | 打断时间(基于对话开始的相对时间) |
silent | boolean | 是否静默 |
nodeInfo | String | 节点信息,base64加密 |
EndTypeReason 列表
未接通原因名称 | 类型 | 说明 |
---|---|---|
blacklist | string | 黑名单 |
notexist | string | 空号 |
stopped | string | 停机 |
poweroff | string | 关机 |
cantbeconnected | string | 无法接通 |
linebusy | string | 用户忙 |
ruleslimit | string | 规则限拨 |
beyonddeadline | string | 超过截止时间 |
nocallphone400 | string | 禁拨-400号码 |
nocallphone800 | string | 禁拨-800号码 |
nocallfixedphone | string | 禁拨-固话 |
nocalltelephone | string | 禁拨-手机号码 |
nocallphone95 | string | 禁拨-95号码 |
nocallphone96 | string | 禁拨-96号码 |
nocallphoneelse | string | 禁拨-其他 |
tasknotdial | string | 本任务不再拨打 |
mobilerepeat | string | 号码重复过滤 |
memberexistblacklist | string | 号码组存在黑名单 |
forbiddennum | string | 自定义禁呼号码 |
memberexistforbiddennum | string | 号码组存在自定义禁呼号码 |
else | string | 其他原因 |
nooneheard | string | 无人接听 |
请求示例
Plain Text
1{
2 "searchStartTime": "2025-08-20 00:00:00",
3 "searchEndTime": "2025-08-20 23:59:59",
4 "limit": 2,
5 "nextCursor": [1755733242000,"4908141290684416_31a8f0db49cd4084af09c740961ac555"] // 第一次不传,后续根据响应传入
6}
返回结果
Plain Text
1{
2 "time": 1756719140501,
3 "code": 200,
4 "msg": "OK",
5 "data": {
6 "items": [
7 {
8 "tenantId": 10183,
9 "memberId": 4908171791663104,
10 "sessionId": "4908171455922176_57b596a1934447328d627dc871e663f5",
11 "collectInfo": {},
12 "record": [
13 {
14 "role": "speech",
15 "timestamp": 1755705340791,
16 "content": null,
17 "contextText": "你好,这是线上监控使用的机器人,测试下打电话正不正常",
18 "sn": "69dcf187-b8df-452e-9e53-9f80d8074edc",
19 "intent": "NOINTENT",
20 "start": "00:00.046",
21 "stop": "00:05.555",
22 "timeLen": 5509,
23 "interrupted": false,
24 "interruptedTime": null,
25 "silent": false,
26 "nodeInfo": "eyJwcm9jZXNzTmFtZSI6Iue6v+S4iuebkeaOp+acuuWZqOS6uua1geeoi++8jOWLv+WKqCIsIm5vZGVOYW1lIjoi5byA5Zy655m96IqC54K5X3Nxa2d5anR3IiwiaW50ZW50IjoiIiwiZW50aXR5IjpbXSwic3lzdGVtRXZlbnQiOiIiLCJmYXEiOiIifQ=="
27 },
28 {
29 "role": "voice",
30 "timestamp": 1755705347893,
31 "content": "您好",
32 "contextText": "您好",
33 "sn": "1c5d2e507dde11f0_10_1",
34 "intent": null,
35 "start": "00:04.450",
36 "stop": "00:06.430",
37 "timeLen": 1980,
38 "interrupted": false,
39 "interruptedTime": null,
40 "silent": false,
41 "nodeInfo": "eyJwcm9jZXNzTmFtZSI6Iue6v+S4iuebkeaOp+acuuWZqOS6uua1geeoi++8jOWLv+WKqCIsIm5vZGVOYW1lIjoi5YWc5bqV6IqC54K5X3ZyNmxhdXRxIiwiaW50ZW50IjoiIiwiZW50aXR5IjpbXSwic3lzdGVtRXZlbnQiOiIiLCJmYXEiOiIifQ=="
42 },
43 {
44 "role": "speech",
45 "timestamp": 1755705348157,
46 "content": "您好",
47 "contextText": "收到,说明打电话正常,再见",
48 "sn": "1c5d2e507dde11f0_10_1",
49 "intent": "NOINTENT",
50 "start": "00:07.412",
51 "stop": "00:10.548",
52 "timeLen": 3136,
53 "interrupted": false,
54 "interruptedTime": null,
55 "silent": false,
56 "nodeInfo": "eyJwcm9jZXNzTmFtZSI6Iue6v+S4iuebkeaOp+acuuWZqOS6uua1geeoi++8jOWLv+WKqCIsIm5vZGVOYW1lIjoi5YWc5bqV6IqC54K5X3ZyNmxhdXRxIiwiaW50ZW50IjoiIiwiZW50aXR5IjpbXSwic3lzdGVtRXZlbnQiOiIiLCJmYXEiOiIifQ=="
57 }
58 ],
59 "intent": null,
60 "callerNum": "2024071701",
61 "endType": 1,
62 "endTypeReason": null,
63 "contactUUID": "1755705335808213_064385",
64 "durationTimeLen": 16,
65 "ringingTimeLen": 4,
66 "talkingTimeLen": 10,
67 "startTime": "2025-08-20 23:55:35",
68 "ringStartTime": "2025-08-20 23:55:35",
69 "talkingStartTime": "2025-08-20 23:55:40",
70 "endTime": "2025-08-20 23:55:51",
71 "mobile": "17749157873",
72 "robotId": "b5273fd6-02e3-4632-afb8-d0bffeed7de8",
73 "action": null,
74 "isRobotHangup": true,
75 "dialogVar": {
76 "name": "张嘉斌",
77 "age": "23"
78 },
79 "transResult": 0,
80 "extJson": "监控原路返回数据,test",
81 "recordFileUrl": "2025/08/20/10183/23/1755705335780778_121303_1755705335808213_064385_23_55_40.wav",
82 "sipCode": "200",
83 "sipInfo": "OK",
84 "tagExtractInfo": {},
85 "batchMarking": null,
86 "secretType": 2,
87 "secretId": null,
88 "customTagList": null,
89 "taskId": 4908171455922176,
90 "taskName": "线上监控任务1755705308",
91 "robotName": "线上监控机器人勿动0717",
92 "callTimes": 1,
93 "memberCallTimes": null,
94 "completeType": 3,
95 "callType": 0,
96 "smsStatus": null,
97 "contactId": "1755705335780778_121303",
98 "fileId": null,
99 "agentEndTime": null,
100 "smsVar": null,
101 "promptVar": {},
102 "createTime": 1755705354000,
103 "executiveStrategy": null,
104 "isAnswer": true,
105 "talkingTurn": 2,
106 "totalCalls": 1,
107 "connectedTimes": null
108 },
109 {
110 "tenantId": 10183,
111 "memberId": 4908141626032128,
112 "sessionId": "4908141290684416_31a8f0db49cd4084af09c740961ac555",
113 "collectInfo": {},
114 "record": [
115 {
116 "role": "speech",
117 "timestamp": 1755704447054,
118 "content": null,
119 "contextText": "你好,这是线上监控使用的机器人,测试下打电话正不正常",
120 "sn": "5a9f5c96-4521-48e7-9740-3aa6a739aa3a",
121 "intent": "NOINTENT",
122 "start": "00:00.050",
123 "stop": "00:05.547",
124 "timeLen": 5497,
125 "interrupted": false,
126 "interruptedTime": null,
127 "silent": false,
128 "nodeInfo": "eyJwcm9jZXNzTmFtZSI6Iue6v+S4iuebkeaOp+acuuWZqOS6uua1geeoi++8jOWLv+WKqCIsIm5vZGVOYW1lIjoi5byA5Zy655m96IqC54K5X3Nxa2d5anR3IiwiaW50ZW50IjoiIiwiZW50aXR5IjpbXSwic3lzdGVtRXZlbnQiOiIiLCJmYXEiOiIifQ=="
129 },
130 {
131 "role": "voice",
132 "timestamp": 1755704454140,
133 "content": "您好",
134 "contextText": "您好",
135 "sn": "07a93bf47ddc11f0_10_1",
136 "intent": null,
137 "start": "00:04.431",
138 "stop": "00:06.411",
139 "timeLen": 1980,
140 "interrupted": false,
141 "interruptedTime": null,
142 "silent": false,
143 "nodeInfo": "eyJwcm9jZXNzTmFtZSI6Iue6v+S4iuebkeaOp+acuuWZqOS6uua1geeoi++8jOWLv+WKqCIsIm5vZGVOYW1lIjoi5YWc5bqV6IqC54K5X3ZyNmxhdXRxIiwiaW50ZW50IjoiIiwiZW50aXR5IjpbXSwic3lzdGVtRXZlbnQiOiIiLCJmYXEiOiIifQ=="
144 },
145 {
146 "role": "speech",
147 "timestamp": 1755704454475,
148 "content": "您好",
149 "contextText": "收到,说明打电话正常,再见",
150 "sn": "07a93bf47ddc11f0_10_1",
151 "intent": "NOINTENT",
152 "start": "00:07.471",
153 "stop": "00:10.607",
154 "timeLen": 3136,
155 "interrupted": false,
156 "interruptedTime": null,
157 "silent": false,
158 "nodeInfo": "eyJwcm9jZXNzTmFtZSI6Iue6v+S4iuebkeaOp+acuuWZqOS6uua1geeoi++8jOWLv+WKqCIsIm5vZGVOYW1lIjoi5YWc5bqV6IqC54K5X3ZyNmxhdXRxIiwiaW50ZW50IjoiIiwiZW50aXR5IjpbXSwic3lzdGVtRXZlbnQiOiIiLCJmYXEiOiIifQ=="
159 }
160 ],
161 "intent": null,
162 "callerNum": "2024071701",
163 "endType": 1,
164 "endTypeReason": null,
165 "contactUUID": "1755704442055812_580769",
166 "durationTimeLen": 15,
167 "ringingTimeLen": 4,
168 "talkingTimeLen": 10,
169 "startTime": "2025-08-20 23:40:42",
170 "ringStartTime": "2025-08-20 23:40:42",
171 "talkingStartTime": "2025-08-20 23:40:46",
172 "endTime": "2025-08-20 23:40:57",
173 "mobile": "17749157873",
174 "robotId": "b5273fd6-02e3-4632-afb8-d0bffeed7de8",
175 "action": null,
176 "isRobotHangup": true,
177 "dialogVar": {
178 "name": "张嘉斌",
179 "age": "23"
180 },
181 "transResult": 0,
182 "extJson": "监控原路返回数据,test",
183 "recordFileUrl": "2025/08/20/10183/23/1755704442016888_447631_1755704442055812_580769_23_40_46.wav",
184 "sipCode": "200",
185 "sipInfo": "OK",
186 "tagExtractInfo": {},
187 "batchMarking": null,
188 "secretType": 2,
189 "secretId": null,
190 "customTagList": null,
191 "taskId": 4908141290684416,
192 "taskName": "线上监控任务1755704409",
193 "robotName": "线上监控机器人勿动0717",
194 "callTimes": 1,
195 "memberCallTimes": null,
196 "completeType": 3,
197 "callType": 0,
198 "smsStatus": null,
199 "contactId": "1755704442016888_447631",
200 "fileId": null,
201 "agentEndTime": null,
202 "smsVar": null,
203 "promptVar": {},
204 "createTime": 1755704460000,
205 "executiveStrategy": null,
206 "isAnswer": true,
207 "talkingTurn": 2,
208 "totalCalls": 1,
209 "connectedTimes": null
210 }
211 ],
212 "hasMore": true,
213 "nextCursor": [
214 1755733242000,
215 "4908141290684416_31a8f0db49cd4084af09c740961ac555"
216 ],
217 "requestId": "28a74c54dd2e48efb40563112a34166b",
218 "total": 96
219 }
220}