Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.64 KB

File metadata and controls

50 lines (40 loc) · 1.64 KB

Get Agent or Manager Information

Get information about a particular agent or a manager.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/users/:type/:_idyes

Path Variables

KeyExample ValueDescription
type *agentThe type of user. The value can either be agent or manager.
_id *SQafHvoFPuB57NmBDThe user _id.

Example Call

{% code overflow="wrap" %}

curl --location 'http://localhost:3000/api/v1/livechat/users/agent/PSaBmpB2c9eFaE79q' \
--header 'X-Auth-Token: Y97tM4GkYjgaH_fIO5dwBitQQvm3yp-AptYzGQZMX6e' \
--header 'X-User-Id: CkCPNcvsvCDfmWLqC' \
--data ''

{% endcode %}

Example Response

{
  "user": {
    "_id": "SQafHvoFPuB57NmBD",
    "username": "john.doe",
    "name": "John Doe",
    "status": "offline",
    "statusLivechat": "available",
    "emails": [
    {
        "address": "john.doe@test.com",
        "verified": "true"
    }
    ],
    "livechat": {
        "maxNumberSimultaneousChat": ""
    }
  },
  "success": true
}

Change Log

Version Description
0.42.0 Added