Web Chat Live Visitors

Returns the visitors on your website right now, the same list as the Live visitors table on the channel’s Overview tab and in Teambox. A visitor shows up while one of your pages with the chat snippet is open, and drops off a short while after they leave.

GET/v2.0/web-chat/channels/{channelId}/live-visitors

Path Parameters

ParameterTypeDescription
channelIdstringThe channel id from List Web Chat Channels

Code Example

curl -X GET "https://api.sendiee.com/v2.0/web-chat/channels/6720b1c09d2b4e0011ab5501/live-visitors" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response — 200 OK

{
  "success": true,
  "data": {
    "channelId": "6720b1c09d2b4e0011ab5501",
    "tracking": true,
    "count": 2,
    "busiest": {
      "count": 9,
      "at": "2026-11-07T06:41:00.000Z"
    },
    "visitors": [
      {
        "id": "wp_q4kd7m2xa5rt3nh6vb2we7cy",
        "visitorId": "wv_m3qk7d2xr5ta6nh4vb2we7cy",
        "name": "Ananya",
        "identityLevel": "verified",
        "page": {
          "path": "/products/maroon-kanchipuram",
          "title": "Maroon Kanchipuram silk"
        },
        "onSiteSeconds": 312,
        "onPageSeconds": 48,
        "country": "IN",
        "device": "phone",
        "source": "instagram",
        "visits": 3,
        "returning": true,
        "inChat": "agent",
        "agentName": "Priya",
        "assignedAgentId": "671e9c0a9d2b4e0011ab3301",
        "conversationId": "6724c2d19d2b4e0011ab7702"
      },
      {
        "id": "wp_z2hd6k3mq7xa4rt5nb6vc2we",
        "visitorId": null,
        "name": null,
        "identityLevel": "anonymous",
        "page": {
          "path": "/",
          "title": "Kesari Loom | Handwoven sarees"
        },
        "onSiteSeconds": 41,
        "onPageSeconds": 41,
        "country": "AE",
        "device": "desktop",
        "source": "google",
        "visits": 1,
        "returning": false,
        "inChat": null,
        "agentName": null,
        "assignedAgentId": null,
        "conversationId": null
      }
    ]
  }
}

Response Fields

ParameterTypeDescription
channelIdstringThe channel
trackingbooleanThe channel's Track live visitors switch. When false, the list is empty
countnumberVisitors on the site now. visitors holds up to 200 of them, most recently active first
busiestobject | null{ count, at }: the most visitors at once today (UTC day), and when. null when nothing was recorded today
visitors[]object[]One row per browser on your site. See Visitor Object

Visitor Object

ParameterTypeDescription
idstringStable id for this browser on your site (wp_…). Use it to tell rows apart between calls
visitorIdstring | nullThe visitor id (wv_…) once this browser has started a chat, else null
namestring | nullThe name the visitor gave or verified, else null
identityLevelstringanonymous, given (typed their details) or verified
page.pathstringThe page they are on, path only (no query string)
page.titlestring | nullThat page's title
onSiteSecondsnumberSeconds since this visit started
onPageSecondsnumberSeconds on the current page
countrystring | nullTwo-letter country code, or null when unknown
devicestringphone, tablet or desktop. iPads may show as desktop
sourcestringHow they found you: google, bing, instagram, facebook, whatsapp, youtube, linkedin, x, email, ads, referral or direct
visitsnumberHow many visits this browser has made. A new visit starts after 30 minutes without activity
returningbooleantrue when they have visited before
inChatstring | nullai or agent when their chat had activity in the last 30 minutes, else null
agentNamestring | nullFirst name of the team member in the chat, when inChat is agent
assignedAgentIdstring | nullThat team member's agent id, when inChat is agent
conversationIdstring | nullTheir web chat conversation, if they have one. Use it with Send Message and the Teambox endpoints

Errors

403 FEATURE_NOT_ENABLED, 404 CHANNEL_NOT_FOUND and 502 UPSTREAM_ERROR, plus the errors every web chat endpoint can return.