# Ticket API

### **Get Ticket by Ticket Number**&#x20;

<mark style="color:blue;">`GET`</mark> `/graph/tickets/data/{ticketNumber}`

API ini disediakan oleh 3Dolphins untuk menampilkan informasi yang terdapat pada nomor tiket tertentu.

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Query Parameters**

<table><thead><tr><th width="220.33331298828125">Name</th><th width="154">Type</th><th>Deskripsi</th></tr></thead><tbody><tr><td><code>ticketNumber</code></td><td>string</td><td>This field contains a unique identifier for every ticket generated in 3Dolphins.  </td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "status": "success",
  "data": {
    "id": "[indexed_document]",
    "owner": "[owner_id]",
    "createdDate": 1735291012450,
    "createdBy": "[user/system id]",
    "modifiedDate": 1742376689235,
    "modifiedBy": "[user/system id]",
    "accountId": "[account_id]",
    "accountName": "rere",
    "accountScreen": "6282736273273",
    "answer": false,
    "assignedAgent": "[user_id]",
    "assignedDate": 1735291030977,
    "assignedDateText": "2024-12-27 16:17",
    "assignDuration": 2925639,
    "greetingStatus": true,
    "callVariable": [],
    "channel": "[channel_id]",
    "channelKey": "[channel_key]",
    "channelType": "webchat",
    "contactId": "[contact_id]",
    "conferenceParticipant": [],
    "correlationId": "",
    "createdDateText": "2024-12-27 16:16",
    "document": [],
    "errorShown": true,
    "ignoreMaxAssignment": false,
    "fromGroup": "[group_id]",
    "group": "[group_id]",
    "incoming": false,
    "message": "hai",
    "messageId": "[message_id]",
    "notified": false,
    "openDate": 1738216670179,
    "openDuration": 4160017,
    "parent": 1,
    "pendingDate": 1742376688087,
    "pendingDateText": "2025-03-19 16:31",
    "priority": false,
    "redistribute": false,
    "severity": "Not Set",
    "responseTime": 7085665,
    "ruleId": "[rule_id]",
    "status": "Pending",
    "timelineStatus": "Pending",
    "subject": "hai",
    "supervisor": "[supervisor_id]",
    "ticketNumber": "[ticket_number]",
    "unassignedDate": 1735291021425,
    "unassignedDateText": "2024-12-27 16:17",
    "unassignDuration": 9,
    "withinSla": false,
    "agentWithinSla": false,
    "online": false,
    "offlineDate": 1735291092218,
    "ticketTags": [],
    "transactionId": "1735291014839",
    "markRead": true,
    "collection": "master_ticket",
    "sla": 0,
    "responded": true,
    "numIncomingMessage": 1,
    "numRespondedIncoming": 1,
    "numSla": 0,
    "numOverSla": 0,
    "slaSetting": "Assigned To Pending",
    "responseRate": 100,
    "additionalField": [],
    "agentSla": 0,
    "agentNumIncomingMessage": 1,
    "agentNumRespondedIncoming": 1,
    "agentNumSla": 0,
    "agentNumOverSla": 0,
    "agentResponseRate": 100,
    "billable": false,
    "formTags": [],
    "firstResponseDuration": 9,
    "customFields": {
      "ignore_max_assignment": false,
      "sla": 0,
      "billable": false
    },
    "contact": {
      "id": "[contact_id]",
      "owner": "[owner_id]",
      "createdDate": 1735291005959,
      "createdBy": "[user/system id]",
      "modifiedDate": 1735291005959,
      "modifiedBy": "[user/system id]",
      "ageMax": 0,
      "ageMin": 0,
      "contactEmail": [
        "rerea@gmail.com"
      ],
      "contactEmailString": "rerea@gmail.com",
      "contactFirstName": "rere",
      "maxFollower": 0,
      "phoneTypes": [
        "Mobile"
      ],
      "phones": [
        "6282736273273"
      ],
      "phonesString": "6282736273273",
      "socialIdWebchat": [
        "[social_id]"
      ],
      "socialNameWebchat": [
        "rere"
      ],
      "socialScreenNameWebchat": [
        "rerea@gmail.com"
      ],
      "socialsString": "rerea@gmail.com,rerea@gmail.com",
      "username": "rere",
      "additionalFieldsObject": [
        {
          "name": "NPWP",
          "value": null
        }
      ],
      "mapMaskedPhoneNumber": {
        "6282736273273": "6282736273273"
      },
      "maskingMode": false,
      "firstFormattedPhone": "6282736273273",
      "maskedPhones": [
        "6282736273273"
      ],
      "prettyCreatedDate": "27 Dec 2024 16:16",
      "rating": 0,
      "contactAccountIds": [
        "rerea@gmail.com",
        "6282736273273"
      ],
      "contactTouchpoints": [
        {
          "id": "rerea@gmail.com",
          "displayName": "rere",
          "screenName": "rerea@gmail.com",
          "profilePicture": null,
          "channelType": "javamail",
          "channelTypeIcon": "images/channel/ic_email.png",
          "contactId": "[contact_id]"
        }
      ],
      "phoneList": "6282736273273",
      "additionalFieldValueAsMap": {},
      "availableTouchpoints": [
        "images/channel/ic_email.png"
      ],
      "contactPhoneFormatted": "6282736273273",
      "haveAnySocialAccounts": false,
      "liveChatAccount": false,
      "contactEmailFormated": "rerea@gmail.com",
      "vipStatus": "No",
      "maskedSocialWhatsappId": []
    },
    "channelName": "Live chat test",
    "agentName": "Diah",
    "agentAvatar": "",
    "rawTextMessage": "hai",
    "ticketAnswer": false,
    "renderActivity": false,
    "internalCallRecipient": false,
    "selected": false,
    "unMerge": false,
    "disableRelatedTicket": false,
    "renderTicketNumber": false,
    "ableToReply": false,
    "unreadMessages": 0,
    "countTaskNotStarted": 0,
    "countTaskOngoing": 0,
    "countTaskOverdue": 0,
    "countTaskDone": 0,
    "formattedDate": "27-Dec-2024 16:16",
    "prettyDate": "2024-12-27 16:16:52",
    "friendlyName": "Rere",
    "mandatoryFormExisted": false,
    "mapFormTags": {},
    "callVariableObject": [],
    "ccList": [],
    "statusStyle": "ticket-pending",
    "attachmentExist": false,
    "prettyUnassignedDate": "2024-12-27 16:17:01",
    "prettyLastReplyDate": "",
    "createdDateRelatedTicketReportFormat": "27-Dec-2024 16:16",
    "prettDateTimelineByStatus": 1742376688087,
    "prettyDateTimeline": "2025-03-19 16:31:28",
    "dateTimeline": 1742376688087,
    "severityStyle": "severity-low",
    "slaStyle": "ticket-over-sla",
    "conferenceParticipantObject": [],
    "callParticipantObject": [],
    "overReplySla": false,
    "displayConferenceParticipant": false,
    "cleanUpMessage": "hai",
    "cleanUpSubject": "hai",
    "friendlyId": "6282736273273",
    "emailRecipient": "",
    "ccListFormatted": "",
    "ccListFormattedCut": "",
    "bccList": [],
    "bccListFormatted": "",
    "slaStatusText": "Over SLA",
    "sortedDate": 1735291012450,
    "respondedStr": "Yes",
    "numOfAttachment": 0,
    "allowCloseTelephonyTicket": false,
    "textMessage": "hai"
  }
}
```

{% endtab %}

{% tab title="404" %}

```json
{
  "status": "error",
  "data": null,
  "message": "An unexpected error has occurred, Please check application log for more information."
}
```

{% endtab %}
{% endtabs %}

This is explanation about component body response field:&#x20;

<table><thead><tr><th width="226.83331298828125">Name</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>This field provides a unique identifier for each indexed document in the database.</td></tr><tr><td><code>owner</code></td><td> It is a unique identifier for the data access control holder in the application, usually populated using the system Id. </td></tr><tr><td><code>createdDate</code></td><td>Indicates the date when the ticket was created. </td></tr><tr><td><code>createdby</code></td><td>Indicates the identifier of ticket creator, usually filled in by the system Id. </td></tr><tr><td><code>modifiedDate</code></td><td>To determine the last time update of the ticket data.</td></tr><tr><td><code>modifiedBy</code></td><td>To show the identifier of the person who made changes to the data.</td></tr><tr><td><code>accountId</code></td><td>It is a unique Id for every user who sent the message to the dashboard. Each channel having a different identifier. </td></tr><tr><td><code>accountName</code></td><td>Indicates the customer who sent the message, or it may include the channel Id when the answer field is set to "true."</td></tr><tr><td><code>accountScreen</code></td><td>This field displays the customer's name shown on the ticket ( it can be either the customer's username or phone number depending on the channel).</td></tr><tr><td><code>answer</code> </td><td>Indicates to flagging each incoming message that enter to the dashboard. If false means incoming messages from customers, while true means reply messages from the system.</td></tr><tr><td><code>assignedAgent</code></td><td>This field filled with the identifier of the agent responsible that handling the ticket. </td></tr><tr><td><code>assignedDate</code></td><td>It represent when the ticket was assigned to the agent.</td></tr><tr><td><code>assignDateText</code></td><td>It is the result of interpreting the "assignedDate" field into date format.</td></tr><tr><td><code>assignDuration</code></td><td>Indicates the duration the ticket remained in the assigned status (in seconds)</td></tr><tr><td><code>greetingStatus</code></td><td>This field is used to indicate whether the ticket has received an auto greeting. </td></tr><tr><td><code>callVariable</code></td><td>This field is used to store variables in telephony tickets. </td></tr><tr><td><code>channel</code></td><td>It is a unique number for each successfully created channel.</td></tr><tr><td><code>channelKey</code></td><td>This field combines the message id and live chat channel key.</td></tr><tr><td><code>channelType</code></td><td>Indicates the type of channel where that message being created.</td></tr><tr><td><code>contactId</code></td><td>It is unique identifier for every customer that engage through the 3Dolphins channel. </td></tr><tr><td><code>conferenceParticipant</code></td><td>This field collects details about each participant conference, such as name, role, presence status, and device used.</td></tr><tr><td><code>createdDateText</code></td><td>It is the result of interpreting the "createdDate" field into date format.</td></tr><tr><td><code>ignoreMaxAssignment</code></td><td>This field determines whether the ticket refers to the agent bucket or not. </td></tr><tr><td><code>fromGroup</code></td><td>This field is filled when the ticket is transferred from another group.</td></tr><tr><td><code>group</code></td><td>This field shows the group of agents currently serving the ticket.</td></tr><tr><td><code>incoming</code></td><td>This field indicates whether the message is sent by the customer or the agent. If the value is true, the message was sent by the customer. </td></tr><tr><td><code>message</code></td><td>This field is used to store each bubble message.</td></tr><tr><td><code>messageId</code></td><td>It provides each bubble messages sent by customer with a unique identifier.</td></tr><tr><td><code>notified</code></td><td>This field shows whether the agent has viewed the latest activity on the ticket</td></tr><tr><td><code>openDate</code></td><td>Indicates when the ticket was opened by the agent.</td></tr><tr><td><code>openDuration</code></td><td>Indicates the duration the ticket has been in the open status. </td></tr><tr><td><code>parent</code></td><td>Indicates the message as the parent message or the message sent afterwards. The message is parent message if  has value 1.</td></tr><tr><td><code>priority</code></td><td>Indicates if the ticket is set as a priority ticket. </td></tr><tr><td><code>redistribute</code></td><td>It used to indicate which agent currently holds the active ticket.<br>Example:<br>If Ticket A is transferred from Agent A to Agent B, then Agent A will have the 'redistribute' value set to 'True', while Agent B will have it set to 'False', meaning the active ticket is currently held by Agent B.</td></tr><tr><td><code>severity</code></td><td>Indicates the severity level for the ticket. The severity typically will be different for each ticket. </td></tr><tr><td><code>responseTime</code></td><td>This field is used to calculate the duration it takes for the agent to respond to the customer's last message (in seconds). </td></tr><tr><td><code>ruleId</code></td><td>It specifies the identifier of the rule where the ticket assigned. </td></tr><tr><td><code>status</code></td><td>Indicates the ticket’s status, which may be unassigned, assigned, open, pending, or closed.</td></tr><tr><td><code>timelineStatus</code></td><td>This field is used to display status ticket of every ownership in Customer 360.</td></tr><tr><td><code>subject</code></td><td>It is the first message sent by the customer. For the email channel will contain the subject of the email.</td></tr><tr><td><code>supervisor</code> </td><td>It represents the supervisor id to the ticket being handled by the agent. </td></tr><tr><td><code>ticketNumber</code> </td><td>Indicates that each ticket created on the dashboard has its own unique number. </td></tr><tr><td><code>unassignedDate</code></td><td>This field shows when the ticket was queueing before handled to the agent. </td></tr><tr><td><code>unassignedDateText</code></td><td>It is the result of interpreting the "unassignedDate" field into date format.</td></tr><tr><td><code>unassignedDuration</code></td><td>It the duration when ticket still on the queue before the ticket was assigned to an agent. </td></tr><tr><td><code>ticketTags</code></td><td>This field holds the classifier associated with the ticket</td></tr><tr><td><code>transaction_id</code></td><td>This field is useful for acknowledging that the message sent from the live chat channel has been processed on the system. Typically used as an identifier to track messages that have been successfully sent, failed to send, or read on the live chat side.</td></tr><tr><td><code>markRead</code></td><td>This field to mark messages from WhatsApp channels whether it have been read or not.</td></tr><tr><td><code>collection</code></td><td>Indicates which collection this ticket belongs to.</td></tr><tr><td><code>responded</code></td><td>This field indicates whether the customer has responded to the agent's message.</td></tr><tr><td><code>slaSetting</code></td><td>Indicates the type of SLA used for this ticket.</td></tr><tr><td><code>agentResponseRate</code></td><td>It shows the percentage of whether agents responded to messages sent by customers.</td></tr><tr><td><code>billable</code></td><td>Indicates whether this message is billable and will be charged by Meta.</td></tr><tr><td><code>formTags</code></td><td>It stores the form data when tagging added contains mandatory form tags feature. </td></tr><tr><td><code>taskProgress</code></td><td>This field shows the task progress for the ticket</td></tr><tr><td><code>firstResponseDuration</code></td><td>It shows duration when the agent first replied customer's ticket.</td></tr><tr><td><code>Contact</code></td><td>This field stored the customer contact information as an object. Please visit <a href="/pages/-MUgPCfHcrj7VkWAcNd9#get-contact-by-contact-id">this</a> documentation to understand the details of each parameter. </td></tr><tr><td><code>channelName</code></td><td>It shows the channel name in which the ticket was created. </td></tr><tr><td><code>agentName</code></td><td>This field indicates the agent responsible for this ticket. </td></tr><tr><td><code>rawTextMessage</code></td><td>This field accommodates the entire message without formatting to limit the maximum character count.</td></tr><tr><td><code>ticketAnswer</code></td><td>It shows flagging for every incoming message into the system (same as the answer field). But if the ticket is a telephony ticket, this field will be the same as the outgoing call field.</td></tr><tr><td><code>renderActivity</code></td><td>This used to display styling of the timeline tab on the customer 360.</td></tr><tr><td><code>internalCallRecipient</code></td><td>Field used only on telephony tickets. To find out whether the ticket is connected to another user when call process is encountered. </td></tr><tr><td><code>selected</code></td><td>Indicate whether the ticket has been marked on the UI. </td></tr><tr><td><code>unMerge</code></td><td>This field indicates whether the ticket merger has been canceled.</td></tr><tr><td><code>disableRelatedTicket</code></td><td>This parameter is used in tasks to indicate if the ticket can only be accessible by those who are responsible for the task.</td></tr><tr><td><code>renderTicketNumber</code></td><td>This field used for showing ticket numbers on the ticket list.</td></tr><tr><td><code>ableToReply</code></td><td>This field is used to determine whether the ticket was answered by an authorized agent.</td></tr><tr><td><code>unreadMessages</code></td><td>This field records the number of unread messages.</td></tr><tr><td><code>countTaskNotStarted</code></td><td>To indicate how many tasks from the ticket are still in the "not started" phase.</td></tr><tr><td><code>countTaskOngoing</code></td><td>To indicate how many tasks from the ticket are still in the "on going" phase.</td></tr><tr><td><code>countTaskOverdue</code></td><td>To indicate how many tasks from the ticket are still in the "overdue" phase.</td></tr><tr><td><code>countTaskDone</code></td><td>To indicate how many tasks from the ticket are still in the "done" phase.</td></tr><tr><td><code>prettyUnassignedDate</code></td><td>It shows the timestamp when the incoming message became an unassigned ticket. </td></tr><tr><td><code>prettyLastReplyDate</code></td><td>It shows the date when the agent last reply to the customer's message. </td></tr><tr><td><code>createdDateRelatedTicketReportFormat</code></td><td>This field to support when download a report. It will provide the created date when generated file.</td></tr><tr><td><code>prettyDateTimeline</code></td><td>It is the result of interpreting the dateTimeline field into date format.</td></tr><tr><td><code>dateTimeline</code></td><td>This field records time when the ownership tickets exchange.</td></tr><tr><td><code>statusStyle</code></td><td>This field displays the styling status appears in the ticket. </td></tr><tr><td><code>severityStyle</code></td><td>This field to displays the ticket's style severity.</td></tr><tr><td><code>slaStyle</code></td><td>This field displays the styling of the SLA provided in the ticket.</td></tr><tr><td><code>attachmentExist</code></td><td>Indicates if there are any attachments in the message.</td></tr><tr><td><code>conferenceParticipantObject</code></td><td>This field collects details about each participant conference, such as name, role, presence status, and device used.</td></tr><tr><td><code>callParticipantObject</code></td><td>This field collects details about each participant call, such as name, role, presence status, and device used.</td></tr><tr><td><code>displayConferenceParticipant</code></td><td>This field displays the names of conference attendees if the conferenceParticipantObject field is exist. </td></tr><tr><td><code>cleanUpMessage</code></td><td>This field is identical to the message field that stores each message.</td></tr><tr><td><code>cleanUpSubject</code></td><td>This field use to cleaning up subjects that come from input customer.</td></tr><tr><td><code>emailRecipient</code></td><td>This field to recorded email recipients. </td></tr><tr><td><code>ccListFormated</code></td><td>Only use on the email channel. This field to store list cc participant on the email messages. <br>Ex:<br>1@gmail.com, 2@gmail.com</td></tr><tr><td><code>ccListFormattedCut</code></td><td>Only use on the email channel. This field to store list cc participant with prettier formatted. <br>Ex:<br>1@gmail.com and 2 others</td></tr><tr><td><code>bccList</code></td><td>This field to store the bcc list in an email.</td></tr><tr><td><code>bccListFormatted</code></td><td>Only use on the email channel. This field to store list bcc participant on the email messages. </td></tr><tr><td><code>slaStatusText</code></td><td>This field use to display status SLA for the message. </td></tr><tr><td><code>sortedDate</code></td><td>To display dates and times in sorted order based on specific criteria (using format epoch time).</td></tr><tr><td><code>respondedStr</code></td><td>Field to store whether or not the consumer has replied.</td></tr><tr><td><code>numOfAttachment</code></td><td>Indicates how many attachments are contained in the message.</td></tr><tr><td><code>allowCloseTelephonyTicket</code></td><td>This field to determine if the telephony ticket already can be closed or not.</td></tr><tr><td><code>textMessage</code></td><td>Same as message field. To store each bubble message.</td></tr></tbody></table>

### **Get Ticket Data by Filter**

| Method     | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/data/\[ticketNumber]/\[fieldName]/\[keyword]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Field : \[fieldName]<br>Keyword : \[value od fieldName]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: “\[]”<br>     “id”: “\[id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1595403499334,<br>     “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “modifiedDate”: 1595403499334,<br>     “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: false,<br>     “greetingStatus”: false,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “contactId”: “\[contactId]”,<br>     “correlationId”: “”,<br>     “createdDateText”: “2020-07-22 14:38”,<br>     “incoming”: true,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “notified”: false,<br>     “parent”: 1,<br>     “priority”: false,<br>     “redistribute”: false,<br>     “severity”: “Not Set”,<br>     “status”: “Unassigned”,<br>     “timelineStatus”: “Unassigned”,<br>     “subject”: “/start”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “unassignedDate”: 1595403500434,<br>     “unassignedDateText”: “2020-07-22 14:38”,<br>     “ticketTags”: \[<br>       “default”,<br>       “default”<br>     ],<br>     “contact”: {<br>       “id”: “\[id]”,<br>       “spell”: \[<br>        “Shafitri”,<br>        “Nurhanifa”,<br>        “Shafitri”<br>       ],<br>       “owner”: “\[owner\_id]”,<br>       “createdDate”: 1595402316376,<br>       “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>       “modifiedDate”: 1595402316376,<br>       “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>       “ageMax”: 0,<br>       “ageMin”: 0,<br>       “contactFirstName”: “Shafitri”,<br>       “contactLastName”: “Nurhanifa”,<br>       “maxFollower”: 0,<br>       “socialIdTelegram”: \[<br>         “951759877”<br>       ],<br>       “socialNameTelegram”: \[<br>         “Shafitri”<br>       ],<br>       “socialScreenNameTelegram”: \[<br>         “afeeeh”<br>       ],<br>       “socialsString”: “afeeeh”,<br>       “username”: “\[username]”,<br>       “socialAccounts”: \[<br>         “images/channel/ic\_telegram.png”<br>       ],<br>       “additionalFieldsObject”: \[<br>       {<br>         “name”: “customer\_name”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “phone\_number”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “email\_address”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_date\_purchase”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “first\_time\_purchase”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “num\_hotel\_transaction”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “num\_flight\_transaction”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “num\_train\_transaction”,<br>         “value”: null<br>       },<br>       {<br>        “name”: “num\_coupon\_usage”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_id”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_product”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_hotel\_name”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_hotel\_area”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_flight\_route”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_train\_route”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “isregisteredchatbanking”,<br>         “value”: null<br>       }<br>     ],<br>     “availableTouchpoints”: \[],<br>     “contactPhoneFormatted”: “”,<br>     “haveAnySocialAccounts”: true,<br>     “liveChatAccount”: false,<br>     “additionalFieldValueAsMap”: {},<br>     “rating”: 0,<br>     “contactAccountIds”: \[<br>       “951759877”<br>     ],<br>     “contactTouchpoints”: \[],<br>     “prettyCreatedDate”: “22 Jul 2020 02:18”<br>   },<br>   “channelName”: “\[channelName]”,<br>   “internalCallRecipient”: false,<br>   “selected”: false,<br>   “unreadMessages”: 0,<br>   “ticketAnswer”: false,<br>   “statusStyle”: “ticket-unassigned”,<br>   “prettyDate”: “2020-07-22 14:38:19”,<br>   “friendlyName”: “\[friendlyName]”,<br>   “ccList”: \[],<br>   “overReplySla”: false,<br>   “prettyDateTimeline”: “2020-07-22 14:38:20”,<br>   “dateTimeline”: 1595403500434,<br>   “severityStyle”: “severity-low”,<br>   “slaStyle”: “ticket-ongoing-sla”,<br>   “attachmentExist”: false,<br>   “conferenceParticipantObject”: \[],<br>   “callParticipantObject”: \[],<br>   “callVariableObject”: \[],<br>   “displayConferenceParticipant”: false,<br>   “friendlyId”: “\[friendlyId]”,<br>   “emailRecipient”: “”,<br>  “ccListFormatted”: “”,<br>   “slaStatusText”: “Ongoing”<br>},<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Get Ticket Data by Filter Query**

| Method     | POST                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/data/\[ticketNumber]?start=0\&count=1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Ticket Number : \[ticketNumber]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Body       | <p>{<br>“channel\_type”:”{channelType}”<br>}<br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: “\[]”<br>     “id”: “\[id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598866866045,<br>     “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “modifiedDate”: 1598866866045,<br>     “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: false,<br>     “assignedAgent”: “Bot”,<br>     “assignedDate”: 1598866866314,<br>     “botId”: “\[botId]”,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “createdDateText”: “2020-08-31 16:41”,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “parent”: 0,<br>     “severity”: “Not Set”,<br>     “replyAgent”: “Bot”,<br>     “subject”: “/start”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “channelName”: “\[channelName]”,<br>     “internalCallRecipient”: false,<br>     “selected”: false,<br>     “agentName”: “\[agentName]”,<br>     “unreadMessages”: 0,<br>     “lastMessage”: “\[lastMessage]”,<br>   “ticketAnswer”: false,<br>   “statusStyle”: “”,<br>   “prettyDate”: “22 minutes ago”,<br>   “friendlyName”: “\[friendlyName]”,<br>   “ccList”: \[],<br>   “overReplySla”: false,<br>   “prettyDateTimeline”: “22 minutes ago”,<br>   “dateTimeline”: 1598866866314,<br>   “severityStyle”: “severity-low”,<br>   “slaStyle”: “ticket-ongoing-sla”,<br>   “attachmentExist”: false,<br>   “conferenceParticipantObject”: \[],<br>   “callParticipantObject”: \[],<br>   “callVariableObject”: \[],<br>   “displayConferenceParticipant”: false,<br>   “friendlyId”: “\[friendlyId]”,<br>   “emailRecipient”: “”,<br>  “ccListFormatted”: “”,<br>   “slaStatusText”: “Ongoing”<br>   },<br>], “hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Get List of Ticket**

| Method     | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets?start=0\&count=1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Ticket Number : \[ticketNumber]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: “\[]”<br>     “id”: “\[id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1555990774052,<br>     “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “modifiedDate”: 1555990774000,<br>     “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: false,<br>     “assignedAgent”: “\[AgentId]”,<br>     “assignedDate”: 1555990776659,<br>     “assignedDateText”: “2019-04-23 10:39”,<br>     “assignDuration”: 34,<br>     “greetingStatus”: false,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “closeInterval”: 1115,<br>     “closedBy”: “a0a213e26e8cdb893972a6d311694e2b”,<br>     “closedDate”: 1555991889672,<br>     “createdDateText”: “2019-04-23 10:58”,<br>     “contactId”: “\[contactId]”,<br>     “createdDateText”: “2019-04-23 10:39”,<br>     “group”: “{group\_Id}”,<br>     “incoming”: false,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “notified”: true,<br>     “openDate”: 1555990810679,<br>     “openDateText”: “2019-04-23 10:40”,<br>     “openDuration”: 994,<br>     “parent”: 1,<br>     “pendingDate”: 1555991804700,<br>     “pendingDateText”: “2019-04-23 10:56”,<br>     “pendingDuration”: 84,<br>     “redistribute”: false,<br>     “remark”: “</p><p>CAS-19-AW3702“,<br>     “severity”: “Not Set”,<br>     “replyCc”: “\[reply\_Cc]”,<br>     “responseTime”: 1028,<br>     “ruleId”: “\[ruleId]”,<br>     “status”: “Closed”,<br>     “timelineStatus”: “Closed”,<br>     “subject”: “Tanggapan Email Nasabah a.n Ibu Sayyidatul Khoiriyah”,<br>     “subjectChanged”: true,<br>     “supervisor”: “\[supervisorId]”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “toGroup”: “\[group\_Id]”,<br>     “unassignedDate”: 1555990776659,<br>     “unassignedDateText”: “2019-04-23 10:39”,<br>     “unassignDuration”: 0,<br>     “closureType”: “Resolved”,<br>     “withinSla”: true,<br>     “internalCallRecipient”: false,<br>     “selected”: false,<br>     “agentName”: “\[agentName]”,<br>     “agentAvatar”: “{picture\_link}”,<br>     “unreadMessages”: 0,<br>     “lastMessage”: “\[lastMessage]”,<br>     “ticketAnswer”: false,<br>     “statusStyle”: “ticket-closed”,<br>     “prettyDate”: “2019-04-23 10:39:34”,<br>     “friendlyName”: “\[friendlyName]”,<br>     “ccList”: \[<br>       “\[ccList]”<br>     ],<br>     “overReplySla”: false,<br>     “prettyDateTimeline”: “2019-04-23 10:58:09”,<br>     “dateTimeline”: 1555990776659,<br>     “severityStyle”: “severity-low”,<br>     “slaStyle”: “ticket-within-sla”,<br>     “attachmentExist”: false,<br>     “conferenceParticipantObject”: \[],<br>     “callParticipantObject”: \[],<br>     “callVariableObject”: \[],<br>     “displayConferenceParticipant”: false,<br>     “friendlyId”: “\[friendlyId]”,<br>     “emailRecipient”: “\[emailRecipient]”,<br>     “ccListFormatted”: “\[ccListFormatted]”,<br>     “slaStatusText”: “Within SLA”<br>   }<br>],<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Send Message**

| Method     | POST                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/sendMessage                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Body       | <p>{<br>     “ticketNumber”:”\[ticketNumber]”,<br>     “channelType”:”\[channelType]”,<br>     “replyAgent”:”\[AgentId]”,<br>     “message”:”\[message]”<br>}<br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: “\[]”<br>     “id”: “\[id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598971004373,<br>     “createdBy”: “0cfa797dffff86a30d1331c99bb28351”,<br>     “modifiedDate”: 1598971114042,<br>     “modifiedBy”: “20304b70e1004c1537d25037b090960b”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: false,<br>     “assignedAgent”: “\[AgentId]”,<br>     “assignedDate”: 1598971058073,<br>     “assignedDateText”: “2020-09-01 21:37”,<br>     “assignDuration”: 19,<br>     “greetingStatus”: true,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “closeInterval”: 109,<br>     “closedBy”: “20304b70e1004c1537d25037b090960b”,<br>     “closedDate”: 1598971113960,<br>     “createdDateText”: “2020-09-01 21:38”,<br>     “contactId”: “\[contactId]”,<br>     “createdDateText”: “2020-09-01 21:36”,<br>     “document”: \[<br>       “default”,<br>       “default”<br>     ],<br>     “group”: “\[groupId]”,<br>     “incoming”: false,<br>     “mention”: false,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId] “,<br>     “notified”: true,<br>     “openDate”: 1598971077417,<br>     “openDateText”: “2020-09-01 21:37”,<br>     “openDuration”: 1,<br>     “parent”: 1,<br>     “pendingDate”: 1598971078989,<br>     “pendingDateText”: “2020-09-01 21:37”,<br>     “pendingDuration”: 34,<br>     “post”: false,<br>     “priority”: false,<br>     “reassignedText”: “true”,<br>     “redistribute”: false,<br>     “severity”: “High”,<br>     “responseTime”: 71,<br>     “ruleId”: “\[ruleId]”,<br>     “status”: “Closed”,<br>     “timelineStatus”: “Closed”,<br>     “subject”: “cs”,<br>     “supervisor”: “\[supervisorId]”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “transferedDateText”: “2020-09-01 21:36”,<br>     “transferedFrom”: “Bot”,<br>     “transferedText”: “false”,<br>     “unassignedDate”: 1598971006596,<br>     “unassignedDateText”: “2020-09-01 21:36”,<br>     “unassignDuration”: 51,<br>     “closureType”: “Resolved”,<br>     “withinSla”: false,<br>     “online”: false,<br>     “onlineDate”: 1598971004410,<br>     “offlineDate”: 1598971113978,<br>     “onlineDuration”: 109,<br>     “transferInterval”: 55,<br>     “customFields”: {<br>       “online\_date”: 1598971004410,<br>       “offline\_date”: 1598971113978,<br>     “online\_duration”: 109<br>   },<br>], “hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Get User Ticket Assignment**

| Method     | GET                                                                                                                                                                  |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                     |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/assignment?status=pending\&sort=desc\&isToday=true\&start=0\&count=1                                                   |
| 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 Ticket Priority by User id**

| Method     | GET                                                                                                                                                                  |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                     |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/priority?start=0\&count=1                                                                                              |
| 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 Ticket Conversation by Ticket Number**

| Method     | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/conversations/\[ticketNumber]?start=0\&count=1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Ticket Number : \[ticketNumber]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Response   | <p>{<br>“status”: “success”,<br>“data”: \[<br>   {<br>     “id”: “\[id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598868824718,<br>    “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “modifiedDate”: 1598868824718,<br>     “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: true,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “createdDateText”: “2020-08-31 17:13”,<br>     “mention”: true,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “parent”: 0,<br>     “severity”: “Not Set”,<br>     “replyAgent”: “\[AgentId]”,<br>     “subject”: “@fadhilfs5 time2”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “transactionId”: “\[transactionId]”,<br>     “markRead”: false,<br>     “channelName”: “\[channelName]”,<br>     “internalCallRecipient”: false,<br>     “selected”: false,<br>     “agentName”: “\[agentName]”,<br>     “agentAvatar”: “{picture\_link}”,<br>     “unreadMessages”: 0,<br>     “lastMessage”: “\[lastMessage]”,<br>     “ticketAnswer”: true,<br>     “statusStyle”: “”,<br>     “prettyDate”: “17 minutes ago”,<br>     “friendlyName”: “Fadhilfs”,<br>    “ccList”: \[],<br>     “overReplySla”: false,<br>     “prettyDateTimeline”: “17 minutes ago”,<br>     “dateTimeline”: 1598868824718,<br>     “severityStyle”: “severity-low”,<br>     “slaStyle”: “ticket-ongoing-sla”,<br>     “attachmentExist”: false,<br>     “conferenceParticipantObject”: \[],<br>     “callParticipantObject”: \[],<br>     “callVariableObject”: \[],<br>     “displayConferenceParticipant”: false,<br>     “friendlyId”: “\[friendlyId]”,<br>     “emailRecipient”: “”,<br>     “ccListFormatted”: “”,<br>     “slaStatusText”: “Ongoing”<br>   }<br>],<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Update Ticket**

| Method     | PUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/update/\[ticketNumber]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598867539047,<br>     “createdBy”: “0cfa797dffff86a30d1331c99bb28351”,<br>     “modifiedDate”: 1598870004619,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “partial”: true,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: false,<br>     “assignedDateText”: “2020-08-31 16:54”,<br>     “greetingStatus”: false,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “contactId”: “\[contactId]”,<br>     “correlationId”: “”,<br>     “createdDateText”: “2020-08-31 16:52”,<br>     “followerCount”: 6,<br>     “friendCount”: 6,<br>     “group”: “\[group\_Id]”,<br>     “incoming”: true,      “mention”: true,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “notified”: false,<br>     “parent”: 1,<br>     “profileLink”: “{picture\_link}”,<br>     “redistribute”: false,<br>     “severity”: “Low”,<br>     “ruleId”: “\[rule\_id]”,<br>     “status”: “Unassigned”,<br>     “timelineStatus”: “Unassigned”,<br>     “subject”: “@fadhilfs5 time2”,<br>     “supervisor”: “\[supervisorId]”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “toGroup”: “\[group\_id]”,<br>     “transferedFrom”: “0cfa797dffff86a30d1331c99bb28351”,<br>     “unassignedDate”: 1598868344765,<br>     “unassignedDateText”: “2020-08-31 16:52”,<br>     “unassignDuration”: 119,<br>     “ticketTags”: \[<br>     “default”,<br>     “default”<br>     ],<br>     “contact”: {<br>       “username”: “\[username]”,<br>       “socialAccounts”: \[],<br>       “additionalFieldsObject”: \[<br>       {<br>         “name”: “customer\_name”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “phone\_number”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “email\_address”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_date\_purchase”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “first\_time\_purchase”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “num\_hotel\_transaction”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “num\_flight\_transaction”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “num\_train\_transaction”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “num\_coupon\_usage”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_id”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_product”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_hotel\_name”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_hotel\_area”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_flight\_route”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_train\_route”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “isregisteredchatbanking”,<br>         “value”: null<br>       }<br>       ],<br>       “availableTouchpoints”: \[],<br>       “contactPhoneFormatted”: “”,<br>       “rating”: 0,<br>       “contactAccountIds”: \[],<br>       “contactTouchpoints”: \[],<br>       “prettyCreatedDate”: “moments ago”<br>       },<br>     “channelName”: “\[channelName]”,<br>     “internalCallRecipient”: false,<br>     “selected”: false,<br>     “unreadMessages”: 0,<br>     “ticketAnswer”: false,<br>     “statusStyle”: “ticket-unassigned”,<br>     “prettyDate”: “41 minutes ago”,<br>     “friendlyName”: “\[friendlyName]”,<br>     “ccList”: \[],<br>     “overReplySla”: false,<br>     “prettyDateTimeline”: “28 minutes ago”,<br>     “dateTimeline”: 1598868344765,<br>     “severityStyle”: “severity-low”,<br>     “slaStyle”: “ticket-ongoing-sla”,<br>     “attachmentExist”: false,<br>     “conferenceParticipantObject”: \[],<br>     “callParticipantObject”: \[],<br>     “callVariableObject”: \[],<br>     “displayConferenceParticipant”: false,<br>     “friendlyId”: “\[friendlyId]”,<br>     “emailRecipient”: “”,<br>     “ccListFormatted”: “”,<br>     “slaStatusText”: “Ongoing”<br>},<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Update Ticket by Doc Id**

| Method     | PUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |                          |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------ |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |                          |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/update/id/\[ticketNumber]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                          |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Bearer \[generatedToken] |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |                          |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |                          |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598868824718,<br>     “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “modifiedDate”: 1598870247415,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “partial”: true,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: true,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “createdDateText”: “2020-08-31 17:13”,<br>     “mention”: true,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “parent”: 0,<br>     “severity”: “Not Set”,<br>     “replyAgent”: “\[AgentId]”,<br>     “subject”: “@fadhilfs5 time2”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “transactionId”: “\[transactionId]”,<br>     “markRead”: false,<br>     “channelName”: “\[channelName]”,<br>     “internalCallRecipient”: false,<br>     “selected”: false,<br>     “agentName”: “\[agentName]”,<br>     “agentAvatar”: “{picture\_link}”,<br>     “unreadMessages”: 0,<br>     “ticketAnswer”: true,<br>     “statusStyle”: “”,<br>     “prettyDate”: “24 minutes ago”,<br>     “friendlyName”: “\[friendlyName]”,<br>     “ccList”: \[],<br>     “overReplySla”: false,<br>     “prettyDateTimeline”: “24 minutes ago”,<br>     “dateTimeline”: 1598868824718,<br>     “severityStyle”: “severity-low”,<br>     “slaStyle”: “ticket-ongoing-sla”,<br>     “attachmentExist”: false,<br>     “conferenceParticipantObject”: \[],<br>     “callParticipantObject”: \[],<br>     “callVariableObject”: \[],<br>     “displayConferenceParticipant”: false,<br>     “friendlyId”: “\[friendlyId]”,<br>     “emailRecipient”: “”,<br>     “ccListFormatted”: “”,<br>     “slaStatusText”: “Ongoing”<br>},<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |                          |

### **Update Ticket**

| Method     | PUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/update                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Body       | <p>{<br>     “ticketNumber”:”\[ticketNumber]”,<br>     “channelType”:”\[channelType]”,<br>     “replyAgent”:”\[AgentId]”,<br>}</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598971004373,<br>     “createdBy”: “0cfa797dffff86a30d1331c99bb28351”,<br>     “modifiedDate”: 1598971114042,<br>     “modifiedBy”: “20304b70e1004c1537d25037b090960b”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: false,<br>     “assignedAgent”: “\[AgentId]”,<br>     “assignedDate”: 1598971058073,<br>     “assignedDateText”: “2020-09-01 21:37”,<br>     “assignDuration”: 19,<br>     “greetingStatus”: true,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “closeInterval”: 109,<br>     “closedBy”: “20304b70e1004c1537d25037b090960b”,<br>     “closedDate”: 1598971113960,<br>     “closedDateText”: “2020-09-01 21:38”,<br>     “contactId”: “\[contactId]”,<br>     “correlationId”: “”,<br>     “createdDateText”: “2020-09-01 21:36”,<br>     “document”: \[<br>       “default”,<br>       “default”<br>     ],<br>     “errorCode”: “WC-Driver Exception”,<br>     “errorMessage”: “User is no longer online we’ll keep this message to his/her inbox”,<br>     “errorShown”: false,<br>     “group”: “\[groupId]”,<br>     “incoming”: false,<br>     “mention”: false,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “notified”: true,<br>     “openDate”: 1598971077417,<br>     “openDateText”: “2020-09-01 21:37”,<br>     “openDuration”: 1,<br>     “parent”: 1,<br>     “pendingDate”: 1598971078989,<br>     “pendingDateText”: “2020-09-01 21:37”,<br>     “pendingDuration”: 34,<br>     “post”: false,<br>     “priority”: false,<br>     “reassignedText”: “true”,<br>     “redistribute”: false,<br>     “remark”: “”,<br>     “severity”: “High”,<br>     “replyAgent”: “\[AgentId]”,<br>     “responseTime”: 71,<br>     “ruleId”: “\[ruleId]”,<br>     “status”: “Closed”,<br>     “timelineStatus”: “Closed”,<br>     “subject”: “cs”,<br>     “supervisor”: “\[supervisorId]”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “transferedDateText”: “2020-09-01 21:36”,<br>     “transferedFrom”: “Bot”,<br>     “transferedText”: “false”,<br>     “unassignedDate”: 1598971006596,<br>     “unassignedDateText”: “2020-09-01 21:36”,<br>     “unassignDuration”: 51,<br>     “closureType”: “Resolved”,<br>     “withinSla”: false,<br>     “online”: false,<br>     “onlineDate”: 1598971004410,<br>     “offlineDate”: 1598971113978,<br>     “onlineDuration”: 109,<br>     “transferInterval”: 55,<br>     “customFields”: {<br>       “online\_date”: 1598971004410,<br>       “offline\_date”: 1598971113978,<br>       “online\_duration”: 109<br>     },<br>     “contact”: {<br>       “id”: “\[id]”,<br>       “spell”: \[<br>         “MINDA”,<br>         “<mindagur93@gmail.com>”,<br>         “6287718110987”,<br>         “MINDA”,<br>         “6287718110987-MINDA”<br>       ],<br>     “owner”: “\[owner\_Id]”,<br>     “createdDate”: 1598970836874,<br>     “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “modifiedDate”: 1599015252115,<br>     “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “ageMax”: 0,<br>     “ageMin”: 0,<br>     “contactEmail”: \[<br>       “<mindagur93@gmail.com>”<br>     ],<br>     “contactEmailString”: “<mindagur93@gmail.com>”,<br>     “contactFirstName”: “MINDA”,<br>     “correlationId”: “6287718110987-MINDA”,<br>     “maxFollower”: 0,<br>     “phoneTypes”: \[<br>       “Mobile”<br>     ],<br>     “phones”: \[<br>       “6287718110987”<br>     ],<br>     “phonesString”: “6287718110987”,<br>     “socialIdWebchat”: \[<br>       “6287718110987-MINDA”<br>     ],<br>     “socialNameWebchat”: \[<br>       “MINDA”<br>     ],<br>     “socialScreenNameWebchat”: \[<br>       “<mindagur93@gmail.com>”<br>     ],<br>     “socialsString”: “<mindagur93@gmail.com>,<mindagur93@gmail.com>”,<br>     “username”: “\[username]”,<br>     “socialAccounts”:<br>       “images/channel/ic\_webchat.png”,<br>       “images/channel/ic\_email.png”,<br>       “images/contact/ic\_phone\_red.png”<br>     ],<br>     “additionalFieldsObject”: \[<br>     {<br>       “name”: “customer\_name”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “phone\_number”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “email\_address”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “last\_date\_purchase”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “first\_time\_purchase”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “num\_hotel\_transaction”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “num\_flight\_transaction”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “num\_train\_transaction”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “num\_coupon\_usage”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “last\_booking\_id”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “last\_booking\_product”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “last\_booking\_hotel\_name”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “last\_booking\_hotel\_area”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “last\_booking\_flight\_route”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “last\_booking\_train\_route”,<br>       “value”: null<br>     },<br>     {<br>       “name”: “isregisteredchatbanking”,<br>       “value”: null<br>     }<br>    ],<br>    “additionalFieldValueAsMap”: {},<br>    “availableTouchpoints”: \[<br>     “images/channel/ic\_email.png”<br>    ],<br>    “contactPhoneFormatted”: “6287718110987”,<br>    “haveAnySocialAccounts”: true,<br>    “liveChatAccount”: true,<br>    “prettyCreatedDate”: “13 hours ago”,<br>    “rating”: 0,<br>    “contactAccountIds”: \[<br>     “6287718110987-MINDA”,<br>     “<mindagur93@gmail.com>”,<br>     “6287718110987”<br>    ],<br>    “contactTouchpoints”: \[<br>     {<br>       “id”: “\[id]”,<br>       “displayName”: “MINDA”,<br>       “screenName”: “<mindagur93@gmail.com>”,<br>       “profilePicture”: null,<br>       “channelType”: “\[channelType]”,<br>       “channelTypeIcon”: “images/channel/ic\_email.png”,<br>       “contactId”: “\[contactId]”<br>       }<br>      ]<br>     },<br>     “channelName”: “\[channelName]”,<br>     “internalCallRecipient”: false,<br>     “selected”: false,<br>     “agentAvatar”: “”,<br>     “unreadMessages”: 0,<br>     “ticketAnswer”: false,<br>     “statusStyle”: “ticket-closed”,<br>     “overReplySla”: false,<br>     “prettyDateTimeline”: “13 hours ago”,<br>     “dateTimeline”: 1598971058073,<br>     “severityStyle”: “severity-high”,<br>     “slaStyle”: “ticket-over-sla”,<br>     “attachmentExist”: false,<br>     “conferenceParticipantObject”: \[],<br>     “callParticipantObject”: \[],<br>     “callVariableObject”: \[],<br>     “displayConferenceParticipant”: false,<br>     “friendlyId”: “\[friendlyId]”,<br>     “emailRecipient”: “”,<br>     “ccListFormatted”: “”,<br>     “slaStatusText”: “Over SLA”,<br>     “prettyDate”: “13 hours ago”,<br>     “friendlyName”: “MINDA”,<br>     “ccList”: \[]<br>},<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Reassigned Ticket**

| Method     | PUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/update/reassign                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Body       | {    “ticketNumber”: “\[ticketNumber]”,    “teamMember”: {      “id”: “\[AgentId]”      } }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[Id]”,<br>     “owner”: “\[ownerId]”,<br>     “createdDate”: 1599538196973,<br>     “createdBy”: “f1b380ced4477dd87e8d7ad842af7ae2”,<br>     “modifiedDate”: 1599538402102,<br>     “modifiedBy”: “f1b380ced4477dd87e8d7ad842af7ae2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: false,<br>     “assignedAgent”: “\[agentId]”,<br>     “assignedDate”: 1599538402056,<br>     “assignedDateText”: “2020-09-08 11:13”,<br>     “greetingStatus”: false,<br>     “botId”: “\[botId]”,<br>     “channel”: “\[channel]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “contactId”: “\[contactId]”,<br>     “correlationId”: “”,<br>     “createdDateText”: “2020-09-08 11:09”,<br>     “incoming”: true,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “notified”: false,<br>     “parent”: 1,<br>     “priority”: false,<br>     “redistribute”: false,<br>     “severity”: “Not Set”,<br>     “ruleId”: “\[ruleId]”,<br>     “status”: “Assigned”,<br>     “timelineStatus”: “Assigned”,<br>     “subject”: “\[subject]”,<br>     “supervisor”: “\[supervisorId]”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “transferedFrom”: “Bot”,<br>     “unassignedDate”: 1599538402056,<br>     “unassignedDateText”: “2020-09-08 11:13”,<br>     “unassignDuration”: 0,<br>     “online”: true,<br>     “onlineDate”: 1599538197055,<br>     “ticketTags”: \[<br>       “default”,<br>       “default”<br>     ],<br>     “transactionId”: “\[transactionId]”,<br>     “markRead”: false,<br>     “customFields”: {<br>       “online\_date”: 1599538197055,<br>     },<br>     “contact”: {<br>       “id”: “\[Id]”,<br>       “spell”: \[<br>       “socialScreenNameWebchat”: \[],<br>       “additionalField”: \[ ],<br>       “username”: “\[username]”,<br>       “socialAccounts”: \[],<br>       “additionalFieldsObject”: \[],<br>       “contactPhoneFormatted” : \[contactPhoneFormatted]”,<br>       “haveAnySocialAccounts”: true,<br>       “haveAnySocialAccounts”: true,<br>       “rating”: 4,        “contactAccountIds”: \[],        “contactTouchpoints”: \[],        “prettyCreatedDate”: “17 Aug 2020 07:53”,        “birthdayFormatted”: “11 August 1995”,        “availableTouchpoints”: \[          “images/channel/ic\_email.png”        ],<br>       “additionalFieldValueAsMap”: {      }    },    “channelName”: “\[channelName]”,    “internalCallRecipient”: false,    “selected”: false,    “agentName”: “\[agentName]”,    “agentAvatar”: “\[agentAvatar]”,    “unreadMessages”: 0,    “ticketAnswer”: false,    “statusStyle”: “ticket-assigned”,    “prettyDate”: “3 minutes ago”,    “friendlyName”: “\[friendlyName]”,    “ccList”: \[],    “overReplySla”: false,    “prettyDateTimeline”: “moments ago”,    “dateTimeline”: 1599538402056,    “severityStyle”: “severity-low”,    “slaStyle”: “ticket-ongoing-sla”,    “attachmentExist”: false,    “conferenceParticipantObject”: \[],    “callParticipantObject”: \[],    “callVariableObject”: \[],    “displayConferenceParticipant”: false,    “friendlyId”: “\[friendlyId]”,    “emailRecipient”: “”,    “ccListFormatted”: “”,    “slaStatusText”: “Ongoing” },<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Transfered Ticket**

| Method     | PUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/update/transfer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598929805400,<br>     “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “modifiedDate”: 1598931952061,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: false,<br>     “assignedDateText”: “2020-09-01 10:10”,<br>     “greetingStatus”: false,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “contactId”: “\[contactId]”,<br>     “correlationId”: “”,<br>   \&nbsp “createdDateText”: “2020-09-01 10:10”,<br>   \&nbsp “incoming”: true,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “notified”: false,<br>     “parent”: 1,<br>     “priority”: false,<br>     “redistribute”: false,<br>     “severity”: “Not Set”,<br>     “ruleId”: “{rule\_id}”,<br>     “status”: “Unassigned”,<br>     “timelineStatus”: “Unassigned”,<br>     “subject”: “trigger menu 3dolphins”,<br>     “supervisor”: “\[supervisorId]”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “transferedFrom”: “Bot”,<br>     “unassignedDate”: 1598931951983,<br>     “online”: false,<br>     “ticketTags”: \[<br>       “Fitur – Live Chat”,<br>       “default”<br>     ],<br>     “guest”: false,<br>     “transactionId”: “\[transactionId]”,<br>     “markRead”: false,<br>     “customFields”: {<br>       “guest”: false<br>     },<br>     “contact”: {<br>       “id”: “\[Id]”,<br>       “spell”: \[<br>         “<Shafitri@yahoo.com>”,<br>         “Shafitri”,<br>         ” Nurhanifa”,<br>         “081294379508”,<br>         “afi”<br>     ],<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598929883138,<br>     “createdBy”: “e3c6a0f6b6690715585a9ac75368a739”,<br>     “modifiedDate”: 1598929883138,<br>     “modifiedBy”: “e3c6a0f6b6690715585a9ac75368a739”,<br>     “ageMax”: 0,<br>     “ageMin”: 0,<br>     “contactEmail”: \[<br>       “<Shafitri@yahoo.com>”<br>     ],<br>     “contactEmailString”: “<Shafitri@yahoo.com>”,<br>     “contactFirstName”: “Shafitri”,<br>     “contactLastName”: ” Nurhanifa”,<br>     “maxFollower”: 0,<br>     “phoneTypes”: \[<br>       “Mobile”<br>     ],<br>     “phones”: \[<br>       “081294379508”<br>     ],<br>     “phonesString”: “081294379508”,<br>     “socialIdWebchat”: \[<br>       “6289198247893-afi”<br>     ],<br>     “socialNameWebchat”: \[<br>       “afi”<br>     ],<br>     “socialScreenNameWebchat”: \[<br>       “<afi@hehe.com>”<br>     ],<br>     “socialsString”: “<afi@hehe.com>,<afi@hehe.com>”,<br>     “username”: “\[username]”,<br>     “socialAccounts”: \[<br>       “images/channel/ic\_webchat.png”,<br>       “images/channel/ic\_email.png”,<br>       “images/contact/ic\_phone\_red.png”<br>     ],<br>     “additionalFieldsObject”: \[<br>       {<br>         “name”: “customer\_name”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “phone\_number”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “email\_address”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_date\_purchase”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “first\_time\_purchase”,<br>         “value”: null<br>       },<br>      {<br>         “name”: “num\_hotel\_transaction”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “num\_flight\_transaction”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “num\_train\_transaction”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “num\_coupon\_usage”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_id”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_product”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_hotel\_name”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_hotel\_area”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_flight\_route”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “last\_booking\_train\_route”,<br>         “value”: null<br>       },<br>       {<br>         “name”: “isregisteredchatbanking”,<br>         “value”: null<br>       }<br>     ],<br>     “availableTouchpoints”: \[<br>       “images/channel/ic\_email.png”<br>     ],<br>     “contactPhoneFormatted”: “081294379508”,<br>     “haveAnySocialAccounts”: true,<br>     “liveChatAccount”: true,<br>     “additionalFieldValueAsMap”: {},<br>     “rating”: 0,<br>     “contactAccountIds”: \[<br>       “6289198247893-afi”,<br>       “<Shafitri@yahoo.com>”,<br>       “081294379508”<br>     ],<br>     “contactTouchpoints”: \[<br>     {<br>       “id”: “\[Id]”,<br>       “displayName”: “Shafitri Nurhanifa”,<br>       “screenName”: “<Shafitri@yahoo.com>”,<br>       “profilePicture”: null,<br>       “channelType”: “\[channelType]”,<br>       “channelTypeIcon”: “images/channel/ic\_email.png”,<br>       “contactId”: “\[contactId]”<br>     }<br>     ],<br>       “prettyCreatedDate”: “34 minutes ago”<br>     },<br>     “channelName”: “\[channelName]”,<br>     “internalCallRecipient”: false,<br>     “selected”: false,<br>     “unreadMessages”: 0,<br>     “ticketAnswer”: false,<br>     “statusStyle”: “ticket-unassigned”,<br>     “prettyDate”: “36 minutes ago”,<br>     “friendlyName”: “\[friendlyName]”,<br>     “ccList”: \[],<br>     “overReplySla”: false,<br>     “prettyDateTimeline”: “moments ago”,<br>     “dateTimeline”: 1598931951983,<br>     “severityStyle”: “severity-low”,<br>     “slaStyle”: “ticket-ongoing-sla”,<br>     “attachmentExist”: false,<br>     “conferenceParticipantObject”: \[],<br>     “callParticipantObject”: \[],<br>     “callVariableObject”: \[],<br>     “displayConferenceParticipant”: false,<br>     “friendlyId”: “\[friendlyId]”,<br>     “emailRecipient”: “”,<br>     “ccListFormatted”: “”,<br>     “slaStatusText”: “Ongoing”<br>},<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Escalated Ticket**

| Method     | PUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/update/escalate                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Body       | {      “ticketNumber”: \[ticketNumber]”,      “supervisorId”: “\[supervisorId]” }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598934915037,<br>     “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “modifiedDate”: 1598941816862,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: false,<br>     “assignedAgent”: “\[AgentId]”,<br>     “assignedDate”: 1598941816802,<br>     “assignedDateText”: “2020-09-01 13:30”,<br>     “greetingStatus”: true,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “closeInterval”: 362,<br>     “closedBy”: “870d3b8e6513ed82ceedf77319ce12e2”,<br>     “closedDate”: 1598935277888,<br>     “closedDateText”: “2020-09-01 11:41”,<br>     “contactId”: “\[contactId]”,<br>     “correlationId”: “”,<br>     “createdDateText”: “2020-09-01 11:35”,<br>     “document”: \[<br>       “default”,<br>       “default”<br>     ],<br>     “escalated”: true,<br>     “escalatedDate”: 1598941816802,<br>     “escalatedFrom”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “escalatedTo”: “0cfa797dffff86a30d1331c99bb28351”,<br>     “group”: “\[group\_id]”,<br>     “incoming”: true,<br>     “mention”: false,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “notified”: false,<br>     “openDateText”: “2020-09-01 11:40”,<br>     “parent”: 1,<br>     “pendingDateText”: “2020-09-01 11:40”,<br>     “post”: false,<br>     “reassignedText”: “true”,<br>     “redistribute”: false,<br>     “remark”: “”,<br>     “severity”: “High”,<br>     “responseTime”: 192,<br>     “ruleId”: “\[rule\_id]”,<br>     “status”: “Assigned”,<br>     “timelineStatus”: “Assigned”,<br>     “subject”: “Sambungkan ke CS”,<br>     “supervisor”: “\[supervisorId]”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “transferedDateText”: “2020-09-01 11:35”,<br>     “transferedText”: “false”,<br>     “unassignedDate”: 1598941816802,<br>     “unassignedDateText”: “2020-09-01 13:30”,<br>     “unassignDuration”: 0,<br>     “closureType”: “Resolved”,<br>     “withinSla”: false,<br>     “online”: false,<br>     “onlineDate”: 1598935244130,<br>     “offlineDate”: 1598935154417,<br>     “onlineDuration”: 34,<br>     “transferInterval”: 259,<br>     “customFields”: {<br>       “online\_date”: 1598935244130,<br>       “offline\_date”: 1598935154417,<br>       “online\_duration”: 34<br>     },<br>     “contact”: {<br>       “id”: “\[Id]”,<br>       “spell”: \[<br>         “APPS”,<br>         “<apps@mail.com>”,<br>         “6287718111097”,<br>         “APPS”<br>       ],<br>       “owner”: “\[owner\_id]”,<br>       “createdDate”: 1598934915029,<br>       “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>       “modifiedDate”: 1598934915029,<br>       “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>       “ageMax”: 0,<br>       “ageMin”: 0,<br>       “contactEmail”: \[<br>         “<apps@mail.com>”<br>       ],<br>       “contactEmailString”: “<apps@mail.com>”,<br>       “contactFirstName”: “APPS”,<br>       “maxFollower”: 0,<br>       “phoneTypes”: \[<br>         “Mobile”<br>       ],<br>       “phones”: \[<br>         “6287718111097”<br>       ],<br>       “phonesString”: “6287718111097”,<br>       “socialIdWebchat”: \[<br>         “6287718111097-APPS”<br>       ],<br>       “socialNameWebchat”: \[<br>         “APPS”<br>       ],<br>       “socialScreenNameWebchat”: \[<br>         “<apps@mail.com>”<br>       ],<br>       “socialsString”: “<apps@mail.com>,<apps@mail.com>”,<br>       “username”: “\[username]”,        “socialAccounts”: \[<br>         “images/channel/ic\_webchat.png”,<br>         “images/channel/ic\_email.png”,<br>         “images/contact/ic\_phone\_red.png”<br>       ],<br>       “additionalFieldsObject”: \[<br>        {<br>         “name”: “customer\_name”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “phone\_number”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “email\_address”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “last\_date\_purchase”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “first\_time\_purchase”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “num\_hotel\_transaction”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “num\_flight\_transaction”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “num\_train\_transaction”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “num\_coupon\_usage”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “last\_booking\_id”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “last\_booking\_product”,<br>        “value”: null<br>        },<br>        {<br>         “name”: “last\_booking\_hotel\_name”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “last\_booking\_hotel\_area”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “last\_booking\_flight\_route”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “last\_booking\_train\_route”,<br>         “value”: null<br>        },<br>        {<br>         “name”: “isregisteredchatbanking”,<br>         “value”: null<br>        }<br>       ],<br>       “prettyCreatedDate”: “2 hours ago”,<br>       “additionalFieldValueAsMap”: {},<br>       “availableTouchpoints”: \[<br>        “images/channel/ic\_email.png”<br>       ],<br>       “contactPhoneFormatted”: “6287718111097”,<br>       “haveAnySocialAccounts”: true,<br>       “liveChatAccount”: true,<br>       “rating”: 0,<br>       “contactAccountIds”: \[<br>        “6287718111097-APPS”,<br>        “<apps@mail.com>”,<br>        “6287718111097”<br>       ],<br>       “contactTouchpoints”: \[<br>        {<br>         “id”: “\[Id]”,<br>         “displayName”: “APPS”,<br>         “screenName”: “<apps@mail.com>”,<br>         “profilePicture”: null,<br>         “channelType”: “\[channelType]”,<br>         “channelTypeIcon”: “images/channel/ic\_email.png”,<br>         “contactId”: “\[contactId]”<br>        }<br>       ]<br>     },<br>     “channelName”: “\[channelName]”,<br>     “internalCallRecipient”: false,<br>     “selected”: false,<br>     “agentName”: “\[agentName]”,<br>     “agentAvatar”: “”,<br>     “unreadMessages”: 0,<br>     “ticketAnswer”: false,<br>     “statusStyle”: “ticket-assigned”,<br>     “overReplySla”: false,<br>     “prettyDateTimeline”: “moments ago”,<br>     “dateTimeline”: 1598941816802,<br>     “severityStyle”: “severity-high”,<br>     “slaStyle”: “ticket-over-sla”,<br>     “attachmentExist”: false,<br>     “conferenceParticipantObject”: \[],<br>     “callParticipantObject”: \[],<br>     “callVariableObject”: \[],<br>     “displayConferenceParticipant”: false,<br>     “friendlyId”: “\[friendlyId]”,<br>     “emailRecipient”: “”,<br>     “ccListFormatted”: “”,<br>     “slaStatusText”: “Over SLA”,<br>     “prettyDate”: “2 hours ago”,<br>     “friendlyName”: “APPS”,<br>     “ccList”: \[]<br>},<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Transfer Ticket From Bot To Agent**

| Method     | PUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/update/transferToAgent                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598929805400,<br>     “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “modifiedDate”: 1598932249354,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: false,<br>     “assignedDateText”: “2020-09-01 10:10”,<br>     “greetingStatus”: false,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channel\_key]”,<br>     “channelType”: “\[channelType]”,<br>     “contactId”: “\[contactId]”,<br>     “createdDateText”: “2020-09-01 10:10”,<br>     “group”: “Bot”,<br>     “incoming”: true,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “notified”: false,<br>     “parent”: 1,<br>     “priority”: false,<br>     “reassigned”: true,<br>     “reassignedText”: “true”,<br>     “redistribute”: false,<br>     “ruleId”: “rule\_id”,<br>     “status”: “Unassigned”,<br>     “timelineStatus”: “Unassigned”,<br>     “subject”: “trigger menu 3dolphins”,<br>     “supervisor”: “\[supervisorId]”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “transfered”: false,<br>     “transferedDate”: 1598932249307,<br>     “transferedDateText”: “2020-09-01 10:50”,<br>     “transferedFrom”: “Bot”,<br>     “transferedText”: “false”,<br>     “unassignedDate”: 1598932249307,<br>     “unassignedDateText”: “2020-09-01 10:50”,<br>     “online”: false,<br>     “ticketTags”: \[<br>       “Fitur – Live Chat”,<br>       “default”<br>     ],<br>     “guest”: false,<br>     “transactionId”: “\[transactionId]”,<br>     “markRead”: false,<br>     “customFields”: {<br>       “guest”: false<br>     }<br>},<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Close Ticket by Bot**

| Method     | PUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/update/close                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[Id]”,      “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598932282864,<br>     “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “modifiedDate”: 1598932344045,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “accountScreen”: “\[accountScreen]”,<br>     “answer”: false,<br>     “assignedAgent”: “\[AgentId]”,<br>     “assignedDate”: 1598932284198,<br>     “assignedDateText”: “2020-09-01 10:51”,<br>     “assignDuration”: 19,<br>     “greetingStatus”: true,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channel\_key]”,<br>     “channelType”: “\[channelType]”,<br>     “closeInterval”: 59,<br>     “closedBy”: “870d3b8e6513ed82ceedf77319ce12e2”,<br>     “closedDate”: 1598932344043,<br>     “closedDateText”: “2020-09-01 10:51”,<br>     “contactId”: “\[contactId]”,<br>     “createdDateText”: “2020-09-01 10:51”,<br>     “document”: \[<br>       “default”,<br>       “default”<br>     ],<br>     “group”: “Bot”,<br>     “incoming”: false,<br>     “mention”: false,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “notified”: true,<br>     “openDate”: 1598932303746,<br>     “openDateText”: “2020-09-01 10:51”,<br>     “openDuration”: 1,<br>     “parent”: 1,<br>     “pendingDate”: 1598932305361,<br>     “pendingDateText”: “2020-09-01 10:51”,<br>     “pendingDuration”: 38,<br>     “post”: false,<br>     “priority”: false,<br>     “reassigned”: true,<br>     “reassignedText”: “true”,<br>     “redistribute”: false,<br>     “severity”: “High”,<br>     “responseTime”: 20,<br>     “ruleId”: “\[rule\_id]”,<br>     “status”: “Closed”,<br>     “timelineStatus”: “Closed”,<br>     “subject”: “Sambungkan ke CS”,<br>     “supervisor”: “\[supervisorId]”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “toGroup”: “\[group\_id]”,<br>     “transfered”: false,<br>     “transferedDate”: 1598932284198,<br>     “transferedDateText”: “2020-09-01 10:51”,<br>     “transferedFrom”: “Bot”,<br>     “transferedText”: “false”,<br>     “transferedTo”: “870d3b8e6513ed82ceedf77319ce12e2”,<br>     “unassignedDate”: 1598932284198,<br>     “unassignedDateText”: “2020-09-01 10:51”,<br>     “unassignDuration”: 0,<br>     “closureType”: “Resolved”,<br>     “withinSla”: true,<br>     “online”: false,<br>     “transferInterval”: 27,<br>     “customFields”: {<br>       “online\_date”: 1598932282905<br>     }<br>},<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Get Queue Number From Account Id**

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

### **Get File Link**

| Method     | POST                                                                                                                                                                                                          |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                              |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/files                                                                                                                                                           |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                      |
| Body       |                                                                                                                                                                                                               |
| Status     | 200                                                                                                                                                                                                           |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: “null?access\_token=Bearer \[generatedToken]”,<br>     “hasMore”: false,<br>     “nextIndex”: 0,<br>     “prevIndex”: 0,<br>     “totalResults”: 0<br>}</p> |

### **Get File Media**

| Method     | POST                                                                                                                                                                                                          |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                              |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/files/media                                                                                                                                                     |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                      |
| Body       |                                                                                                                                                                                                               |
| Status     | 200                                                                                                                                                                                                           |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: “null?access\_token=Bearer \[generatedToken]”,<br>     “hasMore”: false,<br>     “nextIndex”: 0,<br>     “prevIndex”: 0,<br>     “totalResults”: 0<br>}</p> |

### Get Conversation History by Channel and Social Id

<mark style="color:blue;">`GET`</mark> `/graph/tickets/conversations/{channel}/{socialId}`

This API is provided by 3Dolphins to display customer conversation history based on channel and socialId.&#x20;

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Query Parameters**

<table><thead><tr><th width="173">Name</th><th width="144">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>channel</code></td><td>string</td><td>This unique number is generated when a channel is successfully created in our application.</td></tr><tr><td><code>socialId</code></td><td>string</td><td>An identifier is provided to each customer who interacts with any channel of 3Dolphins. Example:<br>Rois saputra is customer who interacts with agents through the whatsapp and live chat channels, resulting in having a distinct socialId for him.</td></tr><tr><td><code>startDate</code></td><td>date</td><td>If needed to filter the conversation history starting from the date you enter in this field, use the format yyyy-MM-dd</td></tr><tr><td><code>endDate</code></td><td>date</td><td>"If needed to filter the conversation history up to the date you enter in this field, use the format yyyy-MM-dd."</td></tr></tbody></table>

**Request Example**&#x20;

```
GET https://[server]/dolphin/apiv1/graph/tickets/conversations/webchat/[channelId]/[socialId]?count=10
```

{% hint style="info" %}
Only available to get conversation history from channel live chat
{% endhint %}

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "status": "success",
    "data": [
        {
            "id": "id",
            "owner": "[owner_id]",
            "createdDate": 1729152203726,
            "createdBy": "82ab0fd5cfd1e80d1ff97c0cfc9aa9e2",
            "modifiedDate": 1729152203726,
            "modifiedBy": "82ab0fd5cfd1e80d1ff97c0cfc9aa9e2",
            "accountId": "[account_id]",
            "accountName": "WebChat",
            "answer": true,
            "channel": "[channel_id]",
            "channelKey": "[channel_key]",
            "channelType": "webchat",
            "createdDateText": "2024-10-17 15:03",
            "message": "Terima kasih , saat ini Anda kembali dengan Agent Virtual kami {customer_name} - Zulfa Supervisor",
            "messageId": "[message_id]",
            "parent": 0,
            "severity": "Not Set",
            "replyAgent": "Bot",
            "subject": "hai ",
            "ticketNumber": "[ticket_number]",
            "transactionId": "1729152203405",
            "markRead": false,
            "collection": "ticket_history",
            "billable": false,
            "rawTextMessage": "Terima kasih , saat ini Anda kembali dengan Agent Virtual kami {customer_name} - Zulfa Supervisor",
            "ticketAnswer": true,
            "renderActivity": false,
            "internalCallRecipient": false,
            "selected": false,
            "unMerge": false,
            "disableRelatedTicket": false,
            "renderTicketNumber": false,
            "ableToReply": false,
            "unreadMessages": 0,
            "countTaskNotStarted": 0,
            "countTaskOngoing": 0,
            "countTaskOverdue": 0,
            "countTaskDone": 0,
            "prettyUnassignedDate": "",
            "prettyLastReplyDate": "",
            "createdDateRelatedTicketReportFormat": "17-Oct-2024 15:03",
            "prettyDateTimeline": "2024-10-17 15:03:23",
            "dateTimeline": 1729152203726,
            "statusStyle": "",
            "severityStyle": "severity-low",
            "slaStyle": "ticket-ongoing-sla",
            "attachmentExist": false,
            "conferenceParticipantObject": [],
            "callParticipantObject": [],
            "displayConferenceParticipant": false,
            "cleanUpMessage": "Terima kasih , saat ini Anda kembali dengan Agent Virtual kami {customer_name} - Zulfa Supervisor",
            "cleanUpSubject": "hai ",
            "emailRecipient": "",
            "ccListFormatted": "",
            "ccListFormattedCut": "",
            "bccList": [],
            "bccListFormatted": "",
            "overReplySla": false,
            "slaStatusText": "Ongoing",
            "sortedDate": 1729152203726,
            "respondedStr": "No",
            "numOfAttachment": 0,
            "allowCloseTelephonyTicket": false,
            "formattedDate": "17-Oct-2024 15:03",
            "prettyDate": "2024-10-17 15:03:23",
            "friendlyName": "WebChat",
            "mandatoryFormExisted": false,
            "mapFormTags": {},
            "callVariableObject": [],
            "ccList": [],
            "textMessage": "Terima kasih , saat ini Anda kembali dengan Agent Virtual kami {customer_name} - Zulfa Supervisor"
        }
      ]
}
```

{% endtab %}

{% tab title="400" %}

```json
{
    "status": "error",
    "data": null,
    "message": "Resource not found"
}
```

{% endtab %}
{% endtabs %}

This is explanation about component body response field:&#x20;

<table><thead><tr><th width="211">Name</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>This field provides a unique identifier for each indexed document in the database.</td></tr><tr><td><code>owner</code></td><td> It is a unique identifier for the data access control holder in the application, usually populated using the system Id. </td></tr><tr><td><code>createdDate</code></td><td>Indicates the date when the message was created. </td></tr><tr><td><code>createdby</code></td><td>Indicates the identifier of message creator, usually filled in by the system Id. </td></tr><tr><td><code>modifiedDate</code></td><td>To determine the last time update of the message data.</td></tr><tr><td><code>modifiedBy</code></td><td>To show the identifier of the person who made changes to the data.</td></tr><tr><td><code>accountId</code></td><td>It is a unique Id for every user who sent the message to the dashboard. Each channel having a different identifier. </td></tr><tr><td><code>accountName</code></td><td>Indicates the customer who sent the message, or it may include the channel Id when the answer field is set to "true."</td></tr><tr><td><code>answer</code> </td><td>Indicates to flagging each incoming message that enter to the dashboard. If false means incoming messages from customers, while true means reply messages from the system.</td></tr><tr><td><code>channel</code></td><td>It is a unique number for each successfully created channel.</td></tr><tr><td><code>channelKey</code></td><td>This field combines the message id and live chat channel key.</td></tr><tr><td><code>channelType</code></td><td>Indicates the type of channel where that message being created.</td></tr><tr><td><code>createdDateText</code></td><td>It is the result of interpreting the createdDate field into date format.</td></tr><tr><td><code>message</code></td><td>This field is used to store each bubble message.</td></tr><tr><td><code>messageId</code></td><td>It provides each bubble messages with a unique identifier.</td></tr><tr><td><code>parent</code></td><td>Indicates the message as the parent message or the message sent afterwards. The message is parent message if  has value 1.</td></tr><tr><td><code>severity</code></td><td>Indicates the severity level of the ticket in which the message was sent. The severity that is set typically only set on the parent message.</td></tr><tr><td><code>replyAgent</code></td><td>Indicates who replied to this message. If a bot responds to the message, "Bot" will make the filled value.  But, the agent Id  will shown if your agent answers the message. If using automation running will displays "ticket-automation.". </td></tr><tr><td><code>subject</code></td><td>It is the first message sent by the customer. For the email channel will contain the subject of the email.</td></tr><tr><td><code>ticketNumber</code> </td><td>Indicates that each ticket created on the dashboard has its own unique number. </td></tr><tr><td><code>transaction_id</code></td><td>This field is useful for acknowledging that the message sent from the live chat channel has been processed on the system. Typically used as an identifier to track messages that have been successfully sent, failed to send, or read on the live chat side.</td></tr><tr><td><code>markRead</code></td><td>This field to mark messages from WhatsApp channels whether it have been read or not.</td></tr><tr><td><code>collection</code></td><td>Indicates which collection this message belongs to.</td></tr><tr><td><code>billable</code></td><td>Indicates whether this message is billable and will be charged by Meta.</td></tr><tr><td><code>rawTextMessage</code></td><td>This field accommodates the entire message without formatting to limit the maximum character count.</td></tr><tr><td><code>ticketAnswer</code></td><td>It shows flagging for every incoming message into the system (same as the answer field). But if the ticket is a telephony ticket, this field will be the same as the outgoing call field.</td></tr><tr><td><code>renderActivity</code></td><td>This used to display styling of the timeline tab on the customer 360.</td></tr><tr><td><code>internalCallRecipient</code></td><td>Field used only on telephony tickets. To find out whether the ticket is connected to another user when call process is encountered. </td></tr><tr><td><code>selected</code></td><td>Indicate whether the ticket has been marked on the UI. </td></tr><tr><td><code>unMerge</code></td><td>This field indicates whether the ticket merger has been canceled.</td></tr><tr><td><code>disableRelatedTicket</code></td><td>This parameter is used in tasks to indicate if the ticket can only be accessible by those who are responsible for the task.</td></tr><tr><td><code>renderTicketNumber</code></td><td>This field used for showing ticket numbers on the ticket list.</td></tr><tr><td><code>ableToReply</code></td><td>This field is used to determine whether the ticket was answered by an authorized agent.</td></tr><tr><td><code>unreadMessages</code></td><td>This field records the number of unread messages.</td></tr><tr><td><code>countTaskNotStarted</code></td><td>To indicate how many tasks from the ticket are still in the "not started" phase.</td></tr><tr><td><code>countTaskOngoing</code></td><td>To indicate how many tasks from the ticket are still in the "on going" phase.</td></tr><tr><td><code>countTaskOverdue</code></td><td>To indicate how many tasks from the ticket are still in the "overdue" phase.</td></tr><tr><td><code>countTaskDone</code></td><td>To indicate how many tasks from the ticket are still in the "done" phase.</td></tr><tr><td><code>prettyUnassignedDate</code></td><td>It shows the date when the incoming message became an unassigned ticket. </td></tr><tr><td><code>prettyLastReplyDate</code></td><td>It shows the date when the agent last reply to the customer's message. </td></tr><tr><td><code>createdDateRelatedTicketReportFormat</code></td><td>This field to support when download a report. It will provide the created date when generated file.</td></tr><tr><td><code>prettyDateTimeline</code></td><td>It is the result of interpreting the dateTimeline field into date format.</td></tr><tr><td><code>dateTimeline</code></td><td>This field records the ownership exchange for tickets.</td></tr><tr><td><code>statusStyle</code></td><td>This field displays the styling status appears in the ticket. </td></tr><tr><td><code>severityStyle</code></td><td>This field to displays the ticket's style severity.</td></tr><tr><td><code>slaStyle</code></td><td>This field displays the styling of the SLA provided in the ticket.</td></tr><tr><td><code>attachmentExist</code></td><td>Indicates if there are any attachments in the message.</td></tr><tr><td><code>conferenceParticipantObject</code></td><td>This field collects details about each participant conference, such as name, role, presence status, and device used.</td></tr><tr><td><code>callParticipantObject</code></td><td>This field collects details about each participant call, such as name, role, presence status, and device used.</td></tr><tr><td><code>displayConferenceParticipant</code></td><td>This field displays the names of conference attendees if the conferenceParticipantObject field is exist. </td></tr><tr><td><code>cleanUpMessage</code></td><td>This field is identical to the message field that stores each message.</td></tr><tr><td><code>cleanUpSubject</code></td><td>This field use to cleaning up subjects that come from input customer.</td></tr><tr><td><code>emailRecipient</code></td><td>This field to recorded email recipients. </td></tr><tr><td><code>ccListFormated</code></td><td>Only use on the email channel. This field to store list cc participant on the email messages. <br>Ex:<br>1@gmail.com, 2@gmail.com</td></tr><tr><td><code>ccListFormattedCut</code></td><td>Only use on the email channel. This field to store list cc participant with prettier formatted. <br>Ex:<br>1@gmail.com and 2 others</td></tr><tr><td><code>bccList</code></td><td>This field to store the bcc list in an email.</td></tr><tr><td><code>bccListFormatted</code></td><td>Only use on the email channel. This field to store list bcc participant on the email messages. </td></tr><tr><td><code>overReplySla</code></td><td>This field stores if the message response exceeds the specified SLA.</td></tr><tr><td><code>slaStatusText</code></td><td>This field use to display status SLA for the message. </td></tr><tr><td><code>sortedDate</code></td><td>To display dates and times in sorted order based on specific criteria (using format epoch time).</td></tr><tr><td><code>respondedStr</code></td><td>Field to store whether or not the consumer has replied.</td></tr><tr><td><code>numOfAttachment</code></td><td>Indicates how many attachments are contained in the message.</td></tr><tr><td><code>allowCloseTelephonyTicket</code></td><td>This field to determine if the telephony ticket already can be closed or not.</td></tr><tr><td><code>formattedDate</code></td><td>It shows the date of incoming messages entered to the dashboard.</td></tr><tr><td><code>prettyDate</code></td><td> is the result of interpreting the createdDate field into format dd-MM-yyyy HH:mm</td></tr><tr><td><code>friendlyName</code></td><td>This field according to the answer field. It will display the channel name if it is true, and the customer name if it is false.</td></tr><tr><td><code>mandatoryFormExisted</code></td><td> This field to verifies the presence of any required mandatory form from tags on the ticket</td></tr><tr><td><code>mapFormTags</code></td><td>This field to organizes data from tags into a structured and accessible format. </td></tr><tr><td><code>callVariableObject</code></td><td>This field to organize from call variable into a structure and accessible format</td></tr><tr><td><code>ccList</code></td><td>This used to store the cc list on an email.</td></tr><tr><td><code>textMessage</code></td><td>Same as message field. To store each bubble message.</td></tr></tbody></table>

### **Get Conversation History by Channel, Channel Key and Social Id**

| Method     | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/conversations/\[channel]/\[channelkey]/\[social\_id]?count=1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Channel : \[channelType]<br>Channel Key : \[channelKey]<br>Social Id : \[social\_Id]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Response   | <p>{<br>“status”: “success”,<br>“data”: \[<br>  {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598935344537,<br>     “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “modifiedDate”: 1598935344537,<br>     “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “answer”: true,<br>     “botId”: “\[botId]”,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “createdDateText”: “2020-09-01 11:42”,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “parent”: 0,<br>     “severity”: “Not Set”,<br>     “replyAgent”: “Bot”,<br>     “responseTime”: 2,<br>     “responseTimeAgent”: 2,<br>     “subject”: “cyvb”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “transactionId”: “”,<br>     “markRead”: false,<br>     “internalCallRecipient”: false,<br>     “selected”: false,<br>     “unreadMessages”: 0,<br>     “ticketAnswer”: true,<br>     “statusStyle”: “”,<br>     “overReplySla”: false,<br>     “prettyDateTimeline”: “57 minutes ago”,<br>     “dateTimeline”: 1598935344537,<br>     “severityStyle”: “severity-low”,<br>     “slaStyle”: “ticket-ongoing-sla”,<br>     “attachmentExist”: false,<br>     “conferenceParticipantObject”: \[],<br>     “callParticipantObject”: \[],<br>     “callVariableObject”: \[],<br>     “displayConferenceParticipant”: false,<br>     “emailRecipient”: “”,<br>     “ccListFormatted”: “”,<br>     “slaStatusText”: “Ongoing”,<br>     “prettyDate”: “57 minutes ago”,<br>     “friendlyName”: “WebChat”,<br>     “ccList”: \[]<br>   }<br>],<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Get Conversation History by Channel Id and Social Id**

| Method     | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/conversations/channelId/\[channelId]/\[socialId]?count=1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Channel Id : \[channelId]<br>Social Id : \[socialId]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Response   | <p>{<br>“status”: “success”,<br>“data”: \[<br>  {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598935344537,<br>     “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “modifiedDate”: 1598935344537,<br>     “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “answer”: true,<br>     “botId”: “\[botId]”,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “createdDateText”: “2020-09-01 11:42”,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “parent”: 0,<br>     “replyAgent”: “Bot”,<br>     “responseTime”: 2,<br>     “responseTimeAgent”: 2,<br>     “subject”: “cyvb”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “markRead”: false<br>   }<br>],<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Get Sorted Conversation History by Channel and Social Id**

| Method     | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/conversations/\[channel\[/\[socialId]/history?count=1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Channel Id : \[channelId]<br>Social Id : \[socialId]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Response   | <p>{<br>“status”: “success”,<br>“data”: \[<br>  {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598935344537,<br>     “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “modifiedDate”: 1598935344537,<br>     “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,<br>     “accountId”: “\[accountId]”,<br>     “accountName”: “\[accountName]”,<br>     “answer”: true,<br>     “botId”: “\[botId]”,<br>     “channel”: “\[channelId]”,<br>     “channelKey”: “\[channelKey]”,<br>     “channelType”: “\[channelType]”,<br>     “createdDateText”: “2020-09-01 11:42”,<br>     “message”: “\[message]”,<br>     “messageId”: “\[messageId]”,<br>     “parent”: 0,<br>     “severity”: “Not Set”,<br>     “replyAgent”: “Bot”,<br>     “responseTime”: 2,<br>     “responseTimeAgent”: 2,<br>     “subject”: “cyvb”,<br>     “ticketNumber”: “\[ticketNumber]”,<br>     “transactionId”: “”,<br>     “markRead”: false,<br>     “internalCallRecipient”: false,<br>     “selected”: false,<br>     “unreadMessages”: 0,<br>     “ticketAnswer”: true,<br>     “statusStyle”: “”,<br>     “overReplySla”: false,<br>     “prettyDateTimeline”: “1 hour ago”,<br>     “dateTimeline”: 1598935344537,<br>     “severityStyle”: “severity-low”,<br>     “slaStyle”: “ticket-ongoing-sla”,<br>     “attachmentExist”: false,<br>     “conferenceParticipantObject”: \[],<br>     “callParticipantObject”: \[],<br>     “callVariableObject”: \[],<br>     “displayConferenceParticipant”: false,<br>     “emailRecipient”: “”,<br>     “ccListFormatted”: “”,<br>     “slaStatusText”: “Ongoing”,<br>     “prettyDate”: “1 hour ago”,<br>     “friendlyName”: “WebChat”,<br>     “ccList”: \[]<br>   }<br>],<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Do Transform Button Message**

| Method     | POST                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| URL        | http\://\[server]/dolphin/apiv1/graph/tickets/transformButtonMessage                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Header     | Authorization : Bearer \[genaratedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Response   | <p>{<br>     “severity”: “Medium”,<br>     “internalCallRecipient”: false,<br>     “selected”: false,<br>     “unreadMessages”: 0,<br>     “statusStyle”: “”,<br>     “prettyDate”: “”,<br>     “friendlyName”: “”,<br>     “ccList”: \[],<br>     “overReplySla”: false,<br>     “prettyDateTimeline”: “”,<br>     “severityStyle”: “severity-medium”,<br>     “slaStyle”: “ticket-ongoing-sla”,<br>     “attachmentExist”: false,<br>     “conferenceParticipantObject”: \[],<br>     “callParticipantObject”: \[],<br>     “callVariableObject”: \[],<br>     “displayConferenceParticipant”: false,<br>     “emailRecipient”: “”,<br>     “ccListFormatted”: “”,<br>     “slaStatusText”: “Ongoing”<br>}</p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.3dolphins.ai/api/service-api/ticket-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
