Links

Close Call Center Room

Close a new Room
URL
Requires Authentication
HTTP Method
/v1/voip/room.close
Yes
POST

Request Headers

Header
Example
Description
X-Auth-Token
myauth-token
Your token (returned after you log in through the API)
X-User-Id
myuser-name
Your username hash (returned after you log in through the API)

Payload

{
"rid": "c9YW3rejo7HeL6ZDW",
"token": "yHoawq4s9bDn4dM5H"
}

Example Call

curl --location --request POST 'localhost:3000/api/v1/voip/room.close' \
--header 'X-Auth-Token: aEoKaT8qus3IZHlr_OlAzcsnz46SzZLJeqoRbbctcDQ' \
--header 'X-User-Id: 6vHSSqdBHdm2R4gfi' \
--header 'Content-Type: application/json' \
--data-raw '{
"rid": "c9YW3rejo7HeL6ZDW",
"token": "yHoawq4s9bDn4dM5H"
}'

Example Response

{
"rid": "c9YW3rejo7HeL6ZDW",
}

Error Response

401 Unauthorized
Last modified 1yr ago
Deprecation for cloud services and apps is now extended to November 20, 2023. Rocket.Chat versions receive support for six months after release.