Skip to content

Online agora

GET/api/analytics/online

Auth
Requires a token
X-CommunityId
X-CommunityId Send the X-CommunityId of the community the operation happens in.
Endpoint descriptions come straight from the API specification and are in Portuguese for now. The interface around them is translated.

Owner e admin. Visitantes com sinal nos últimos 2 minutos (o app manda heartbeat a cada 60 s com a aba visível; aba fechada some em até 2 min). Um membro com duas abas conta uma vez. `total`, `members`, `anonymous`, `bySpace[]`. Só Redis; sem Redis, `available: false` e zeros.

Headers

NameTypeDescription
X-CommunityIdoptionalstring (uuid)ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade.

Responses

StatusDescription
200Online agora.
401Token ausente, inválido ou expirado.
403Autenticado, mas sem permissão para esta operação.
500Erro interno do servidor.

curl example

curl -X GET "https://api.memberfy.net/api/analytics/online" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-CommunityId: $COMMUNITY_ID"