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 (37 loc) · 1.45 KB

File metadata and controls

47 lines (37 loc) · 1.45 KB

Get a Monitor

Get details of a specific monitor.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/monitors/:usernameyes

{% hint style="info" %} Permission required: manage-livechat-monitors {% endhint %}

Path Variables

KeyExample ValueDescription
username*1-agentThe username of the person monitoring.

Example Call

{% code overflow="wrap" %}

curl --location --request GET 'http://localhost:3000/api/v1/livechat/monitors/1-agent' \
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

{% endcode %}

Example Response

{
    "_id": "RSb7exHJsiKqwRjPF",
    "username": "1-agent",
    "emails": [
        {
            "address": "1-agent@g.c",
            "verified": false
        }
    ],
    "status": "offline",
    "name": "1-agent",
    "statusLivechat": "not-available",
    "livechat": {
        "maxNumberSimultaneousChat": "4"
    },
    "success": true
}