接口文档版本:1.0.16
最后更新:2026-04-05
历史文档:https://doc1.bangwo8.com/
https://www.bangwo8.com/api/v1https://abtest.bangwo8.com/api/v1OAuth2 Bearer TokenAuthorization: Bearer {access_token}Authorization: Basic {d2F5LWRyZWFtOjEyMzQ1Ng==}注意: 特殊场景下也可以 使用Basic Auth,请尽可能使用 OAuth2 Bearer Token 认证方式。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| Authorization | string | 是 | 认证信息 |
| Requestid | string | 否 | 请求唯一 ID,用于防止重复请求 |
| Content-Type | string | POST/PUT 时必填 | application/json |
{
"supports": [...],
"count": "10"
}{
"status": "0",
"message": "Insert ok",
"data": false
}{
"errcode": "100047",
"errmsg": "Invalid resource URI"
}| 状态码 | 说明 |
|---|---|
| 200 | 成功 |
| 401 | 认证失败 |
| 403 | 权限不足 |
| 404 | 资源不存在 |
| 500 | 服务器错误 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| created_start | string | 否 | 创建时间开始(含当天) |
| created_end | string | 否 | 创建时间结束(含当天) |
| created_order | string | 否 | 创建时间排序 asc-升序 desc-降序 |
| page | string | 否 | 页数 |
| per_page | string | 否 | 每页大小 |
| updated_start | string | 否 | 更新时 间开始(含当天) |
| updated_end | string | 否 | 更新时间结束(含当天) |
| updated_order | string | 否 | 更新时间排序 asc-升序 desc-降序 |
| deStat | string | 否 | 是否包含已删除数据,0-不包含 1-包含 |
| 字段 | 类型 | 说明 |
|---|---|---|
| users | array | 联系人列表 |
| users[].cId | string | 联系人 ID |
| users[].name | string | 姓名 |
| users[].mobile | string | 手机号 |
| users[].email | string | 邮箱 |
| users[].fixnumber | string | 固定电话 |
| users[].position | string | 职位 |
| users[].QQ | string | QQ 号码 |
| users[].note | string | 备注 |
| users[].companyId | string | 公司 ID |
| users[].supportId | string | 客服 ID |
| users[].multiServiceList | string | 多服务列表 |
| users[].default | string | 默认服务 |
| users[].service_groupid | string | 服务组 ID |
| users[].createDT | string | 创建时间 |
| users[].updateDT | string | 更新时间 |
| users[].tableName | string | 表名 |
| users[].uniqueId | string | 唯一 ID |
| users[].custom_fields | array | 自定义字段 |
| users[].state | string | 状态 |
| count | string | 总数 |
| previous_page | string | 上一页 URL |
| next_page | string | 下一页 URL |
{
"users": [
{
"cId": "6454743",
"name": "",
"mobile": "",
"email": "",
"fixnumber": "",
"position": "",
"QQ": "",
"note": "",
"companyId": "0",
"supportId": "0",
"multiServiceList": "",
"default": "",
"service_groupid": "0",
"createDT": "2017-10-16 13:59:01",
"updateDT": "2023-03-18 06:50:48",
"tableName": "",
"uniqueId": "",
"custom_fields": [
{
"key": "field_2",
"value": "0"
}
],
"state": "1"
}
],
"count": "219",
"previous_page": "",
"next_page": "https://preview.bangwo8.com/api/v1/users.json?per_page=5&page=2"
}| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| userId | string | 是 | 联系人 ID |
| 字段 | 类型 | 说明 |
|---|---|---|
| user | object | 联系人对象 |
| user.userId | string | 联系人 ID |
| user.name | string | 姓名 |
| user.mobile | string | 手机号 |
| user.email | string | 邮箱 |
| user.createrId | string | 创建者 ID(系统内部字段) |
| user.custom_fields | array | 自定义字段 |
| user.state | string | 状态 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| ids | string | 否 | 联系人 ID 列表,以逗号分隔 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| deStat | string | 否 | 是否包含已删除数据,0-不包含 1-包含 |
| query | string | 否 | 搜索条件 |
| sort_by | string | 否 | 排序字段 |
| sort_order | string | 否 | 排序方式 asc/desc |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| Content-Type | string | 是 | application/json |
| name | string | 否 | 姓名 |
| mobile | string | 否 | 手机号 |
| string | 否 | 邮箱 | |
| fixnumber | string | 否 | 固定电话 |
| position | string | 否 | 职位 |
| string | 否 | QQ 号码 | |
| note | string | 否 | 备注 |
| companyId | string | 否 | 公司 ID |
| service_groupid | string | 否 | 服务组 ID |
| custom_fields | array | 否 | 自定义字段 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| userId | string | 是 | 联系人 ID |
| Content-Type | string | 是 | application/json |
| name | string | 否 | 姓名 |
| mobile | string | 否 | 手机号 |
| string | 否 | 邮箱 | |
| custom_fields | array | 否 | 自定义字段 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| userId | string | 是 | 联系人 ID |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| ids | string | 是 | 联系人 ID 列表,以逗号分隔 |
该模块接口同时支持公司分组(2B模式)和联系人分组(2C模式)。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| page | int | 否 | 页码,默认 1 |
| per_page | int | 否 | 每页数量,默认 100 |
| 字段 | 类型 | 说明 |
|---|---|---|
| groupId | int | 分组ID,系统自动生成 |
| groupName | string | 分组名称 |
| type | tinyint | 分组类型:1-公司分组,2-联系人分组 |
{
"customergroups": [
{
"groupId": "12090",
"groupName": "trigger",
"type": "1"
},
{
"groupId": "10795",
"groupName": "群英荟萃",
"type": "2"
},
{
"groupId": "27668",
"groupName": "API组",
"type": "2"
}
]
}| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | string | 是 | 分组 ID |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| ids | string | 否 | 分组 ID 列表,以逗号分隔 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| Content-Type | string | 是 | application/json |
| customergroup.groupName | string | 是 | 分组名称 |
| customergroup.type | tinyint | 是 | 分组类型:1-公司分组,2-联系人分组 |
{
"customergroups": {
"groupId": "28728",
"groupName": "VIP客户",
"type": "2"
}
}| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | string | 是 | 分组 ID |
| Content-Type | string | 是 | application/json |
| customergroup.groupName | string | 否 | 分组名称 |
| customergroup.type | tinyint | 否 | 分组类型 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | string | 是 | 分组 ID |
| 字段 | 类型 | 说明 |
|---|---|---|
| customers | array | 客户/联系人列表 |
| customers[].uId | string | 用户/公司 ID |
| customers[].companyName | string | 公司名称 |
| customers[].supportId | string | 客服 ID |
| customers[].servicestarttime | string | 服务开始时间 |
| customers[].serviceendtime | string | 服务结束时间 |
| customers[].serviceaccount | string | 服务账号 |
| customers[].servicepassword | string | 服务密码 |
| customers[].address | string | 地址 |
| customers[].createDT | string | 创建时间 |
| customers[].updateDT | string | 更新时间 |
| customers[].custom_fields | array | 自定义字段 |
{
"customers": [
{
"uId": "2606877",
"companyName": "新公司",
"supportId": "0",
"servicestarttime": "0000-00-00",
"serviceendtime": "0000-00-00",
"serviceaccount": "",
"servicepassword": "",
"address": "",
"createDT": "2018-08-17 16:51:46",
"updateDT": "2023-03-18 06:50:30",
"custom_fields": [
{
"key": "field_1",
"value": ""
}
]
}
]
}| 字段 | 类型 | 说明 |
|---|---|---|
| user_fields | array | 联系人字段列表 |
| user_fields[].id | string | 字段 ID |
| user_fields[].name | string | 字段名称 |
| user_fields[].key | string | 字段标识 |
| user_fields[].type | string | 字段类型 |
| user_fields[].system | string | 是否为系统字段:1-是,0-否 |
| user_fields[].custom_field_options | array | 选项列表(下拉框类型) |
{
"user_fields": [
{
"id": "1",
"name": "姓名",
"key": "name",
"type": "2",
"system": "1",
"custom_field_options": []
},
{
"id": "1",
"name": "手机号",
"key": "mobile",
"type": "2",
"system": "1",
"custom_field_options": []
}
]
}| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| created_start | string | 否 | 创建时间开始(含当天) |
| created_end | string | 否 | 创建时间结束(含当天) |
| created_order | string | 否 | 创建时间排序 asc-升序 desc-降序 |
| page | string | 否 | 页数 |
| per_page | string | 否 | 每页大小 |
| deStat | string | 否 | 是否包含已删除数据,0-不包含 1-包含 |
| 字段 | 类型 | 说明 |
|---|---|---|
| companies | array | 公司列表 |
| companies[].uId | string | 公司 ID |
| companies[].companyName | string | 公司名称 |
| companies[].province | string | 省份 |
| companies[].city | string | 城市 |
| companies[].supportId | string | 客服 ID |
| companies[].servicestarttime | string | 服务开始时间 |
| companies[].serviceendtime | string | 服务结束时间 |
| companies[].serviceCharge | string | 服务费 |
| companies[].serviceaccount | string | 服务账号 |
| companies[].servicepassword | string | 服务密码 |
| companies[].address | string | 地址 |
| companies[].userURL | string | 用户 URL |
| companies[].serveNote | string | 服务备注 |
| companies[].multiServiceList | string | 多服务列表 |
| companies[].service_groupid | string | 服务组 ID |
| companies[].createDT | string | 创建时间 |
| companies[].updateDT | string | 更新时间 |
| companies[].tableName | string | 表名 |
| companies[].custom_fields | array | 自定义字段 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| companyId | string | 是 | 公司 ID |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| ids | string | 否 | 公司 ID 列表,以逗号分隔 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| Content-Type | string | 是 | application/json |
| companyName | string | 否 | 公司名称 |
| province | string | 否 | 省份 |
| city | string | 否 | 城市 |
| address | string | 否 | 地址 |
| serveNote | string | 否 | 服务备注 |
| service_groupid | string | 否 | 服务组 ID |
| custom_fields | array | 否 | 自定义字段 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | string | 是 | 公司 ID |
| Content-Type | string | 是 | application/json |
| companyName | string | 否 | 公司名称 |
| province | string | 否 | 省份 |
| city | string | 否 | 城市 |
| address | string | 否 | 地址 |
| serveNote | string | 否 | 服务备注 |
| custom_fields | array | 否 | 自定义字段 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | string | 是 | 公司 ID |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | string | 是 | 公司 ID |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| query | string | 否 | 搜索条件 |
| sort_by | string | 否 | 排序字段 |
| sort_order | string | 否 | 排序方式 asc/desc |
| deStat | string | 否 | 是否包含已删除数据,0-不包含 1-包含 |
| page | string | 否 | 页数 |
| per_page | string | 否 | 每页大小 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| company_id | string | 是 | 公司 ID |
| created_start | string | 否 | 创建时间开始 |
| created_end | string | 否 | 创建时间结束 |
| created_order | string | 否 | 创建时间排序 |
| page | string | 否 | 页数 |
| per_page | string | 否 |