Skip to main content
GET
/
api
/
v1
/
presence
/
rooms
/
{roomId}
/
users
/
count
Get number of active viewers in a room
curl --request GET \
  --url https://apix.us.amity.co/api/v1/presence/rooms/{roomId}/users/count \
  --header 'Authorization: Bearer <token>'
{
  "count": 123,
  "referenceTimestamp": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

roomId
string
required

The ID of the room

Response

Get room viewers count response

Room viewers count

count
integer
required
referenceTimestamp
string<date-time>
required