任务列表
最后更新于 2023/07/05 阅读数 1174
任务列表
此接口【v1.2.31版本有变动】 查看变更日志
请求接口
/agent-api/user/{user_id}/task
请求方式
GET
路由参数
参数
类型
示例
解释
必填
user_id
string
5832d184-dd53-42a0-8ace-0bf8d660f4cc
用户id
是
请求参数
参数
类型
示例
解释
必填
page
int
1
页码
否
per_page
int
15
每页个数
否
name
string
任务
任务名称
否
status
int || array
1 || [1,2]
1 :暂停中 2:执行中 3:等待执行
否
sub_user_id
string
91f9254f-ca58-49af-be34-8370d7549d73
子账户id(传递此参数则是对子账户操作)
否
注意 :传递请求参数status 以数组类型传递时,数组中出现不包含解释中的固定参数时,将会返回未筛选状态的数据。
返回示例
{ "code": 200, "status": "success", "message": "返回任务列表信息", "data": [ { "uuid": "0a1fd4ea-3bb6-4511-8-1c7931a22d55", // 任务id "name": "0616", // 任务名称 "create_datetime": "2020-06-16 16:33:28", // 任务创建时间 "alter_datetime": null, "start": 0, // 已废弃 任务是否开启,1开启、0暂停 "maximumcall": 1, // 最大并发 "call_per_second": 0, // 通话间隔,一般设置成0 "recycle_limit": 0, // 已废弃 "random_assignment_number": 0, // 已废弃 "disable_dial_timegroup": "8ae402ae-4af9-4c2a-914c-e1efae399e", // 已废弃 禁呼时间组id "dial_time_id": 1505,//呼叫时间组ID "status": 2, //任务状态枚举 1-暂停中 2-执行中 3-等待执行 "status_str": "执行中",//任务状态描述 "destination_extension": 5, // 使用话术组id "destination_dialplan": "XML", "destination_context": "default", "llm_intention_id": 38, //大模型质检配置id "scheduling_policy_ratio": null, "scheduling_queue": null, "dial_format": "{origination_caller_id_number701}sofia/gateway/20050701/%s", "domain": null, "remark": null, // 任务备注 "sort": 0, "originate_variables": "{execute_on_ia=start_da2}", "_originate_timeout": 60, // 呼叫超时时间,没特殊需求为60 "_origination_caller_id_number": "", "user_id": "f00c8abc-433f-466-70479605ced1", // 用户id "caller_line_id": "a62bdf07-df18-0f-07b411df4b6e", // 线路id "bridge_group_id": 3, // 转接组id "auto_recycle_rule_id": 4, // 自动重呼规则id "call_notify_url": "http://127.0.0.1/apgup_ntify", "call_notify_type": 2, "call_pause_second": 10, "deleted_at": null, "group": {//话术组 "id": 1,//话术组id "name": "话术组1",//话术组名称 "default": false }, "components": [ //任务绑定的常规话术使用的自定义组件 { "id": "1250e349-7a58-454b-9f66-ff33045dcca9", "name": "分机号", "type": "text", "sort": 5, "validate": [ "sometimes" ] } ], "caller_line": { // 线路详情 "id": "a62bdf07-d960f-07b411df4b6e", "name": "成都平安小020050701", "user_id": "f00c8abc-433f-4479605ced1", "description": null, "deadline_at": "2020-07-01 00:00:00", "available_time": 31536000, "begin_at": "2020-05-07 09:28:57", "call_line": 13, "call_line_used": 6, "call_number_prefix": "", "is_call_number_enable": 1, "is_call_number_prefix_editable": 0, "dial_string": "{origination_caller_id_number=20701}sofia/0701/%s", "dial_string_mode": 2, "db_public_id": 1, "db_private_id": null, "node_ip": "59.111.104.142", "node_status": "1", "created_at": "2020-05-07 09:31:03", "updated_at": "2020-06-10 13:37:14", "feature": 7 }, "auto_recycle_rule": { // 自动重呼规则详情 "id": 4, "user_id": "f00c8abc-433666-a9d6-70479605ced1", "name": "测试自动重呼", "remark": "测试自动重呼", "status": true, "created_at": "2020-01-14 14:00:09", "updated_at": "2020-01-14 14:00:09", "is_default": null, "type": 1, "configs": null }, "disable_time_group": { // 已废弃 禁呼时间组详情 "uuid": "8ae402ae-4af9-4c2ac-96e1efae399e", "name": "默认禁止呼叫时间:00:00:00-08:00:00,21:00:00-23:59:59", "domain": "", "user_id": "4d99d91c-f5d9-49da-8-758977cc58a9", "created_at": null, "updated_at": null }, "dial_time_group": { // 呼叫时间组 "id": 1505, "name": "周一8-12", "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9", "content": [ { "week": 1, "times": [ { "end_time": "12:00", "begin_time": "08:00" } ] } ], "is_default": false, "skip_holiday": false, "remark": null, "created_at": "2022-01-14 15:33:14", "updated_at": "2022-01-17 15:49:19" }, } ], "meta": { // 分页详情 "has_pages": false, // 是否需要分页 "total": 3, // 共多少项 "last_page": 1, // 最后页码 "current_page": 1, // 当前页码 "per_page": 15 // 页容量 } }
1text
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
评价这篇文档
有帮助
没帮助
未能解决您的问题?请联系
在线客服
