知识中心
所有文章
帮助中心
AI客户联络中心 升级日志
API文档
AI客户联络
API接口
【新】云节点列表
对话接口
白标接口及地址
获取可用的标签
最后更新于 2022/10/10   阅读数 257

获取可用的标签


  • 请求接口 /agent-api/tag/{user_id}/usable_tags

  • 请求方式 GET

  • 路由参数

参数

类型

示例

解释

是否必填

user_id

string

4d99d91c-f5d9-49da-88da-758977cc58a9

用户id

  • 请求参数

参数

类型

示例

解释

是否必填

page

int

1

页码

status

array

[1,0]

标签状态 1:启用 0:禁用 

不传此参数默认返回的是启用的标签

  • 返回结果

    {
        "code": 200,
        "status": "success",
        "message": "查看可以的标签列表成功",
        "data": [
            {
                "id": "a2dfab68-3861-4baa-994e-6fd3276ad1a0", // 标签id
                "name": "在忙", // 标签名称
                "description": "在忙", // 标签描述
                "color": "#d52b79", // 标签颜色
                "user_id": "f00c8abc-433f-4666-a9d6-70479605ced1", // 用户id
                "status": 1, // 是否可用
                "created_at": "2020-05-15 10:38:19", // 创建时间
                "updated_at": "2020-05-15 10:38:19", // 更新时间
                "tag_groups": [ // 所属母标签
                    {
                        "id": "cf70ada2-fc8b-428f-bf44-d006be3c53bb", // 母标签id
                        "user_id": "f00c8abc-433f-4666-a9d6-70479605ced1", // 用户id
                        "name": "否定", // 母标签名称
                        "created_at": "2020-05-15 10:38:19", // 创建时间
                        "updated_at": "2020-05-15 10:38:19", // 更新时间
                        "tag_scene_id": "0e62b98f-a5b9-46f8-ad95-dd18e0bb062e", // 业务场景id
                        "pivot": {
                            "tag_id": "a2dfab68-3861-4baa-994e-6fd3276ad1a0",
                            "tag_group_id": "cf70ada2-fc8b-428f-bf44-d006be3c53bb",
                            "created_at": "2020-05-15 10:38:19",
                            "updated_at": "2020-05-15 10:38:19"
                        },
                        "tag_scene": { // 业务场景详情
                            "id": "0e62b98f-a5b9-46f8-ad95-dd18e0bb062e", // 业务场景id
                            "name": "售房场景", // 业务场景名称
                            "description": "我是描述2", // 业务场景描述
                            "user_id": "f00c8abc-433f-4666-a9d6-70479605ced1",
                            "created_at": "2020-03-03 10:36:33",
                            "updated_at": "2020-03-03 10:36:33"
                        }
                    }
                ]
            },
            {
                "id": "2e491e98-c4cd-491a-95b0-850ceaf4adba",
                "name": "有意向",
                "description": "有意向",
                "color": "#c142ef",
                "user_id": "f00c8abc-433f-4666-a9d6-70479605ced1",
                "status": 1,
                "created_at": "2020-05-15 10:38:18",
                "updated_at": "2020-05-15 10:38:18",
                "tag_groups": [
                    {
                        "id": "5d9ea816-f04b-4c23-b9db-18d92e26b9a8",
                        "user_id": "f00c8abc-433f-4666-a9d6-70479605ced1",
                        "name": "肯定",
                        "created_at": "2020-05-15 10:38:18",
                        "updated_at": "2020-05-15 10:38:18",
                        "tag_scene_id": "c74ffa32-373d-46b1-b972-209d9cadc224",
                        "pivot": {
                            "tag_id": "2e491e98-c4cd-491a-95b0-850ceaf4adba",
                            "tag_group_id": "5d9ea816-f04b-4c23-b9db-18d92e26b9a8",
                            "created_at": "2020-05-15 10:38:18",
                            "updated_at": "2020-05-15 10:38:18"
                        },
                        "tag_scene": {
                            "id": "c74ffa32-373d-46b1-b972-209d9cadc224",
                            "name": "通用",
                            "description": "通用",
                            "user_id": "f00c8abc-433f-4666-a9d6-70479605ced1",
                            "created_at": "2020-05-15 10:38:18",
                            "updated_at": "2020-05-15 10:38:18"
                        }
                    }
                ]
            }
        ],
        "meta": {
            "has_pages": false, // 是否需要分页
            "total": 1, // 共多少项
            "last_page": 1, // 最后页码
            "current_page": 1, // 当前页码
            "per_page": 15 // 页容量
        }
    }
    
    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
    plaintext
未能解决您的问题?请联系
本篇目录

获取可用的标签