Get connected users
The API endpoint /message/users will return all users connected to all or specific active channels, which means channels that currently have at least one user listening to it.
A channel is considered active if there is at least one client connected to it.
API: Return connected users
POST https://portal.yourdomain.com/message/users
Headers
accept
string
application/json
content-type
string
application/json
Request Body
apiKey
string
the API key for your BF app
channel
string
if set, will only return users connected to this channel
Totals across pods/data centers
To get total connected counts across all pods/data centers, use the /message/allusers endpoint (POST). It returns per-DC counts plus a global _total that sums authenticated and anonymous users:
{
"us-east-1": { "authenticated": 12, "anonymous": 4 },
"eu-west-1": { "authenticated": 7, "anonymous": 2 },
"_total": { "authenticated": 19, "anonymous": 6 }
}Notes:
Keys are grouped by data center (DC) as reported by the server.
_totalis always present and aggregates all DCs/pods.
Last updated
Was this helpful?