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

线路列表

当前伙伴的所有线路列表

  • URL/agent-api/new_line_list

  • MethodGET

  • 需要鉴权

  • 请求参数

参数

类型

必填

描述

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
plaintext

参数

类型

描述

id

string

线路id

name

string

线路名称

user_id

string

创建用户id

description

string

备注

type

int

线路类型

【1:外部线路,4:人工线路】

call_line

int

线路总并发数量

origination_caller_id_number

string

主叫号码

line_allocation

“分配线路”详细信息

line_allocation.belong_user

string

”分配线路“所属用户id

line_allocation.line_concurrency

int

”分配线路“总量并发

line_allocation.price

double

”分配线路“终端价格

line_allocation.agent_cost

double

”分配线路“代理商线路成本

line_allocation.begin_at

string

”分配线路“开始时间

line_allocation.deadline_at

string

”分配线路“截至日期

line_allocation.available_time

int

”分配线路“可使用时长

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

线路列表