---
# System prepended metadata

title: Untitled

---

## Get online users

Description:
Returns a list of users who are on the site.
| method | url
| ------ | ---
| GET    | ${workerUrl}/bots/:botId/rake-live-chat/users/online

| headers       | value
| ------------- | -----
| Authorization | systemConfiguration.hash

Response structure for status code 200:
```javascript
[
  {
    "isNotificationEnabled": Boolean,
    "_id": String,
    "clientId": String,
    "visitsCount": Number,
    "customerEntityId": Number | null,
    "platformConnectorId": String,
    "domain": String,
    "entity": {
      "entityId": Number,
      "firstName": String,
      "lastName": String
    } | {},
    "workspaceId": Number,
    "pagesCount": Number,
    "duration": String.format("0h 02m 18s")
    "pageTitle": String,
    "location": {
      "latitude": Number,
      "longitude": Number
    },
    "address": {
      "country": String,
      "city": String,
      "region": String
    },
    "lastInteraction": String,
    "sessionStatus": Number,
  }
]
```
Response status code:
| status code | response
| ----------- | --------
| 400         | ```{ code: 1101, message: "<${fieldName}> is invalid" }```
| 204         | ```{ message: `workspace with for botId:${botId} does not exist` }```
| | ```{ message: `Bot with id ${botId} does not exist` }```
| | ```{ message: 'There are no users online' }```
| 500         | ```{ message: 'Internal server error' }```
Example:
```javascript
curl --location --request GET 'http://localhost:8080/bots/608/rake-live-chat/users/online?skip=0&limit=100String' \
--header 'Authorization: 0.lo22gendj5i'
```
