# 小程序客服-客服消息 接口列表

```json
[
  {
    "接口名称": "[添加客服账号](/miniprogram/dev/server/API/kf-mgnt/kf-message/api_addkfaccount)",
    "请求路径": "/customservice/kfaccount/add",
    "描述": "本接口用于为公众号、小程序添加客服账号，每个账号最多添加100个客服账号"
  },
  {
    "接口名称": "[获取所有客服账号](/miniprogram/dev/server/API/kf-mgnt/kf-message/api_getkflist)",
    "请求路径": "/cgi-bin/customservice/getkflist",
    "描述": "本接口用于获取所有客服账号"
  },
  {
    "接口名称": "[获取在线客服列表](/miniprogram/dev/server/API/kf-mgnt/kf-message/api_getonlinekflist)",
    "请求路径": "/cgi-bin/customservice/getonlinekflist",
    "描述": "本接口用于获取当前在线客服列表"
  },
  {
    "接口名称": "[删除客服账号](/miniprogram/dev/server/API/kf-mgnt/kf-message/api_delkfaccount)",
    "请求路径": "/customservice/kfaccount/del",
    "描述": "本接口用于删除客服账号"
  },
  {
    "接口名称": "[发送客服消息](/miniprogram/dev/server/API/kf-mgnt/kf-message/api_sendcustommessage)",
    "请求路径": "/cgi-bin/message/custom/send",
    "描述": "本接口用于发送多种类型的客服消息，主要应用在有人工消息处理环节的场景"
  },
  {
    "接口名称": "[客服输入状态](/miniprogram/dev/server/API/kf-mgnt/kf-message/api_typing)",
    "请求路径": "/cgi-bin/message/custom/business/typing",
    "描述": "本接口用于设置客服输入状态"
  },
  {
    "接口名称": "[设置客服管理员](/miniprogram/dev/server/API/kf-mgnt/kf-message/api_setkfadmin)",
    "请求路径": "/customservice/kfaccount/setadmin",
    "描述": "该接口将账号客服编号对应客服账号设置为客服管理员"
  },
  {
    "接口名称": "[取消客服管理员](/miniprogram/dev/server/API/kf-mgnt/kf-message/api_cancelkfadmin)",
    "请求路径": "/customservice/kfaccount/canceladmin",
    "描述": "该接口根据账号客服编号，解除对应客服账号客服管理员身份"
  },
  {
    "接口名称": "[新增临时素材](/miniprogram/dev/server/API/kf-mgnt/kf-message/api_uploadtempmedia)",
    "请求路径": "/cgi-bin/media/upload",
    "描述": "本接口用于上传临时多媒体文件"
  },
  {
    "接口名称": "[获取临时素材](/miniprogram/dev/server/API/kf-mgnt/kf-message/api_getmedia)",
    "请求路径": "/cgi-bin/media/get",
    "描述": "本接口用于获取临时素材（即下载临时的多媒体文件）"
  }
]
```
