Skip to main content

Delete Direct Chat

Delete one direct chat session.

Request

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

Header Parameters

ParameterTypeRequiredDescription
x-chat-signaturestringYesHMAC-SHA256 signature
AcceptstringNoDefault: application/json
Content-TypestringYesapplication/json

Body Parameters

ParameterTypeRequiredDescription
appidstringYesApplication identifier from the console
timestampintegerYesRequest timestamp
ranstrstringYesRandom string
u_infoarray[object]YesCustomer information list

u_info Object Fields

ParameterTypeRequiredDescription
kefu_idintegerYesAgent ID from the team list
sbsstringYesUnique customer identifier, 1 to 64 characters

Request Example

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

Response

200 Success

ParameterTypeRequiredDescription
codeintegerYes1 success, -1 failure
msgstringYesError message when the request fails
datastringYesResponse payload
{
"code": 1,
"msg": "ok",
"data": ""
}