云蝠智能 AI知识中心
所有文章
完整版
完整版
客户端
API文档
升级日志
合作伙伴
基础知识
产品介绍
帮助中心
模型呼叫
对接文档
开发指引
API接口
【新】云节点列表
用户
子账户
任务
线路
话术分组
客户公海
合同管理
号码
通话记录
呼叫时间
用户凭证
回调黑名单
对话接口
系统账单
其他
回调
iFrame嵌套
升级日志
常见问题
行业案例
其他文档
2.0 任务列表
最后更新于 2025/03/13   阅读数 175

2.0 任务列表


  • 请求接口 /agent-api/new/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:任务暂停 3:执行中&等待执行)

💡请特别注意。

  1. 为了方便2.0外呼任务,可使用旧时间组 (dial_time_id),进行创建或更新2.0任务操作,但时间组中工作时间的更新,目前并未与使用其的2.0任务同步。

  2. 任务状态根据 enable  和 远程任务(new_task_extra) 中的 call_status 判断任务状态。

    enable (true | fasle)

    call_status (true | fasle)

    任务状态

    true

    true

    任务拨打中

    false

    false

    任务暂停中

    true

    false

    任务等待执行

  • 返回示例

{
    "code": 200,
    "status": "success",
    "message": "返回任务列表信息成功",
    "meta": {
        "has_pages": true,
        "total": 31,
        "last_page": 31,
        "current_page": 1,
        "per_page": "1"
    },
    "data": [
        {
            "uuid": "e5cb8746-411d-4d6d-a1fa-0fe030f00fad", // 任务id
            "name": "测试api接口创建-222", // 任务名称
            "create_datetime": "2024-12-04 11:17:34",// 创建时间
            "alter_datetime": "2024-12-04 11:17:37",
            "start": 0, // 废弃
            "enable": false, // 任务状态
            "maximumcall": 1,
            "call_per_second": 10, // 废弃
            "recycle_limit": 0,
            "random_assignment_number": 0,
            "disable_dial_timegroup": null,
            "dial_time_id": 5,
            "destination_extension": "102",
            "destination_dialplan": "XML",
            "destination_context": "default",
            "scheduling_policy_ratio": null,
            "scheduling_queue": null,
            "dial_format": "",
            "domain": null,
            "remark": null,
            "sort": 33,
            "originate_variables": "{execute_on_media=start_da}",
            "_originate_timeout": 60,
            "_origination_caller_id_number": "20000",
            "user_id": "b6d94bef-5ac2-4c6e-ba13-d2f8f124862b",
            "auto_recycle_rule_id": null,
            "clue_configuration_id": null,
            "deleted_at": null,
            "call_notify_type": 2,
            "call_pause_second": 0,
            "call_notify_fail_stop": 0,
            "bridge_group_id": null,
            "is_test": false,
            "is_top": 0,
            "empty_seat_stop": 0,
            "background_file_id": null,
            "background_file_name": null,
            "end_action": null,
            "task_type": 6,
            "line_callee": "",
            "cache_number_count": 0,
            "mode_id": null,
            "bridge_maximumcall": 0,
            "bridge_proportion": 0,
            "direct_bridge": 0,
            "direct_bridge_echo": 0,
            "llm_intention_id": 0,
            "restart_at": null,
            "enable_type": 0,
            "background_id": null, // 背景音id
            "background": "",
            "is_group_switch": 0,
            "task_extras": { // 本地任务
                "line": [],
                "stop_time": "2025-11-01 13:25:26",
                "work_hour": [ // 工作时间
                    {
                        "end": "19:00",
                        "wday": 1,
                        "begin": "03:00"
                    },
                    {
                        "end": "23:30",
                        "wday": 1,
                        "begin": "20:00"
                    },
                    {
                        "end": "19:00",
                        "wday": 2,
                        "begin": "03:00"
                    },
                    {
                        "end": "19:00",
                        "wday": 3,
                        "begin": "03:00"
                    },
                    {
                        "end": "23:30",
                        "wday": 3,
                        "begin": "20:00"
                    },
                    {
                        "end": "19:00",
                        "wday": 4,
                        "begin": "03:00"
                    },
                    {
                        "end": "23:30",
                        "wday": 4,
                        "begin": "20:00"
                    },
                    {
                        "end": "19:00",
                        "wday": 5,
                        "begin": "03:00"
                    },
                    {
                        "end": "19:00",
                        "wday": 6,
                        "begin": "03:00"
                    },
                    {
                        "end": "19:00",
                        "wday": 0,
                        "begin": "03:00"
                    }
                ],
                "work_week": [ //工作周
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    0
                ],
                "start_time": "2024-11-01 13:25:26" //任务开始时间
            },
            "status_str": "停止",
            "new_task_extra": { // 远程任务
                "name": "测试api接口创建-222",
                "enable": 0,
                "line": [],
                "limit": 1,
                "cps": 1,
                "start_time": "2024-11-01 13:25:26",
                "stop_time": "2025-11-01 13:25:26",
                "work_week": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    0
                ],
                "work_hour": [
                    {
                        "wday": "-1",
                        "begin": "03:00",
                        "end": "19:00"
                    },
                    {
                        "wday": 1,
                        "begin": "20:00",
                        "end": "23:30"
                    },
                    {
                        "wday": 3,
                        "begin": "20:00",
                        "end": "23:30"
                    },
                    {
                        "wday": 4,
                        "begin": "20:00",
                        "end": "23:30"
                    }
                ],
                "destination_extension": "102",
                "blacklist": "",
                "background": "",
                "call_status": false,
                "number_count": 0,
                "call_info": { // 当前任务线路拨打情况
                  "90611087-c2c2-4f04-8fe3-c8e33e5d1ffa": {  
                      "task_id": "cd355395-566d-4894-a2cb-b8900dca9dc5", // 任务id
                      "task_name": "测试任务",
                      "node_id": "2533f3f6-7ac1-4b55-b1de-7d308ce00d89", // 线路对应节点id
                      "line_id": "90611087-c2c2-4f04-8fe3-c8e33e5d1ffa", // 线路id
                      "line_name": "测试站ip对接线路", // 线路名称
                      "cps": 10, 
                      "limit": 10, // 并发数
                      "call_status": 1,
                      "dialed_number_total": 2, // 拨打了多少个号码
                      "answer_total": 1, // 总共接通多少号码
                      "gateway_error_hangup_total": 0,
                      "normal_hangup_total": 2, //总挂断
                      "bill": 8000,
                      "calling_count": 0,
                      "answering_count": 0
                  }
              }
            },
            "caller_line": null,
            "auto_recycle_rule": null,
            "group": {
                "id": 102,
                "name": "测试模型",
                "default": false
            },
            "llm_intention_config": null,
            "status": 1
        }
    ]
}
1
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
plaintext

参数

类型

解释

uuid

string

任务id

name

string

任务名称

create_datetime

datetime

创建日期

alter_datetime

datetime

修改日期

start

int

任务启动标识(已废弃)

enable

bool

任务状态

maximumcall

int

最大并发呼叫

call_per_second

int

CPS 每秒最大发起多少个呼叫

recycle_limit

int

号码最大回收次数(废弃)

random_assignment_number

int

是否随机分配号码(废弃)

disable_dial_timegroup

string

禁止呼叫时间组id

dial_time_id

int

呼叫时间id

destination_extension

int

话术组id

destination_dialplan

string

应答转接拨号方案

destination_context

string

应答后转接上下文

scheduling_policy_ratio

double

外呼比率(废弃)

scheduling_queue

string

调度队列(废弃)

dial_format

string

拨号串格式

domain

string

租户域名(废弃)

remark

string

任务别名(备注)

sort

int

排序

originate_variables

string

自定义外呼参数

originatetimeout

int

拨号超时

originationcaller_id_number

string

主叫号码

user_id

string

用户id

caller_line_id

string

线路id

auto_recycle_rule_id

string

重呼规则id

clue_configuration_id

string

线索配置id

deleted_at

datetime

删除时间

call_notify_url

string

挂断通知

call_notify_type

bool

通知类型 0不通知 1呼叫失败通知 2呼叫失败和成功都通知

call_pause_second

int

呼叫间隔

call_stop_notify_url

string

任务停止通知地址

call_notify_fail_stop

bool

任务停止标识

bridge_group_id

int

转接组id

is_test

int

测试任务标识

is_top

int

置顶

empty_seat_stop

bool

坐席为空停止标识

background_file_id

string

转接背景音id

background_file_name

string

转接背景音名称

end_action

int

任务结束动作 0-无操作 1-暂停任务释放并发 2-暂停任务锁定并发

task_type

int

任务类型

line_callee

string

线路呼入号码

cache_number_count

int

缓存号码数量

mode_id

int

数字人交互样式

bridge_maximumcall

int

转接最大并发数

bridge_proportion

int

并发比例

direct_bridge

int

转接

direct_bridge_echo

int

转接全忙进入话术标识

llm_intention_id

int

大模型意向标签配置id

restart_at

datetime

重启时间

enable_type

int

2.0启用类型标识 0外呼 1大模型外呼

background_id

int

背景音id

background

string

背景音地址

is_group_switch

int

自动切换模型标识

is_call_in

int

呼入标识

task_extras

json

任务额外信息

status_str

string

任务状态转译

new_task_extra

json

任务额外信息(2.0)

caller_line

json

关联线路信息

auto_recycle_rule

json

关联重呼规则信息

group

json

关联话术组信息

llm_intention_config

json

关联大模型意向配置信息

status

int

状态

未能解决您的问题?请联系
本篇目录

2.0 任务列表