# Supervisor API

### **Get List of Closed Tickets**

| Method     | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/supervisor/closed?start=0\&count=1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Response   | <p>{<br>“status”: “success”,<br>“data”: \[<br>   {<br>      “id”: “\[Id]”,<br>      “owner”: “\[owner\_id]”,<br>      “createdDate”: 1598933566198,<br>      “createdBy”: “20304b70e1004c1537d25037b090960b”,<br>      “modifiedDate”: 1598934400220,<br>      “modifiedBy”: “20304b70e1004c1537d25037b090960b”,<br>      “accountId”: “\[accountId]”,<br>      “accountName”: “\[accountName]”,<br>      “accountScreen”: “\[accountScreen]”,<br>      “answer”: true,<br>      “assignedAgent”: “\[AgentId]”,<br>      “assignedDate”: 1598933566198,<br>      “assignedDateText”: “2020-09-01 11:12”,<br>      “assignDuration”: 0,<br>      “channel”: “offline”,<br>      “channelType”: “\[channelType]”,<br>      “closeInterval”: 833,<br>      “closedBy”: “20304b70e1004c1537d25037b090960b”,<br>      “closedDate”: 1598934400115,<br>      “closedDateText”: “2020-09-01 11:26”,<br>      “contactId”: “\[contactId]”,<br>      “group”: “\[groupId]”,<br>      “incoming”: false,<br>      “message”: “\[message]”,<br>      “messageId”: “\[messageId]”,<br>      “notified”: false,<br>      “openDate”: 1598933566198,<br>      “openDateText”: “2020-09-01 11:12”,<br>      “openDuration”: 0,<br>      “parent”: 1,<br>      “pendingDate”: 1598933566198,<br>      “pendingDateText”: “2020-09-01 11:12”,<br>      “pendingDuration”: 833,<br>      “replyAgent”: “\[AgentId]”,<br>      “responseTime”: 0,<br>      “ruleId”: “offline”,<br>      “status”: “Closed”,<br>      “timelineStatus”: “Closed”,<br>      “subject”: “a”,<br>      “supervisor”: “\[supervisorId]”,<br>      “ticketNumber”: “\[ticketNumber]”,<br>      “toGroup”: “99671c29-3b70-4a7b-bfae-ac16aaf44587”,<br>      “unassignedDate”: 1598933566198,<br>      “unassignedDateText”: “2020-09-01 11:12”,<br>      “unassignDuration”: 0,<br>      “closureType”: “Resolved”,<br>      “withinSla”: false,<br>      “online”: false,<br>      “transferInterval”: 833<br>   }<br>],<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Get List of Escalated Tickets**

| Method     | GET                                                                                                                                                                       |                          |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| Media Type | application/json                                                                                                                                                          |                          |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/supervisor/escalated?start=0\&count=10                                                                                      |                          |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                  | Bearer \[generatedToken] |
| Body       |                                                                                                                                                                           |                          |
| Status     | 200                                                                                                                                                                       |                          |
| Response   | <p>{<br>      “status”: “success”,<br>      “data”: \[],<br>      “hasMore”: false,<br>      “nextIndex”: 0,<br>      “prevIndex”: 0,<br>      “totalResults”: 0<br>}</p> |                          |

### **Get List of Takeover Tickets**

| Method     | GET                                                                                                                                                                       |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                          |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/supervisor/takeover?start=0\&count=10                                                                                       |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                  |
| Body       |                                                                                                                                                                           |
| Status     | 200                                                                                                                                                                       |
| Response   | <p>{<br>      “status”: “success”,<br>      “data”: \[],<br>      “hasMore”: false,<br>      “nextIndex”: 0,<br>      “prevIndex”: 0,<br>      “totalResults”: 0<br>}</p> |

### **Get List of Unassigned Tickets**

| Method     | GET                                                                                                                                                                       |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                          |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/supervisor/unassigned?start=0\&count=10                                                                                     |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                  |
| Body       |                                                                                                                                                                           |
| Status     | 200                                                                                                                                                                       |
| Response   | <p>{<br>      “status”: “success”,<br>      “data”: \[],<br>      “hasMore”: false,<br>      “nextIndex”: 0,<br>      “prevIndex”: 0,<br>      “totalResults”: 0<br>}</p> |

### **Get List of Bot Tickets**

| Method     | GET                                                                                                                                                                       |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                          |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/supervisor/bot?start=0\&count=10                                                                                            |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                  |
| Body       |                                                                                                                                                                           |
| Status     | 200                                                                                                                                                                       |
| Response   | <p>{<br>      “status”: “success”,<br>      “data”: \[],<br>      “hasMore”: false,<br>      “nextIndex”: 0,<br>      “prevIndex”: 0,<br>      “totalResults”: 0<br>}</p> |

### **Get List of Team Tickets**

| Method     | GET                                                                                                                                                                       |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                          |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/supervisor/team?start=0\&count=10                                                                                           |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                  |
| Body       |                                                                                                                                                                           |
| Status     | 200                                                                                                                                                                       |
| Response   | <p>{<br>      “status”: “success”,<br>      “data”: \[],<br>      “hasMore”: false,<br>      “nextIndex”: 0,<br>      “prevIndex”: 0,<br>      “totalResults”: 0<br>}</p> |
