You need the Delete Transcripts permission to delete Offline Messages.
Offline Message is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id |
integer | Id of the offline message. |
sessionId |
guid | Id of the session. |
createdTime |
datetime | Created time of the offline message. |
name |
string | Name of the visitor. |
email |
string | Email of the visitor. |
phone |
string | Phone of the visitor. |
company |
string | Company of the visitor. |
departmentId |
guid | Department of the offline message. |
agentId |
guid | Id of the agent. |
ticketId |
integer | Id of the ticket to which this offline message is attached. |
subject |
string | Subject of the offline message. |
message |
string | Content of the offline message. |
attachmentId |
guid | Id of the attachment. |
requestingPageTitle |
string | Request page title of the offline message. |
requestingPageURL |
string | Request page URL of the offline message. |
source |
string | Allowed values are "chatButton", "autoInvitation", "manualInvitation", "bot", "queue". |
autoInvitationId |
guid | Id of the auto invitation. |
campaignId |
guid | Id of the campaign. |
guid |
guid | Guid of the offline message. |
attachmentFileName |
string | Attachment file name of the offline message. |
visitorId |
guid | Id of the visitor. |
contactIdentityId |
guid | Id of the contact identity. |
GET livechat/offlineMessages/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
id |
int or guid | path | yes | Id of the offline message or Guid of the offline message. |
include |
string | query | no | Available values for Include are: "agent", "autoInvitation", "campaign", "contactIdentity", "department", "offlineMessageFieldResult", "offlineMessageSegmentResult", "session", "visitor". |
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/offlineMessages:search
Name | Type | In | Required | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
filters |
array | body | no | Filter array. Available items are: createdTime, departmentId, agent, campaignId, segmentId.
|
||||||||||||||||||
pageSize |
integer | query | no | Page size. The available value is from 10 to 500, and the default value is 50. | ||||||||||||||||||
include |
string | query | no | Available values for Include are: "agent", "autoInvitation", "campaign", "contactIdentity", "department", "offlineMessageFieldResult", "offlineMessageSegmentResult", "session", "visitor". | ||||||||||||||||||
pageIndex |
integer | query | no | Page index. |
An array of Offline Message
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/offlineMessages/{id}:AttachToTicket
Name | Type | In | Required | Description |
---|---|---|---|---|
targetId |
integer | body | yes | Id of the ticket to which this offline message is attached. |
id |
int | path | yes | Id of the offline message. |
utcOffset |
int | body | yes | UTC Offset of the user. |
dateTimeFormat |
string | body | yes | Datetime format of the user. |
No Content
Sample Request:
Response:
HTTP/1.1 200 OK
PUT livechat/offlineMessages/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
sessionId |
guid | body | no | Id of the session. |
createdTime |
datetime | body | no | Created time of the offline message. |
name |
string | body | no | Name of the visitor. |
email |
string | body | no | Email of the visitor. |
phone |
string | body | no | Phone of the visitor. |
company |
string | body | no | Company of the visitor. |
departmentId |
guid | body | no | Department of the offline message. |
agentId |
guid | body | no | Id of the agent. |
ticketId |
integer | body | no | Id of the ticket to which this offline message is attached. |
subject |
string | body | no | Subject of the offline message. |
message |
string | body | no | Content of the offline message. |
attachmentId |
guid | body | no | Id of the attachment. |
requestingPageTitle |
string | body | no | Request page title of the offline message. |
requestingPageURL |
string | body | no | Request page URL of the offline message. |
source |
string | body | no | Allowed values are "chatButton", "autoInvitation", "manualInvitation", "bot", "queue". |
autoInvitationId |
guid | body | no | Id of the auto invitation. |
campaignId |
guid | body | no | Id of the campaign. |
guid |
guid | body | no | Guid of the offline message. |
attachmentFileName |
string | body | no | Attachment file name of the offline message. |
visitorId |
guid | body | no | Id of the visitor. |
contactIdentityId |
guid | body | no | Id of the contact identity. |
Sample Request:
Response:
HTTP/1.1 200 OK
DELETE livechat/offlineMessages
Name | Type | In | Required | Description |
---|---|---|---|---|
Request body |
json string | body | yes | Id array of the offline messages. |
No Content
Sample Request:
Response:
HTTP/1.1 200 OK
DELETE livechat/offlineMessages/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
id |
int | path | yes | Id of the offline message. |
No Content
Sample Request:
Response:
HTTP/1.1 204 No Content