# 机器人被删好友重新发起好友请求

请求方式:POST

请求地址:https://$basehost/gateway/qopen/ChattingRetryAddCustomer

body参数

{
    "robot_id": "机器人id",
    "contact_id":"客户id",
    "validation_message":"好友验证语"
}
字段 类型 必填 说明
robot_id string 机器人id
contact_id string 客户id
validation_message string 好友验证语

返回值:

{
    "data": {
        "serial_no": "xxxxxxxxxxxxx"
    },
    "errcode": 0,
    "errmsg": "",
    "hint": "smT7t6kPlxfEoLDsoQEA"
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
serial_no string 操作编号
hint string 请求日志ID

处理结果,异步返回值:

{
  "data": {
    "contact_id": "xxxxxxxx",
    "robot_id": "xxxxxxxxxx"
  },
  "err_code": 0,
  "err_msg": "success",
  "event_type": 42075,
  "hint": "xxxxxxxxxx",
  "robot_id": "xxxxxxxxxx",
  "serial_no": ""
}
字段 类型 说明
event_type int 事件类型,42075
err_code int 状态码,0为正常,非0代表错误
err_msg string 错误信息
serial_no string 操作编号
hint string 请求日志ID
data.contact_id string 客戶id
data.robot_id string 機器人id

完整请求示例:

curl -X POST https://$basehost/gateway/qopen/ChattingRetryAddCustomer \
     -H 'Content-Type: application/json; charset=UTF-8' \
     -H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
     -d '{
    "robot_id": "机器人id",
    "contact_id":"客户id",
    "validation_message":"好友验证语"
}'
最后更新时间: 2025/5/29 10:29:56