线路列表
最后更新于 2024/12/12 阅读数 11
线路列表
当前伙伴的所有线路列表
URL:
/agent-api/new_line_list
Method:
GET
需要鉴权:是
请求参数
参数 | 类型 | 必填 | 描述 |
id | string | Y | 云节点ID |
page | int | N | 页码 |
per_page | int | N | 页容量 |
user_id | string | N | 所属用户ID |
请求示例
成功响应
状态码:200 OK
响应示例
{
"code": 200,
"status": "success",
"message": "返回所属代理线路列表成功",
"meta": {
"has_pages": true,
"total": 2,
"last_page": 2,
"current_page": 1,
"per_page": "1"
},
"data": [
{
"id": "29c39ec4-b292-4af9-a88b-922d61866aag",
"robot_cli_node_id": "2533f3f6-7ac1-4b55-b1de-7d308ce00d89",
"user_id": "88cdf05c-b63a-4b82-a7f1-119a007fa9e2",
"gateway_id": 2,
"extension_id": null,
"name": "修改线路测试1111",
"description": "400-",
"type": 1, // 线路类型
"call_line": 100, // 线路并发
"call_number_prefix": "",
"origination_caller_id_number": "",
"dial_string": "",
"destination_prefix": "",
"created_at": "2024-09-04 21:24:23",
"updated_at": "2024-09-03 16:55:08",
"bind_type_str": "IP",
"line_allocation": [ // 分配线路信息
{
"id": 11,
"line_id": "29c39ec4-b292-4af9-a88b-922d61866aag",
"belong_user": "b6d94bef-5ac2-4c6e-ba13-d2f8f124862b",
"name": null,
"line_concurrency": 1,
"price": 0,
"agent_cost": 0.13,
"begin_at": "2024-11-28 15:32:14",
"deadline_at": "2025-11-28 00:00:00",
"available_time": 31536000,
"created_at": "2024-11-28 15:32:14"
}
]
}
]
}
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
plaintext2
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
评价这篇文档
有帮助
没帮助
未能解决您的问题?请联系
在线客服