Links

Close Livechat Room

HTTP Method
URL
Requires Auth
POST
/api/v1/livechat/room.close
no

Body

Key
Example Value
Description
rid*
XFzMqgn33DcsQkpJp
The room _id.
token*
iNKE8a6k6cjbqWhWd
The visitor token.

Example Call

curl -X POST \
-H "Content-type:application/json" \
http://localhost:3000/api/v1/livechat/room.close \
-d '{"rid": "XFzMqgn33DcsQkpJp",
"token": "iNKE8a6k6cjbqWhWd"}'

Example Response

{
"rid": "XFzMqgn33DcsQkpJp",
"comment": "Closed by visitor",
"success": true
}
Last modified 19d ago
Deprecation for cloud services and apps is now extended to November 20, 2023. Rocket.Chat versions receive support for six months after release.