<br> [**点此进入芝麻小客服官网**](https://xiaokefu.com.cn/?source=kanyun_t_mia ) <br> 仅适用于公众号。 主要作用: * 向小客服内打标签 * 向微信内打标签 接口地址:https://xiaokefu.com.cn/zhimaOpen/openAutoLabel/setLabel 请配合查询标签接口,先查询到标签列表及其ID。 ![](https://img.kancloud.cn/65/fa/65fac40a0d479b005bbf9257fc4fbb5a_965x306.png) ~~~ 请求示例1: { "access_token": "access_token", "wechatapp_id": 209459, "openid": "ofmLCv26hS0WXcNn9pAczfBB12Fg", "add_tag_ids": "243192,243286,243452", "del_tag_ids": "243456,243457" } 请求示例2: { "access_token": "access_token", "wechatapp_id": 209459, "openid": "ofmLCv26hS0WXcNn9pAczfBB12Fg", "add_tag_ids": "243192,243286,243452" } 请求示例3: { "access_token": "access_token", "wechatapp_id": 209459, "openid": "ofmLCv26hS0WXcNn9pAczfBB12Fg", "del_tag_ids": "243456,243457" } 返回结果: { "res": 0, "msg": "推送成功" } ~~~ ## 根据unionid自动打标签 - 请注意unionid和openid其一必填。如果请求参数中同时有openid和unionid,会优先取openid。 ~~~ 请求示例: { "access_token": "access_token", "wechatapp_id": 209459, "unionid": "ofmLCv26hS0WXcNn9pAczfBB12Fg", "add_tag_ids": "243192,243286,243452", "del_tag_ids": "243456,243457" } ~~~ </h> </h> <br> <br> <br> <br><br> [**点此进入芝麻小客服官网**](https://xiaokefu.com.cn/?source=kanyun_b_mia ) 您有问题需要咨询的话,可以扫描下方二维码: </h> ![](https://img.kancloud.cn/04/a1/04a1fd65b5f5cfbc32ad431a32fabd2a_200x199.png) </h> </h>