Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.2 KB

File metadata and controls

45 lines (37 loc) · 1.2 KB

Get Visitor Information

Get the details of a specific visitor.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/visitor/:tokenno

Path Variables

KeyExample ValueDescription
token*iNKE8a6k6cjbqWhWdThe visitor token.

Example Call

{% code overflow="wrap" %}

curl http://localhost:3000/api/v1/livechat/visitor/iNKE8a6k6cjbqWhWd

{% endcode %}

Example Response

{
  "visitor": {
    "_id": "sGtcfEYz852uguxaS",
    "username": "guest-7",
    "_updatedAt": "2018-09-21T14:10:56.529Z",
    "token": "iNKE8a6k6cjbqWhWd",
    "phone": [
      {
        "phoneNumber": "55 51 5555-5555"
      }
    ],
    "visitorEmails": [
      {
        "address": "visitor@rocket.chat"
      }
    ],
    "name": "Livechat Visitor",
    "livechatData": {
      "address": "Rocket.Chat street"
    }
  },
  "success": true
}