Bbili-open-mcpMCP
★

修改客服状态

POST#61api SHOP_BA_CHAT
https://member.bilibili.com/arcopen/fn/market/customer/conversation/staff_status_update

开放能力 / 经营号客服 / 接口文档

调用该接口可修改客服状态

body 参数

名称类型必填说明
statusint是客服状态,1-上线,2-忙碌,3-离线
is_close_conversationint是离线是否关闭会话 1-是 0-否,默认0

调用方式

javascript
// 让 AI 直接调(需要开放平台凭据)
bili_api_call { "ref": "61", "query": {…}, "body": {…} }

// 只看将要发出的请求(不需要凭据)
bili_api_call { "ref": "61", "dryRun": true }

// 生成完整调用代码
bili_codegen { "ref": "61", "lang": "python" }

官方请求示例

bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/market/customer/conversation/staff_status_update' \
--header 'Accept: application/json' \
--header 'x-bili-timestamp: 1712473117' \
--header 'x-bili-signature-method: HMAC-SHA256' \
--header 'x-bili-signature-version: 2.0' \
--header 'Authorization: afdf0ddc6dd8f5af9c7f25cf3115a03142e67df99e15f909a17c11e4c82ad4f9' \
--header 'x-bili-signature-nonce: 1712473117993237000' \
--header 'x-bili-accesskeyid: f828f3893f7c479b' \
--header 'x-bili-content-md5: 795a2d7e13f989cee460801379fe543c' \
--header 'access_token: 454b8fb09ddf1e7ba405f158160f61a1' \
--header 'Connection: keep-alive' \
--header 'x1-bilispy-color: market' \
--header 'Content-Type: application/json' \
--header 'Host: member.bilibili.com' \
--data-raw '{
    "status": 1,
    "is_close_conversation":1

}'

原始文档:061_修改客服状态.md(1904 字节)。用 bili_docs_get { "ref": "61" } 读全文,或用 bili_api_spec { "ref": "61" } 取结构化规格。