1-877-548-3001 Sign in About Contact
Developer

GET

/api/analytics/chat/info

Get chat info

Scope:

client

or

operator

Request Parameters

Query

A

date_from

required

The date to start the search from. Must be in YYYY-MM-DD format

A

date_to

required

The date to end the search at. Must be in YYYY-MM-DD format

include_visitor

optional

Set to true to include the visitor information

Response

Schema

{}

payload

The chat info data

[]

{}

2

accepted_time

The accepted time of the chat with the format of YYYY-MM-DDTHH:MM:SSZ

2

chat_session_detail_id

The unique identifier for the chat session detail

2

chat_session_id

The unique identifier for the chat session

chat_tags

An array of assigned chat tags

[]

{}

2

tag_id

The unique identifier of the tag

A

tag_name

The name of the tag

A

end_time

The end time of the chat with the format of YYYY-MM-DDTHH:MM:SSZ

A

launch_url

The URL the chat started from

A

operator_email

The operators email address

2

operator_id

The unique identifier of the operator

2

requested_department

The request department for the chat

A

requested_department_name

The request department name for the chat

A

sentiment_score

The chat sentiment analysis score

A

start_time

The start time of the chat with the format of YYYY-MM-DDTHH:MM:SSZ

A

terminated_by

The operator that terminated or transferred the chat

visitor

The visitor chat info

{}

A

browser

The visitor's current browser

A

browser_platform

The visitor's current operating system

A

browser_version

The visitor's current browser version

2

chat_state

The visitor's current chat state id. Expect one of the following:

  • 1 (currently waiting for chat to be accepted)
  • 2 (currently waiting for response from operator)
  • 3 (received response from operator)
  • 4 (disconnected)
  • 5 (no chatting activity)
  • 6 (invited to chat by the system)

A

country_code

The visitor's current ISO2 country code

A

current_page

The current page the visitor is on

2

current_status

The visitor's current chat status. Expect one of the following:

  • 0 (visitor is currently chatting)
  • 1 (visitor is currently browsing)
  • 2 (visitor is currently disconnected)
  • 3 (visitor is currently departed)

A

department

The current department the visitor is assigned to

2

department_id

The current department id the visitor is assigned to

A

email

The visitor's email

A

full_name

The visitor's full name

A

hostname

The visitor's current hostname

A

ip_address

The visitor's current IP Address

A

javascript_enabled

If the visitor has javascript enabled or disabled

2

page_visited_count

The number of pages the visitor has viewed

visitor_info

The visitor field info

[]

{}

2

crm

The crm id

name

The name of the field

{}

A

fieldLabel

The field label

A

value

The field value

A

visitor_id

The unique identifier for the visitor of the chat

A

status

The system response status. Will be ok or error

curl

example request

1

curl -H "Authorization: Bearer {{Oauth Token}}"

2

https://developer.livehelpnow.net/api/analytics/chat/info\?date_from\=2021-04-01\&date_to\=2021-04-30

example response

      
        

1

 {

2

   "payload": [{

3

     "accepted_time"

: "2021-04-30T15:13:13",

4

     "chat_session_detail_id"

: 116279026,

5

     "chat_session_id"

: 102317701,

6

     "chat_tags": [{

7

       "tag_id"

: 6,

8

       "tag_name"

: "Test Tag",

9

     }],

10

    "end_time"

: "2021-04-30T15:14:42",

11

    "launch_url"

: "",

12

    "operator_email"

: "john.doe@livehelpnow.com",

13

    "operator_id"

: 1234,

14

    "requested_department"

: 3832,

15

    "requested_department_name"

: "Billing",

16

    "sentiment_score"

: null,

17

    "start_time"

: "2021-04-30T15:06:21",

18

    "terminated_by"

: "Transferred by Jim Hank",

19

    "visitor": {

20

      "browser"

: "Chrome",

21

      "browser_platform"

: "Win10",

22

      "browser_version"

: "89.0",

23

      "chat_state"

: 4,

24

      "country_code"

: "US",

25

      "current_page"

: "",

26

      "current_status"

: 1,

27

      "department"

: "Help Desk",

28

      "department_id"

: 1,

29

      "email"

: "",

30

      "full_name"

: "",

31

      "hostname"

: "DESKTOP-UVDBCH3",

32

      "ip_address"

: "127.0.0.1",

33

      "javascript_enabled"

: "True",

34

      "page_visited_count"

: 1,

35

      "visitor_info": [{

36

        "crm"

: 1234,

37

        "name": {

38

          "fieldLabel"

: "Hello and thank you for your interest in LiveHelpNow. How may we assist you today?"

39

        },

40

        "value"

: "Sales"

41

      }]

42

    },

43

    "visitor_id"

: "ifl214w3edyi4hdpqnynpzf-1-865120516"

44

   }],

45

   "status": "ok"

46

 }