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

Latest commit

 

History

History
41 lines (30 loc) · 1.66 KB

File metadata and controls

41 lines (30 loc) · 1.66 KB

Forward Livechat Room

The Chatbot agent forwards the chat to a human agent.

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

Body

KeyExample ValueDescription
roomId*XFzMqgn33DcsQkpJpThe room _id.
userIdiNKE8a6k6cjbqWhWdThe new agent ID.
departmentIdwXpPLofkffqWAwDNFThe new department ID.

Example Call

With roomId and userId:

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     -H "Content-type: application/json" \
     http://localhost:3000/api/v1/livechat/room.forward \
     -d '{"roomId": "XFzMqgn33DcsQkpJp", 
          "userId": "iNKE8a6k6cjbqWhWd"}'

With roomId and departmentId:

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     -H "Content-type: application/json" \
     http://localhost:3000/api/v1/livechat/room.forward \
     -d '{"roomId": "XFzMqgn33DcsQkpJp", 
          "departmentId": "wXpPLofkffqWAwDNF"}'

Example Response

{
  "success": true
}