知识中心
所有文章
帮助中心
AI客户联络中心 升级日志
API文档
AI客户联络
API接口
【新】云节点列表
对话接口
白标接口及地址
客户公海筛选
最后更新于 2022/10/20   阅读数 263

客户公海筛选


  • 请求接口 agent-api/user/{user_id}/get_customer

  • 请求方式 GET

  • 请求参数

参数

类型

示例

解释

必填

user_id

string

5832d184-dd53-42a0-8ace-0bf8d660f4cc

用户id

page

int

1

分页

per_page

int

默认为15

分页数量

components

array

[]

客户公海组件信息

phone

string

“13012121212”

手机号码 可开启加密

email

string

123456@qq.com

邮箱

company

string

xxx公司

公司

created_at

array

[“2021-06-30 13:20:28”,“2021-06-30 15:20:28”]

号码创建时间

operator

array

[1]

号码运营商(1代表电信,2代表联通,3代表移动)

encryption

bool

false

是否加密号码(开启接口加密后有效)

  • 请求案例

    {
       "components":[
           {
               "id":"280f5b43-0777-479d-b735-7270790aee92",  //客户公海模板的ID
               "value":"腾讯"                                //客户公海模板的值
           }
       ],
       "phone":"13012121212",
       "email":"123456@qq.com",
       "company":"xxx公司",
       "created_at":["2021-06-30 13:20:28","2021-06-30 13:25:28"],
       "operator":[1],
        "encryption":false
    }
    
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    plaintext
  • 说明

  • components中的id为组件的id,value为对应的值,值可以去获取公海模板的接口中获取

  • 返回

    {
        "code": 200,
        "status": "success",
        "message": "筛选客户公海列表成功",
        "meta": {
            "has_pages": false,
            "total": 6,
            "last_page": 1,
            "current_page": 1,
            "per_page": 15
        },
        "data": [
            {
                "id": "bb83e44b-5158-47d3-862f-0579e95df0cf",
                "user_id": "f00c8abc-433f-4666-a9d6-70479605ced1",
                "phone": "13012121212",
                "company": "xxx公司",
                "email": "123456@qq.com",
                "sort": 1,
                "created_at": "2021-06-30 13:01:03",
                "updated_at": "2021-06-30 13:29:03",
                "province_id": 465,
                "city_id": 629,
                "operator": 1,
                "extra": null,
                "operator_name": "电信"
            }
        ]
    }
    
    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
    plaintext
未能解决您的问题?请联系
本篇目录

客户公海筛选