Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (31 loc) · 1.67 KB

File metadata and controls

39 lines (31 loc) · 1.67 KB

Transfer Livechat Room

Transfer an omnichannel conversation to another department.

HTTP MethodURLRequires Auth
POST/api/v1/livechat/room.transferno

Payload

KeyExample ValueDescription
rid*XFzMqgn33DcsQkpJpThe room _id.
token*iNKE8a6k6cjbqWhWdThe visitor token.
department*wXpPLofkffqWAwDNFThe new department. To get the department ID, call the Get Livechat Configurations endpoint. Note that the endpoint only returns public departments.

Example Call

{% code overflow="wrap" %}

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

{% endcode %}

Example Response

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