Ping (foreground heartbeat)

View as Markdown

POST every 60s while the app is foregrounded. Updates last_activity_at to now() and, if the user was offline (previous NULL or >2 minutes stale), fires UserPresenceChanged on tenant.{tenantId}.presence. Returns 204 No Content. Stop pinging when the app is backgrounded; the server flips inactive users offline on its own after ~2 minutes.

Headers

{{tenant_key_name}}stringOptional

Response

Successful response