知识中心
所有文章
帮助中心
AI客户联络中心 升级日志
API文档
AI客户联络
API接口
【新】云节点列表
对话接口
白标接口及地址
【更新】线路列表
最后更新于 2023/12/14   阅读数 522

线路列表

当前伙伴的所有线路列表。

  • URL/agent-api/tenant/{id}/callerline

  • MethodGET

  • 需要鉴权

💡 注意:

  1. 原请求接口为GET /agent-api/callerline,新增参数云节点ID

  2. 如果仍使用老版本的接口,将使用系统默认的云节点ID,无法获取其他云节点的数据

  3. 老版接口将于2023年2月1日下线,请尽快进行更换

请求参数

参数

类型

必填

描述

id

string

Y

云节点ID

page

int

N

页码

per_page

int

N

页容量

user_id

string

N

所属用户ID

unused

bool

N

是否已分配(默认查询所有)

请求示例

GET /agent-api/tenant/f2d216a3-9ea5-4f1d-a170-ce9ebed49eaf/callerline?page=1&per_page=2

成功响应

条件:任务存在,且各项资源也存在(如转接组ID)。

状态码:200 OK

响应示例

{
    "code": 200,
    "status": "success",
    "message": "查看线路成功",
    "meta": {
        "has_pages": true,
        "total": 5,
        "last_page": 3,
        "current_page": 1,
        "per_page": "2"
    },
    "data": [
        {
            "id": "7aa839fb-4b04-40f3-ab16-0da39aeacf76",
            "name": "测试坐席10006-云蝠节点",
            "user": {
                "name": "测试33",
                "email": "test33@telrobot.net",
                "phone": "12311111111",
                "type_note": "客户"
            },
            "call_line": 1,
            "deadline_at": "2023-06-14 00:00:00",
            "available_time": 31536000,
            "begin_at": "2022-06-14 14:05:36",
            "available_at": "2023-06-14 14:05:36",
            "caller_number": "测试坐席10006",
            "tenant": {
                "id": "f2d216a3-9ea5-4f1d-a170-ce9ebed49eaf",
                "name": "云节点一"
            },
            "created_at": "2022-06-14 14:03:19",
            "updated_at": "2022-07-26 15:19:16",
            "description_server": null,
            "qr_code": null,
            "call_number": "223"
        },
        {
            "id": "a1b93390-3e6e-4bc4-b23b-5693484fd0f7",
            "name": "转接话术-云蝠节点",
            "user": {
                "name": "测试33",
                "email": "test33@telrobot.net",
                "phone": "12311111111",
                "type_note": "客户"
            },
            "call_line": 10,
            "deadline_at": "2023-06-28 00:00:00",
            "available_time": 31536000,
            "begin_at": "2022-06-28 15:18:11",
            "available_at": "2023-06-28 15:18:11",
            "caller_number": "转接话术",
            "tenant": {
                "id": "f2d216a3-9ea5-4f1d-a170-ce9ebed49eaf",
                "name": "云节点一"
            },
            "created_at": "2022-06-28 15:17:25",
            "updated_at": "2022-07-13 16:19:36",
            "description_server": null,
            "qr_code": null,
            "call_number": "223"
        }
    ]
}
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
plaintext

参数

类型

描述

id

string

线路id

name

string

线路名称

user

object

归属用户

call_line

int

总并发

deadline_at

string

最终截止日期

available_time

int

分配的时间(秒)

begin_at

string

开始使用的时间

available_at

string

可使用的时间

(和最终截止日期哪个早,以哪个为停止服务时间为准)

caller_number

string

线路名称(内部使用)

tenant

object

云节点

description_server

string

描述

qr_code

null

废弃

call_number

string

主叫号码

错误响应

错误1

条件:云节点ID不存在。

状态码200 OK

响应示例:

{
    "code": 1004,
    "status": "error",
    "message": "云节点不存在",
    "data": []
}
1
2
3
4
5
6
plaintext

注意事项

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

线路列表

请求参数

请求示例

成功响应

错误响应

错误1

注意事项