/
getChatTranscriptByDate/:ts

getChatTranscriptByDate/:ts

Returns chat transcript before the specified timestamp

HTTP GET livechat/:domain/getChatTranscriptByDate/:ts

Path Variables:

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

domain

yes

string

Unique domain identifier

ts

YES

STRING

timestamp before which to retrieve chat transcripts

Authorization: see Authentication mechanisms

Response:

Type: JSON

Name

Type

Description

Name

Type

Description

result

boolean

If true, the service response was performed correctly

chatTranscripts

object

An object that contains the Transcript Object retrieved

error

null / string

Contains the error description if an error has occurred in the request

Example:

Request

http://<hostname>:<port>/livechat/default/getChatTranscriptByDate/1569248216650

Response

 

{ "result":true, "chatTranscripts":[ { "result":true, "transcript":{ "messages":[ { "data":{ "id":"5331c71f-46e7-4f5c-acbb-d7d0eaf0813c", "messageType":"TEXT", "content":{ "text":"hello", "user":{ "id":"USER_gverde1@acd.enghouse.com", "isAgent":true } }, "ts":1569248116642 }, "_id":"5d88d3951190da27f4fecedb", "room":"CHAT_0addc50f-6866-40d1-bcbd-9da802c3fb9e" }, { "data":{ "id":"a3a15ff2-7de3-4677-bfce-1a3ed26097e3", "messageType":"TEXT", "content":{ "text":"hi", "user":{ "id":"USER_c8e1eb84-60d3-4d69-b10b-96364845023e", "isAgent":false } }, "ts":1569248120015 }, "_id":"5d88d3951190da27f4feceda", "room":"CHAT_0addc50f-6866-40d1-bcbd-9da802c3fb9e" }, { "data":{ "id":"ea10e6ef-e461-4a95-aeeb-22eb1cfe2de5", "messageType":"IMAGE", "ts":1569248133529 }, "_id":"5d88d3951190da27f4feced9", "room":"CHAT_0addc50f-6866-40d1-bcbd-9da802c3fb9e" }, { "data":{ "id":"d0f9d131-29ef-41f0-b2ed-0d90bf769d6c", "messageType":"TEXT", "content":{ "text":"bye", "user":{ "id":"USER_gverde1@acd.enghouse.com", "isAgent":true } }, "ts":1569248144629 }, "_id":"5d88d3951190da27f4feced8", "room":"CHAT_0addc50f-6866-40d1-bcbd-9da802c3fb9e" } ], "_id":"5d88d3951190da27f4feced7", "room":"CHAT_0addc50f-6866-40d1-bcbd-9da802c3fb9e", "__v":0 } }, { "result":true, "transcript":{ "messages":[ { "data":{ "id":"551b9dbc-8de8-46a1-89c4-b617f9d7e98e", "messageType":"TEXT", "content":{ "text":"hello there", "user":{ "id":"USER_c8e1eb84-60d3-4d69-b10b-96364845023e", "isAgent":false } }, "ts":1569248228779 }, "_id":"5d88d3f91190da27f4fecee2", "room":"CHAT_4910ea9a-0e43-4dea-9418-fb913cbf9a64" }, { "data":{ "id":"e34246cf-e057-44e7-ba5b-45cd5be4c55f", "messageType":"TEXT", "content":{ "text":"hello", "user":{ "id":"USER_gverde1@acd.enghouse.com", "isAgent":true } }, "ts":1569248236845 }, "_id":"5d88d3f91190da27f4fecee1", "room":"CHAT_4910ea9a-0e43-4dea-9418-fb913cbf9a64" }, { "data":{ "id":"44c1c289-941a-4680-829f-9ea3757b7b78", "messageType":"TEXT", "content":{ "text":"bye", "user":{ "id":"USER_c8e1eb84-60d3-4d69-b10b-96364845023e", "isAgent":false } }, "ts":1569248242051 }, "_id":"5d88d3f91190da27f4fecee0", "room":"CHAT_4910ea9a-0e43-4dea-9418-fb913cbf9a64" } ], "_id":"5d88d3f91190da27f4fecedf", "room":"CHAT_4910ea9a-0e43-4dea-9418-fb913cbf9a64", "__v":0 } } ], "error":null }

 

 

Related content

endContactByChatID
endContactByChatID
Read with this
getChatTranscriptByTimeRangeAndServiceID
getChatTranscriptByTimeRangeAndServiceID
More like this
getChatTranscriptByUserID
getChatTranscriptByUserID
More like this
getChatTranscriptByChatID
getChatTranscriptByChatID
More like this
getChatTranscriptByNickname
getChatTranscriptByNickname
More like this
getChatTranscriptGeneric
getChatTranscriptGeneric
More like this