跳至主要内容

解散群聊

解散一個群聊。

請求

POST https://apichat.twt.com/openapi/zxlt/js_zxlt_ql

Header 參數

參數名類型必填說明
x-chat-signaturestringHMAC-SHA256 簽名
Acceptstring默認值:application/json
Content-Typestringapplication/json

Body 參數

參數名類型必填說明
appidstring應用標識,客服端-設置-開發設置查看
timestampinteger發起請求的時間戳
ranstrstring隨機字符串
chat_idinteger群聊 ID

請求示例

curl --location --request POST 'https://apichat.twt.com/openapi/zxlt/js_zxlt_ql' \
--header 'x-chat-signature: 7ac03ccc306902234f3b40cbe797fcb0f' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"appid": "string",
"timestamp": 1769061248,
"ranstr": "string",
"chat_id": 0
}'

返回響應

200 成功

參數名類型必填說明
codeinteger1 正常,-1 失敗
msgstring失敗時的錯誤信息
datastring返回數據
{
"code": 1,
"msg": "ok",
"data": ""
}