Real Time
Real Time
- Real Time Manage
GET livechat/realTime/Agents
GET livechat/realTime/Queue
GET livechat/realTime/Today
GET livechat/realTime/RightNow
Endpoint
Get agents' status
GET livechat/realTime/Agents
Parameters:
Name | Type | In | Required | Description |
---|---|---|---|---|
departmentId |
guid | path | no | Id of the department. |
includeStatusDistribution |
bool | path | no | Whether include status distribution or not. |
utcOffset |
int | path | no | Time offset for search |
startTime |
datetime | path | no | Start time for search |
endTime |
datetime | path | no | End time for search |
Response:
Name | Type | Description |
---|---|---|
intradayChats |
string | Intraday chats number of the agent. |
currentStatusId |
guid | Current status Id of the agent. |
maxConcurrentChats |
int | Max concurrent chats of the agent. |
intradayLinearChatTime |
string | Intraday linear chat time of the agent. |
agentId |
guid | Id of the agent. |
onGoingChats |
int | The ongoing chats number of the agent. |
statusDistribution |
string | Dictionary of status with status id. |
displayName |
string | Display name of the agent. |
Example
Sample Request:
curl https://api15.comm100.io/v4/livechat/realTime/Agents \
-X
'GET'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Get chat queue status
GET livechat/realTime/Queue
Parameters:
No Parameters
Response:
Name | Type | Description |
---|---|---|
routeToAgent |
agent | Reference to Agent. |
avgWaitTimeinLast30Mins |
int | Average wait time in last 30 minutes. |
routeToDepartmentId |
guid | Id of the route to department. |
visitors |
visitor[] | Reference of visitor. |
routeToAgentId |
guid | Id of the route to agent. |
avgWaitTimeinLast60Mins |
int | Average wait time in last 60 minutes. |
routeToDepartment |
department | Reference to Department. |
switchedtoMessagesinLast30Mins |
int | Switched to messages in last 30 minutes. |
currentQueueLength |
int | Length of current queue. |
maxConcurrentChats |
int | Max concurrent chats of the site. |
abandonedChatsinLast30Mins |
int | Abandoned chats in last 30 minutes. |
ongoingChats |
int | The ongoing chats number of the agent. |
Example
Sample Request:
curl https://api15.comm100.io/v4/livechat/realTime/Queue \
-X
'GET'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Get today's status
GET livechat/realTime/Today
Parameters:
Name | Type | In | Required | Description |
---|---|---|---|---|
utcOffset |
int | path | no | Time offset for search |
endTime |
datetime | path | no | End time for search. |
startTime |
datetime | path | no | Start time for search |
Response:
Name | Type | Description |
---|---|---|
avgWaitingTime |
double | AvgWaiting time number of today. |
totalChats |
int | Total chats number of today. |
chatRequests |
int | Chat requests number of today. |
abandondedChats |
int | Abandonded chats number of today. |
switchedToMessageChats |
int | Switched to message chats number of today. |
uniqueChatRate |
double | Unique chat rate number of today. |
avgScore |
double | Avg score number of today. |
serviceAccessibilityRate |
double | Service accessibility rate number of today. |
acceptedInvitations |
int | Accepted invitations number of today. |
departmentTransferredChats |
int | Department transferred chats number of today. |
missedChats |
int | Missed chats number of today. |
chatAcceptanceRate |
double | Chat acceptance rate number of today. |
totalTransferredChats |
int | Total transferred chats number of today. |
agentAvgResponseTime |
double | Agent avg response time number of today. |
chats |
int | Chats number of today. |
avgChatTime |
double | Avg chat time number of today. |
agentUtilization |
double | Agent utilization number of today. |
Example
Sample Request:
curl https://api15.comm100.io/v4/livechat/realTime/Today \
-X
'GET'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Get current status
GET livechat/realTime/RightNow
Parameters:
Name | Type | In | Required | Description |
---|---|---|---|---|
utcOffset |
int | path | no | Time offset for search |
startTime |
datetime | path | no | Start time for search |
endTime |
datetime | path | no | End time for search |
Response:
Name | Type | Description |
---|---|---|
loggedInAgents |
int | Logged in agents number of right now. |
agentsInChat |
int | Agents in chat number of right now. |
chatUtilization |
int | Chat utilization number of right now. |
visitorOnSite |
int | Visitor on site number of right now. |
ongoingChats |
int | Ongoing chats number of right now. |
ongoingChatsWithAgent |
int | Ongoing chats with agent number of right now. |
currentQueueLength |
int | Current queue length number of right now. |
ongoingChatsWithBot |
int | Ongoing chats with bot number of right now. |
Example
Sample Request:
curl https://api15.comm100.io/v4/livechat/realTime/RightNow \
-X
'GET'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK