更新用户客资
https://member.bilibili.com/arcopen/fn/market/customer/conversation/cus_info_update
开放能力 / 经营号客服 / 接口文档
调用该接口可更新用户客资信息(手机号、微信号、省市、备注)。 传入 `conversation_id` 时,额外触发人工线索上报,并推送 `USER_UPDATE_INFO` 事件通知客服工作台刷新面板;不传则仅更新客资,不触发线索上报。
body 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_open_id | string | 是 | 用户 open_id |
| phone | string | 否 | 手机号 |
| string | 否 | 微信号 | |
| province | string | 否 | 省 |
| city | string | 否 | 市 |
| remark | string | 否 | 备注 |
| conversation_id | int | 否 | 会话 ID;传入时额外触发人工线索上报,不传则仅更新客资 |
调用方式
javascript
// 让 AI 直接调(需要开放平台凭据)
bili_api_call { "ref": "65", "query": {…}, "body": {…} }
// 只看将要发出的请求(不需要凭据)
bili_api_call { "ref": "65", "dryRun": true }
// 生成完整调用代码
bili_codegen { "ref": "65", "lang": "python" }官方请求示例
bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/market/customer/conversation/cus_info_update' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-bili-timestamp: <当前Unix秒级时间戳>' \
--header 'x-bili-signature-method: HMAC-SHA256' \
--header 'x-bili-signature-version: 2.0' \
--header 'Authorization: <按签名规范生成的签名>' \
--header 'x-bili-signature-nonce: <唯一随机字符串>' \
--header 'x-bili-accesskeyid: <应用client_id>' \
--header 'x-bili-content-md5: <实际请求体MD5>' \
--header 'access_token: <用户授权access_token>' \
--data-raw '{
"user_open_id": "7ebc107305e34902bbb109088c8aa12d",
"phone": "13700000008",
"wechat": "111110005",
"conversation_id": 8473105
}'
{
"user_open_id": "7ebc107305e34902bbb109088c8aa12d",
"phone": "13700000008",
"wechat": "111110005",
"province": "上海",
"city": "上海市",
"remark": "意向较强"
}
{
"user_open_id": "7ebc107305e34902bbb109088c8aa12d",
"phone": "13700000008",
"wechat": "111110005",
"conversation_id": 8473105
}原始文档:065_更新用户客资.md(2838 字节)。用 bili_docs_get { "ref": "65" } 读全文,或用 bili_api_spec { "ref": "65" } 取结构化规格。