Visitor
  • 16 Jun 2022
  • 1 Minute to read
  • Dark
    Light

Visitor

  • Dark
    Light

Article summary

Visitor

Visitor JSON Format

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

NameTypeDescription
idguidId of the visitor.
namestringName of the visitor.
emailstringEmail of the visitor.
numberOfVisitsintegerTotal number of web pages the visitor has viewed on your website.
numberOfChatsintegerTotal number chats visitor has initiated on your website to date.

Get the list of Visitors

GET global/visitors

  • Parameters:

No Parameters

  • Response:

An array of Visitor

  • Example

Sample Request:

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

Response:

HTTP/1.1 200 OK

{
  "visitors": [
      {
          "id": "342fa346-9c32-481f-941a-15cedd21429d",
          "name": "Vincent",
          "email": "Vincent@gmail.com",
          "numberOfVisits": 2,
          "numberOfChats": 1
      }
  ],
  "nextPage": null,
  "previousPage": null,
  "total": 1
} 

Get a single Visitor

GET global/visitors/{id}

  • Parameters:

No Parameters

  • Response:

Visitor

  • Example

Sample Request:

curl https://api11.comm100.io/v4/global/visitors/342fa346-9c32-481f-941a-15cedd21429d \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "id": "342fa346-9c32-481f-941a-15cedd21429d",
  "name": "Vincent",
  "email": "Vincent@gmail.com",
  "numberOfVisits": 2,
  "numberOfChats": 1
} 

Was this article helpful?