Visitor History
  • 28 Jul 2022
  • 6 Minutes to read
  • Dark
    Light

Visitor History

  • Dark
    Light

Article summary

Visitor History

Visitor History JSON Format

Visitor History is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idintegerId of the visitor history.
sessionIdguidId of the session.
timedatetimeTime of the visitor history.
typestringAllowed values are "none", "chat", "offlineMessage", "chatOrOfflineMessage", "navigation", "chatOrNavigation", "offlineMessageOrNavigation", "chatOrOfflineMessageOrNavigation".
namestringName of the visitor.
emailstringEmail of the visitor.
departmentIdguidId of the department.
summarystringSummary of the visitor history.
ssoUserIdstringId of the SSO user.
departmentNamestringName of the department.
agentsNamestringName of agents.
categoryiesNamestringName of categories.
autoInvitationIdguidId of the auto invitation.
autoInvitationNamestringName of the auto invitation.
ipstringIP of the visitor history.
citystringCity of the visitor history.
statestringState of the visitor history.
countrystringCountry of the visitor history.
zipCodestringZip code of the visitor history.
customVariablesstringCustom variables of the visitor history.
campaignIdguidId of the campaign.
campaignNamestringName of the campaign.
refererUrlstringReferrer URL of the visitor history.
agentIdguidId of the agent.

Search Visitor Histories

GET livechat/visitorHistory:Search

  • Parameters:

NameTypeinRequiredDescription
pageSizeintegerquerynoPage size.
includestringquerynoAllowed values are "contactIdentity", "chatAgent", "chatWrapupCategory", "department".
visitorIdguidquerynoId of the visitor.
pageIndexintegerquerynoPage index.
  • Response:

An array of Visitor History

  • Example

Sample Request:

curl https://api11.comm100.io/v4/livechat/visitorHistory:Search \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "total": 4,
  "pageCount": 1,
  "list": [
      {
          "categoriesName": "",
          "autoInvitationId": "00000000-0000-0000-0000-000000000000",
          "campaignId": "00000000-0000-0000-0000-000000000000",
          "messages": [
              {
                  "chatAction": "agentAcceptChat",
                  "message": "Agent may1 may has joined the chat.",
                  "senderType": "system",
                  "senderName": "",
                  "time": "2021-04-27T08:52:05Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentEndChat",
                  "message": "Agent may1 may has left the chat.",
                  "senderType": "agent",
                  "senderName": "",
                  "time": "2021-04-27T08:59:31Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "systemEndChat",
                  "message": "The chat is ended.",
                  "senderType": "system",
                  "senderName": "",
                  "time": "2021-04-27T08:59:31Z",
                  "translatedMessage": "",
                  "attachment": ""
              }
          ],
          "wrapupCategoryGroups": [],
          "sessionId": "00000000-0000-0000-0000-000000000000",
          "type": "chat",
          "time": "2021-04-27T08:52:04.88Z",
          "name": "1",
          "email": "1@1.com",
          "departmentId": "00000000-0000-0000-0000-000000000000",
          "summary": "[{\"chatAction\":104,\"message\":\"Agent may1 may has joined the chat.\",\"senderType\":2,\"senderName\":\"\",\"time\":\"2021-04-27T08:52:05Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":106,\"message\":\"Agent may1 may has left the chat.\",\"senderType\":1,\"senderName\":\"\",\"time\":\"2021-04-27T08:59:31Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":0,\"message\":\"The chat is ended.\",\"senderType\":2,\"senderName\":\"\",\"time\":\"2021-04-27T08:59:31Z\",\"translatedMessage\":\"\",\"attachment\":\"\"}]",
          "visitorId": "e11203f5-1d97-4c48-8fc2-fc6257d4e13b",
          "contactIdentityId": "00000000-0000-0000-0000-000000000000",
          "agentId": "00000000-0000-0000-0000-000000000000",
          "botId": "00000000-0000-0000-0000-000000000000",
          "id": 4878
      },
      {
          "categoriesName": "",
          "autoInvitationId": "00000000-0000-0000-0000-000000000000",
          "campaignId": "00000000-0000-0000-0000-000000000000",
          "messages": [
              {
                  "chatAction": "agentAcceptChat",
                  "message": "Agent may1 may has joined the chat.",
                  "senderType": "system",
                  "senderName": "",
                  "time": "2021-04-27T08:50:34Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentEndChat",
                  "message": "Agent may1 may has left the chat.",
                  "senderType": "agent",
                  "senderName": "",
                  "time": "2021-04-27T08:50:52Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "systemEndChat",
                  "message": "The chat is ended.",
                  "senderType": "system",
                  "senderName": "",
                  "time": "2021-04-27T08:50:52Z",
                  "translatedMessage": "",
                  "attachment": ""
              }
          ],
          "wrapupCategoryGroups": [],
          "sessionId": "00000000-0000-0000-0000-000000000000",
          "type": "chat",
          "time": "2021-04-27T08:50:33.8633333Z",
          "name": "1",
          "email": "1@1.com",
          "departmentId": "00000000-0000-0000-0000-000000000000",
          "summary": "[{\"chatAction\":104,\"message\":\"Agent may1 may has joined the chat.\",\"senderType\":2,\"senderName\":\"\",\"time\":\"2021-04-27T08:50:34Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":106,\"message\":\"Agent may1 may has left the chat.\",\"senderType\":1,\"senderName\":\"\",\"time\":\"2021-04-27T08:50:52Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":0,\"message\":\"The chat is ended.\",\"senderType\":2,\"senderName\":\"\",\"time\":\"2021-04-27T08:50:52Z\",\"translatedMessage\":\"\",\"attachment\":\"\"}]",
          "visitorId": "e11203f5-1d97-4c48-8fc2-fc6257d4e13b",
          "contactIdentityId": "00000000-0000-0000-0000-000000000000",
          "agentId": "00000000-0000-0000-0000-000000000000",
          "botId": "00000000-0000-0000-0000-000000000000",
          "id": 4879
      },
      {
          "categoriesName": "",
          "autoInvitationId": "00000000-0000-0000-0000-000000000000",
          "campaignId": "00000000-0000-0000-0000-000000000000",
          "messages": [
              {
                  "chatAction": "agentAcceptChat",
                  "message": "Agent may1 may has joined the chat.",
                  "senderType": "system",
                  "senderName": "",
                  "time": "2021-04-27T08:36:28Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "visitorAddTextMessage",
                  "message": "12312",
                  "senderType": "visitor",
                  "senderName": "1",
                  "time": "2021-04-27T08:36:34Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "visitorAddTextMessage",
                  "message": "3123",
                  "senderType": "visitor",
                  "senderName": "1",
                  "time": "2021-04-27T08:36:35Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "visitorAddTextMessage",
                  "message": "1",
                  "senderType": "visitor",
                  "senderName": "1",
                  "time": "2021-04-27T08:36:35Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "visitorAddTextMessage",
                  "message": "2",
                  "senderType": "visitor",
                  "senderName": "1",
                  "time": "2021-04-27T08:36:35Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "visitorAddTextMessage",
                  "message": "3",
                  "senderType": "visitor",
                  "senderName": "1",
                  "time": "2021-04-27T08:36:35Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendText",
                  "message": "1123",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:36:48Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendText",
                  "message": "1",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:36:48Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendText",
                  "message": "3",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:36:49Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendText",
                  "message": "12",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:36:49Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendText",
                  "message": "312",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:36:49Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendNoteText",
                  "message": "123",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:36:52Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendNoteText",
                  "message": "123",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:36:52Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendNoteText",
                  "message": "213",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:36:53Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendText",
                  "message": "123",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:37:00Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendNoteFile",
                  "message": "Agent may1 may has sent a file: Chats_20210305 (3).csv",
                  "senderType": "agent",
                  "senderName": "https://api11.comm100.io/FileService/v1/files/O3A-0OGU4YfeDSfxx18KSW47USwMn320HQE7jYN15mq0HfqkyAW3_n-JR1FWRhJjoUqXD2arP7osQvkWOBklHguXo5B867K7Mgi9u-Aqn3fW7GoouxmtGezbRHQu4Y8g4iazi-JVtVnBip_KPLdijL3iNmA_lCvn57ClwTsnQWfQ?Chats_20210305 (3).csv?may1 may",
                  "time": "2021-04-27T08:37:01Z",
                  "translatedMessage": "",
                  "attachment": "O3A-0OGU4YfeDSfxx18KSW47USwMn320HQE7jYN15mq0HfqkyAW3_n-JR1FWRhJjoUqXD2arP7osQvkWOBklHguXo5B867K7Mgi9u-Aqn3fW7GoouxmtGezbRHQu4Y8g4iazi-JVtVnBip_KPLdijL3iNmA_lCvn57ClwTsnQWfQ"
              },
              {
                  "chatAction": "agentSendText",
                  "message": "123",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:37:01Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendText",
                  "message": "123",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:37:02Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentEndChat",
                  "message": "Agent may1 may has left the chat.",
                  "senderType": "agent",
                  "senderName": "",
                  "time": "2021-04-27T08:37:06Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "systemEndChat",
                  "message": "The chat is ended.",
                  "senderType": "system",
                  "senderName": "",
                  "time": "2021-04-27T08:37:06Z",
                  "translatedMessage": "",
                  "attachment": ""
              }
          ],
          "wrapupCategoryGroups": [],
          "sessionId": "00000000-0000-0000-0000-000000000000",
          "type": "chat",
          "time": "2021-04-27T08:36:27.8333333Z",
          "name": "1",
          "email": "1@1.com",
          "departmentId": "00000000-0000-0000-0000-000000000000",
          "summary": "[{\"chatAction\":104,\"message\":\"Agent may1 may has joined the chat.\",\"senderType\":2,\"senderName\":\"\",\"time\":\"2021-04-27T08:36:28Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":50,\"message\":\"12312\",\"senderType\":0,\"senderName\":\"1\",\"time\":\"2021-04-27T08:36:34Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":50,\"message\":\"3123\",\"senderType\":0,\"senderName\":\"1\",\"time\":\"2021-04-27T08:36:35Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":50,\"message\":\"1\",\"senderType\":0,\"senderName\":\"1\",\"time\":\"2021-04-27T08:36:35Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":50,\"message\":\"2\",\"senderType\":0,\"senderName\":\"1\",\"time\":\"2021-04-27T08:36:35Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":50,\"message\":\"3\",\"senderType\":0,\"senderName\":\"1\",\"time\":\"2021-04-27T08:36:35Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":102,\"message\":\"1123\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:36:48Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":102,\"message\":\"1\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:36:48Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":102,\"message\":\"3\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:36:49Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":102,\"message\":\"12\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:36:49Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":102,\"message\":\"312\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:36:49Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":172,\"message\":\"123\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:36:52Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":172,\"message\":\"123\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:36:52Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":172,\"message\":\"213\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:36:53Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":102,\"message\":\"123\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:37:00Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":173,\"message\":\"Agent may1 may has sent a file: Chats_20210305 (3).csv\",\"senderType\":1,\"senderName\":\"https://api11.comm100.io/FileService/v1/files/O3A-0OGU4YfeDSfxx18KSW47USwMn320HQE7jYN15mq0HfqkyAW3_n-JR1FWRhJjoUqXD2arP7osQvkWOBklHguXo5B867K7Mgi9u-Aqn3fW7GoouxmtGezbRHQu4Y8g4iazi-JVtVnBip_KPLdijL3iNmA_lCvn57ClwTsnQWfQ?Chats_20210305 (3).csv?may1 may\",\"time\":\"2021-04-27T08:37:01Z\",\"translatedMessage\":\"\",\"attachment\":\"O3A-0OGU4YfeDSfxx18KSW47USwMn320HQE7jYN15mq0HfqkyAW3_n-JR1FWRhJjoUqXD2arP7osQvkWOBklHguXo5B867K7Mgi9u-Aqn3fW7GoouxmtGezbRHQu4Y8g4iazi-JVtVnBip_KPLdijL3iNmA_lCvn57ClwTsnQWfQ\"},{\"chatAction\":102,\"message\":\"123\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:37:01Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":102,\"message\":\"123\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:37:02Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":106,\"message\":\"Agent may1 may has left the chat.\",\"senderType\":1,\"senderName\":\"\",\"time\":\"2021-04-27T08:37:06Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":0,\"message\":\"The chat is ended.\",\"senderType\":2,\"senderName\":\"\",\"time\":\"2021-04-27T08:37:06Z\",\"translatedMessage\":\"\",\"attachment\":\"\"}]",
          "visitorId": "e11203f5-1d97-4c48-8fc2-fc6257d4e13b",
          "contactIdentityId": "00000000-0000-0000-0000-000000000000",
          "agentId": "00000000-0000-0000-0000-000000000000",
          "botId": "00000000-0000-0000-0000-000000000000",
          "id": 4877
      },
      {
          "categoriesName": "",
          "autoInvitationId": "00000000-0000-0000-0000-000000000000",
          "campaignId": "00000000-0000-0000-0000-000000000000",
          "messages": [
              {
                  "chatAction": "agentAcceptChat",
                  "message": "Agent may1 may has joined the chat.",
                  "senderType": "system",
                  "senderName": "",
                  "time": "2021-04-27T07:50:29Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "visitorAddTextMessage",
                  "message": "13",
                  "senderType": "visitor",
                  "senderName": "1",
                  "time": "2021-04-27T08:00:15Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendText",
                  "message": "123",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:00:21Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendText",
                  "message": "1223",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:00:23Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendNoteText",
                  "message": "hello",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:01:01Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendNoteText",
                  "message": "hello",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:01:03Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendText",
                  "message": "12321",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:01:12Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentSendNoteFile",
                  "message": "Agent may1 may has sent a file: Chats_20210305 (5).csv",
                  "senderType": "agent",
                  "senderName": "https://api11.comm100.io/FileService/v1/files/H7UXY7FigsxUUInQBoKTqn4QYq9yanARl5jD2iZzSD-ZZQm_A4X_QhFkvatVYg9ljsmPfllZ6LAF0JkxfJoiSAqko0HU35tUkKqTJlmltzUAb2-scyNlY7Z7EvRyJsYpDZIOgscGydXov-X3zJ6vtzB51_fEGdnrEhbrBXwI9pww?Chats_20210305 (5).csv?may1 may",
                  "time": "2021-04-27T08:01:20Z",
                  "translatedMessage": "",
                  "attachment": "H7UXY7FigsxUUInQBoKTqn4QYq9yanARl5jD2iZzSD-ZZQm_A4X_QhFkvatVYg9ljsmPfllZ6LAF0JkxfJoiSAqko0HU35tUkKqTJlmltzUAb2-scyNlY7Z7EvRyJsYpDZIOgscGydXov-X3zJ6vtzB51_fEGdnrEhbrBXwI9pww"
              },
              {
                  "chatAction": "agentSendText",
                  "message": "31232312",
                  "senderType": "agent",
                  "senderName": "may1 may",
                  "time": "2021-04-27T08:01:23Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "agentEndChat",
                  "message": "Agent may1 may has left the chat.",
                  "senderType": "agent",
                  "senderName": "",
                  "time": "2021-04-27T08:01:29Z",
                  "translatedMessage": "",
                  "attachment": ""
              },
              {
                  "chatAction": "systemEndChat",
                  "message": "The chat is ended.",
                  "senderType": "system",
                  "senderName": "",
                  "time": "2021-04-27T08:01:29Z",
                  "translatedMessage": "",
                  "attachment": ""
              }
          ],
          "wrapupCategoryGroups": [],
          "sessionId": "00000000-0000-0000-0000-000000000000",
          "type": "chat",
          "time": "2021-04-27T07:50:28.7533333Z",
          "name": "1",
          "email": "1@1.com",
          "departmentId": "00000000-0000-0000-0000-000000000000",
          "summary": "[{\"chatAction\":104,\"message\":\"Agent may1 may has joined the chat.\",\"senderType\":2,\"senderName\":\"\",\"time\":\"2021-04-27T07:50:29Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":50,\"message\":\"13\",\"senderType\":0,\"senderName\":\"1\",\"time\":\"2021-04-27T08:00:15Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":102,\"message\":\"123\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:00:21Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":102,\"message\":\"1223\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:00:23Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":172,\"message\":\"hello\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:01:01Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":172,\"message\":\"hello\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:01:03Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":102,\"message\":\"12321\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:01:12Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":173,\"message\":\"Agent may1 may has sent a file: Chats_20210305 (5).csv\",\"senderType\":1,\"senderName\":\"https://api11.comm100.io/FileService/v1/files/H7UXY7FigsxUUInQBoKTqn4QYq9yanARl5jD2iZzSD-ZZQm_A4X_QhFkvatVYg9ljsmPfllZ6LAF0JkxfJoiSAqko0HU35tUkKqTJlmltzUAb2-scyNlY7Z7EvRyJsYpDZIOgscGydXov-X3zJ6vtzB51_fEGdnrEhbrBXwI9pww?Chats_20210305 (5).csv?may1 may\",\"time\":\"2021-04-27T08:01:20Z\",\"translatedMessage\":\"\",\"attachment\":\"H7UXY7FigsxUUInQBoKTqn4QYq9yanARl5jD2iZzSD-ZZQm_A4X_QhFkvatVYg9ljsmPfllZ6LAF0JkxfJoiSAqko0HU35tUkKqTJlmltzUAb2-scyNlY7Z7EvRyJsYpDZIOgscGydXov-X3zJ6vtzB51_fEGdnrEhbrBXwI9pww\"},{\"chatAction\":102,\"message\":\"31232312\",\"senderType\":1,\"senderName\":\"may1 may\",\"time\":\"2021-04-27T08:01:23Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":106,\"message\":\"Agent may1 may has left the chat.\",\"senderType\":1,\"senderName\":\"\",\"time\":\"2021-04-27T08:01:29Z\",\"translatedMessage\":\"\",\"attachment\":\"\"},{\"chatAction\":0,\"message\":\"The chat is ended.\",\"senderType\":2,\"senderName\":\"\",\"time\":\"2021-04-27T08:01:29Z\",\"translatedMessage\":\"\",\"attachment\":\"\"}]",
          "visitorId": "e11203f5-1d97-4c48-8fc2-fc6257d4e13b",
          "contactIdentityId": "00000000-0000-0000-0000-000000000000",
          "agentId": "00000000-0000-0000-0000-000000000000",
          "botId": "00000000-0000-0000-0000-000000000000",
          "id": 4875
      }
  ],
  "pageIndex": 1,
  "pageSize": 10
} 

Delete Visitor History

DELETE livechat/visitorHistory

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/livechat/visitorHistory \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -D '[{"id":4875,"type":"chat"}]' 

Response:

HTTP/1.1 200 OK


Was this article helpful?