SalesEpoch-Open Api
  1. 群发(v1)
SalesEpoch-Open Api
  • 在线文档使用说明
  • 群发(v1)
    • 新建群发任务
      POST
  • 客户导入
    • 客户单坐席导入接口
      PUT
    • 客户单坐席导入接口(不带导入池)
      POST
    • 客户批量导入接口(带导入池)
      POST
  • 群发(V2)
    • 手机端群发个人-单目标单内容
      POST
    • 手机端群发个人-单目标多内容
      POST
    • 手机端群发个人-多目标单内容
      POST
    • 手机端群发个人-多目标多内容
      POST
    • 批量更新客服号信息(客服号需在线)
      POST
    • 查询群发任务执行状态
      POST
    • 查询在线的坐席、客服号
      POST
    • 查询客服号最新状态
      POST
    • 手机端群发个人-多目标多内容 Copy
      POST
  • 筛号测试
    • 创建筛号接口
      POST
    • 查询结果接口
      GET
  • AI
    • AI翻译接口
      POST
  1. 群发(v1)

新建群发任务

开发中
线上环境
http://wascrm.socialepoch.com
线上环境
http://wascrm.socialepoch.com
POST
http://wascrm.socialepoch.com/wscrm-bus-api/open/sender/batchAdd

请求参数

Header 参数
Content-Type
string 
必需
默认值:
application/json
Body 参数application/json
tenantId
integer 
必需
userName
string 
必需
token
string 
必需
createTime
string 
必需
info
object 
必需
userName
string 
必需
whatsId
string 
必需
taskType
integer 
必需
friendWhatsIds
array[string]
必需
startInterval
integer 
必需
endInterval
integer 
必需
sendData
array [object {5}] 
必需
示例
{
    "tenantId": 520323,
    "userName": "dijia",
    "token": "c1186310d98ab8daa53fcf2e9d03e8f4",
    "createTime": "2021-03-08 14:25:00",
    "info": {
        "userName": "dijia",
        "whatsId": "",
        "taskType": 1,
        "friendWhatsIds": [
            "919448767724","33753875029"
        ],
        "startInterval": 10,
        "endInterval": 10,
        "sendData": [
            {
                "sendIndex": 1,
                "file": {
                    "fileUrl": "http://ocs-ap-south1.heytapcs2.com/scrm-whatsapp/client/0/test/20230421174529-image-20220225144745084.png",
                    "fileType": 1
                },
                "sendType": 2
            },
            {
                "content": " {0} 你好,你的订单号: 。生日{0},手机号{2},性别{3},地址{4},邮箱{5},职业{6},收入{7},备注{8},来源:{9},阶段:{10}",
                "contentIndexField": [
                    {
                        "index": 0,
                        "fieldType": 0,
                        "fieldName": "Name"
                    },
                    {
                        "index": 1,
                        "fieldType": 0,
                        "fieldName": "DOB"
                    },
                    {
                        "index": 2,
                        "fieldType": 0,
                        "fieldName": "WhatsApp"
                    },
                    {
                        "index": 3,
                        "fieldType": 0,
                        "fieldName": "Gender"
                    },
                    {
                        "index": 4,
                        "fieldType": 0,
                        "fieldName": "Address"
                    },
                    {
                        "index": 5,
                        "fieldType": 0,
                        "fieldName": "Email"
                    },
                    {
                        "index": 6,
                        "fieldType": 0,
                        "fieldName": "Position"
                    },
                    {
                        "index": 7,
                        "fieldType": 0,
                        "fieldName": "Income"
                    },
                    {
                        "index": 8,
                        "fieldType": 0,
                        "fieldName": "Description"
                    },
                    {
                        "index": 9,
                        "fieldType": 0,
                        "fieldName": "From"
                    },
                    {
                        "index": 10,
                        "fieldType": 0,
                        "fieldName": "State"
                    }
                ],
                "sendIndex": 0,
                "sendType": 1
            }
        ]
    }
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://wascrm.socialepoch.com/wscrm-bus-api/open/sender/batchAdd' \
--header 'Content-Type: application/json' \
--data-raw '{
    "tenantId": 520323,
    "userName": "dijia",
    "token": "c1186310d98ab8daa53fcf2e9d03e8f4",
    "createTime": "2021-03-08 14:25:00",
    "info": {
        "userName": "dijia",
        "whatsId": "",
        "taskType": 1,
        "friendWhatsIds": [
            "919448767724","33753875029"
        ],
        "startInterval": 10,
        "endInterval": 10,
        "sendData": [
            {
                "sendIndex": 1,
                "file": {
                    "fileUrl": "http://ocs-ap-south1.heytapcs2.com/scrm-whatsapp/client/0/test/20230421174529-image-20220225144745084.png",
                    "fileType": 1
                },
                "sendType": 2
            },
            {
                "content": " {0} 你好,你的订单号: 。生日{0},手机号{2},性别{3},地址{4},邮箱{5},职业{6},收入{7},备注{8},来源:{9},阶段:{10}",
                "contentIndexField": [
                    {
                        "index": 0,
                        "fieldType": 0,
                        "fieldName": "Name"
                    },
                    {
                        "index": 1,
                        "fieldType": 0,
                        "fieldName": "DOB"
                    },
                    {
                        "index": 2,
                        "fieldType": 0,
                        "fieldName": "WhatsApp"
                    },
                    {
                        "index": 3,
                        "fieldType": 0,
                        "fieldName": "Gender"
                    },
                    {
                        "index": 4,
                        "fieldType": 0,
                        "fieldName": "Address"
                    },
                    {
                        "index": 5,
                        "fieldType": 0,
                        "fieldName": "Email"
                    },
                    {
                        "index": 6,
                        "fieldType": 0,
                        "fieldName": "Position"
                    },
                    {
                        "index": 7,
                        "fieldType": 0,
                        "fieldName": "Income"
                    },
                    {
                        "index": 8,
                        "fieldType": 0,
                        "fieldName": "Description"
                    },
                    {
                        "index": 9,
                        "fieldType": 0,
                        "fieldName": "From"
                    },
                    {
                        "index": 10,
                        "fieldType": 0,
                        "fieldName": "State"
                    }
                ],
                "sendIndex": 0,
                "sendType": 1
            }
        ]
    }
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
上一页
在线文档使用说明
下一页
客户单坐席导入接口
Built with