Agent Info
Retrieves the current Livechat agent data.
URL
Requires Auth
HTTP Method
/api/v1/livechat/agent.info/:rid/:token
no
GET

Path Variables

Argument
Example
Required
Description
rid
zRAeTszXor8CCPceB
Required
The room _id.
token
iNKE8a6k6cjbqWhWd
Required
The visitor token.

Example Call

1
curl http://localhost:3000/api/v1/livechat/agent.info/:rid/:token
Copied!

Example Result

1
{
2
"agent": {
3
"_id": "XycfA5CetCPuEjqxw",
4
"emails": [
5
{
6
"address": "[email protected]",
7
"verified": true
8
}
9
],
10
"status": "online",
11
"name": "Faria",
12
"username": "faria.masood",
13
"livechat": {
14
"maxNumberSimultaneousChat": "5"
15
}
16
},
17
"success": true
18
}
Copied!
Export as PDF
Copy link
Edit on GitHub