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

Latest commit

 

History

History
47 lines (39 loc) · 1.56 KB

File metadata and controls

47 lines (39 loc) · 1.56 KB

Get Visitor Information by ID

Get the information of a specific visitor.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/visitors.infoyes

Query Parameters

KeyExample ValueDescription
visitorId*642fc15452492a08c3a756deThe visitor's ID.

Example Call

{% code overflow="wrap" %}

curl --location 'http://localhost:3000/api/v1/livechat/visitors.info?visitorId=642fc15452492a08c3a756de' \
--header 'X-Auth-Token: Y97tM4GkYjgaH_fIO5dwB' \
--header 'X-User-Id: CkCPNcvsvCDfmWLqC'

{% endcode %}

Example Response

{
    "visitor": {
        "_id": "642fc15452492a08c3a756de",
        "username": "guest-19",
        "status": "online",
        "ts": "2023-04-07T07:08:04.375Z",
        "_updatedAt": "2023-11-03T08:23:23.449Z",
        "name": "Livechat Visitor",
        "phone": [
            {
                "phoneNumber": "55 51 5555-5555"
            }
        ],
        "token": "iNKE8a6k6cjbqWhWd",
        "visitorEmails": [
            {
                "address": "visitor@rocket.chat"
            }
        ],
        "department": "64181a0728384134ed600dcc"
    },
    "success": true
}