Ticket is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id |
selfIncrementId | Id of the ticket. |
subject |
string | Subject of the ticket. |
originalConversationId |
string | Conversion Id in original channel. |
assigneeId |
guid | Id of agent or chatbot that the ticket is assigned to. |
departmentAssigneeId |
guid | Id of department that the ticket is assigned to. |
channelId |
string | Id of the channel of the first message of the ticket. |
channelAccountId |
guid | Id of the channel account of the first message of the ticket. |
lastMessageId |
guid | Id of the last message of the ticket. |
lastMessageChannelId |
string | Id of the channel of the last message of the ticket. |
lastMessageChannelAccountId |
guid | Id of the channel account of the last message of the ticket. |
contactOrVisitorId |
guid | Id of the contact or visitor that the ticket related to. |
createdById |
guid | Id of role(contact, visitor, chatbot, channelAccount, system, agent) who created the ticket. |
lastRepliedById |
guid | Id of role who last replied the ticket. |
resolvedById |
guid | Id of role resolved the ticket. |
assigneeType |
string | Type of the ticket assignee. Allowed values are "agent", "chatbot". |
contactOrVisitorType |
string | Type of the ticket contact. Allowed values are "contact", "visitor", "chatbot", "channelAccount", "system", "agent", "outreachCampaign". |
status |
string | Status of the ticket. Allowed values are "new", "pendingInternal", "pendingExternal", "onHold", "resolved". |
priority |
string | Priority of the ticket. Allowed values are "urgent", "high", "normal", "low". |
createdByType |
string | Who created the ticket. Allowed values are "contact", "visitor", "chatbot", "channelAccount", "system", "agent", "outreachCampaign". |
lastRepliedByType |
string | Who replied the ticket recently. Allowed values are "contact", "visitor", "chatbot", "channelAccount", "system", "agent", "outreachCampaign". |
resolvedByType |
string | Who the ticket is resolved by. Allowed values are "contact", "visitor", "chatbot", "channelAccount", "system", "agent", "outreachCampaign". |
isReadByAgent |
bool | Whether the ticket is read by any agent or not. |
isReadByContact |
bool | Whether the ticket is read by the contact or not. |
ifHasDraft |
bool | Whether the ticket has draft or not. |
mergedToTargetId |
integer | Id of the ticket that it was merged to. |
totalReplies |
integer | Total number of messages, replied by agents, contacts or visitor. |
createdTime |
datetime | Time when the ticket is created. |
lastUpdatedTime |
timestamp | Last updated time of the ticket. |
lastRepliedTime |
datetime | Last replied time of the ticket. |
lastStatusChangedTime |
datetime | Last status changed time of the ticket. |
resolvedTime |
datetime | Resloved time of the ticket. |
isInRecycleBin |
bool | Whether the ticket is in recyle bin or not. |
reopenedTime |
datetime | Time when the resolved ticket was reopened. |
contactLanguage |
string | |
agentLanguage |
string | |
autoTranslationStatus |
bool | |
responseTimeSpan |
long | Total amount of time the status of the ticket was pending internal. |
replyingAgent |
string | Allowed values are "noReply", "agentOnly", "botOnly", "agentAndBot". |
responseCount |
long | Number of replies. |
resolvedTimeSpan |
long | Total time it took to resolve the ticket. |
firstResponseTimeSpan |
long | Time it took for the agent to send the first response after a ticket is created. |
tags |
tags[] | Reference to Tag. |
draft |
draft | Reference to Draft. |
noteMentions |
noteMentions[] | Reference to NoteMention. |
tagIds |
array | The list of tag which belongs to the ticket. |
NoteMention JSON Format:
Name | Type | Description |
---|---|---|
isReadByAgent |
bool | Whether the mention has been read by agent or not. |
noteId |
guid | Id of the note which the mention belongs to. |
id |
guid | Id of the mention. |
agentId |
guid | Id of the mentioned agent. |
ticketId |
selfIncrementId | Id of the ticket which the note belongs to. |
GET ticketing/tickets
Name | Type | In | Required | Description |
---|---|---|---|---|
tagid |
guid | query | no | Filter by tag id. |
time |
datetime | query | no | Filter by last updated time. |
lastRepliedTime |
datetime | query | no | Filter by last replied time. |
keywords |
string | query | no | Keyword for searching |
viewId |
guid | query | no | Id of view |
contactOrVisitor |
guid | query | no | Id of contact or visitor |
contactOrVisitorType |
string | query | no | Contact or Visitor |
include |
string | query | no | Allowed values are "ticketingTag", "ticketingEventLog", "ticketingDraft", "ticketingMessage", "lastMessage", "assignee", "departmentAssignee", "createdBy", "lastRepliedBy", "contactOrVisitor". |
An array of Ticket
Sample Request:
Response:
HTTP/1.1 200 OK
GET ticketing/tickets/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Allowed values are "ticketingTag", "ticketingEventLog", "ticketingDraft", "ticketingMessage", "lastMessage", "assignee", "departmentAssignee", "createdBy", "lastRepliedBy", "contactOrVisitor". |
Sample Request:
Response:
HTTP/1.1 200 OK
POST ticketing/tickets
Name | Type | In | Required | Description |
---|---|---|---|---|
subject |
string | body | yes | Subject of the ticket. |
originalConversationId |
string | body | no | Conversion Id in original channel. |
assigneeId |
guid | body | no | Id of agent or chatbot that the ticket is assigned to. |
departmentAssigneeId |
guid | body | no | Id of department that the ticket is assigned to. |
channelId |
string | body | yes | Id of the channel of the first message of the ticket. |
channelAccountId |
guid | body | no | Id of the channel account of the first message of the ticket. |
contactOrVisitorId |
guid | body | yes | Id of the contact or visitor that the ticket related to. |
createdById |
guid | body | no | Id of role(contact, visitor, chatbot, channelAccount, system, agent) who created the ticket. |
assigneeType |
string | body | no | Type of the ticket assignee. Allowed values are "agent", "chatbot". |
contactOrVisitorType |
string | body | no | Type of the ticket contact. Allowed values are "contact", "visitor", "chatbot", "channelAccount", "system", "agent", "outreachCampaign". |
status |
string | body | no | Status of the ticket. Allowed values are "new", "pendingInternal", "pendingExternal", "onHold", "resolved". |
priority |
string | body | no | Priority of the ticket. Allowed values are "urgent", "high", "normal", "low". |
createdByType |
string | body | no | Who created the ticket. Allowed values are "contact", "visitor", "chatbot", "channelAccount", "system", "agent", "outreachCampaign". |
contactLanguage |
string | body | no | |
agentLanguage |
string | body | no | |
autoTranslationStatus |
bool | body | no | |
messages |
messages[] | body | no | The list of ticket messages. |
tagIds |
array | body | no | The list of tag which belongs to the ticket. |
Sample Request:
Response:
HTTP/1.1 201 Created
POST ticketing/tickets:previewmessagetranslationfornewtickets
Name | Type | Description |
---|---|---|
translatedText |
string | Message Translation Preview for new tickets. |
Sample Request:
Response:
HTTP/1.1 200 OK
POST ticketing/tickets:unreadCount
Name | Type | In | Required | Description |
---|---|---|---|---|
viewIds |
guid[] | body | no | The list of view id. |
Name | Type | Description |
---|---|---|
allCount |
integer | All unread count. |
unreadCounts |
array | The list of unread count info for each view. |
unreadCounts[].mentionedUnReadCount |
integer | Unread count for mentioned ticket. |
unreadCounts[].mentionedUnReadTicketIds |
selfIncrementId[] | The list of id of the mentioned ticket which is unread. |
unreadCounts[].unreadCount |
integer | Unread count for the view. |
unreadCounts[].unreadTicketIds |
selfIncrementId[] | The list of id of the ticket which is unread. |
unreadCounts[].viewId |
guid | Id of the view. |
Sample Request:
Response:
HTTP/1.1 200 OK
POST ticketing/tickets/{id}:detectvisitorlanguage
Name | Type | Description |
---|---|---|
vistorLanguage |
string | Detected Visitor Language. |
Sample Request:
Response:
HTTP/1.1 200 OK
POST ticketing/tickets/{id}:detectVisitorLanguage
Sample Request:
Response:
HTTP/1.1 200 OK
POST ticketing/tickets/{id}:merge
Name | Type | In | Required | Description |
---|---|---|---|---|
sourceId |
integer | body | yes | Id of the ticket that will be merged. |
No Content
Sample Request:
Response:
HTTP/1.1 200 OK
POST ticketing/tickets/{id}:previewmessagetranslation
Name | Type | Description |
---|---|---|
translatedText |
string | Message Translation Preview. |
Sample Request:
Response:
HTTP/1.1 200 OK
POST ticketing/tickets/{id}:previewMessageTranslation
Sample Request:
Response:
HTTP/1.1 200 OK
POST ticketing/tickets/{id}:previewMessageTranslationForNewTickets
Sample Request:
Response:
HTTP/1.1 200 OK
POST ticketing/tickets/{id}:read
Sample Request:
Response:
HTTP/1.1 200 OK
POST ticketing/tickets/{id}:recycle
No Content
Sample Request:
Response:
HTTP/1.1 200 OK
POST ticketing/tickets/{id}:unread
Sample Request:
Response:
HTTP/1.1 200 OK
PUT ticketing/tickets/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
subject |
string | body | yes | Subject of the ticket. |
originalConversationId |
string | body | no | Conversion Id in original channel. |
assigneeId |
guid | body | no | Id of agent or chatbot that the ticket is assigned to. |
departmentAssigneeId |
guid | body | no | Id of department that the ticket is assigned to. |
channelId |
string | body | yes | Id of the channel of the first message of the ticket. |
channelAccountId |
guid | body | no | Id of the channel account of the first message of the ticket. |
contactOrVisitorId |
guid | body | yes | Id of the contact or visitor that the ticket related to. |
createdById |
guid | body | no | Id of role(contact, visitor, chatbot, channelAccount, system, agent) who created the ticket. |
assigneeType |
string | body | no | Type of the ticket assignee. Allowed values are "agent", "chatbot". |
contactOrVisitorType |
string | body | no | Type of the ticket contact. Allowed values are "contact", "visitor", "chatbot", "channelAccount", "system", "agent", "outreachCampaign". |
status |
string | body | no | Status of the ticket. Allowed values are "new", "pendingInternal", "pendingExternal", "onHold", "resolved". |
priority |
string | body | no | Priority of the ticket. Allowed values are "urgent", "high", "normal", "low". |
createdByType |
string | body | no | Who created the ticket. Allowed values are "contact", "visitor", "chatbot", "channelAccount", "system", "agent", "outreachCampaign". |
isReadByAgent |
bool | body | no | Whether the ticket is read by any agent or not. |
isInRecycleBin |
bool | body | no | Whether the ticket is in recyle bin or not. |
contactLanguage |
string | body | no | |
agentLanguage |
string | body | no | |
autoTranslationStatus |
bool | body | no | |
messages |
messages[] | body | no | The list of ticket messages. |
tagIds |
array | body | no | The list of tag which belongs to the ticket. |
Sample Request:
Response:
HTTP/1.1 200 OK
DELETE ticketing/tickets/{id}
No Content
Sample Request:
Response:
HTTP/1.1 204 No Content