Transfer Livechat Room

Transfer an omnichannel conversation to another department.

HTTP MethodURLRequires Auth

POST

/api/v1/livechat/room.transfer

no

Payload

KeyExample ValueDescription

rid*

XFzMqgn33DcsQkpJp

The room _id.

token*

iNKE8a6k6cjbqWhWd

The visitor token.

department*

wXpPLofkffqWAwDNF

The new department. To get the department ID, call the Get Livechat Configurations endpoint. Note that the endpoint only returns public departments.

Example Call

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

Example Response

{
  "room": {
    "_id": "XFzMqgn33DcsQkpJp",
    "servedBy": {
      "_id": "wiyTfFKXr5GhgRu9A",
      "username": "livechat.agent"
    },
    "open": true,
    "departmentId": "wXpPLofkffqWAwDNF"
  },
  "success": true
}

Last updated

Rocket.Chat versions receive support for six months after release.