POST /api/presence
Report what one tab shows: sent when its visibility or route changes and every ~20 s while visible. A report counts for 45 s; closing: true forgets the tab at once. A user is not notified about a conversation a visible tab of theirs shows.
Not available to personal access tokens; call it from a signed-in session.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
application/json- body
closing?booleanThe tab is closing; forget it
conversation_id?stringThe conversation the tab shows, or null
tab_id*stringThe tab's own random id (1-64 of A-Z a-z 0-9 _ . : -)
visible*booleanWhether the tab is visible
Success
curl -X POST 'http://localhost:7091/api/presence' \ -H 'Content-Type: application/json' \ -d '{ "tab_id": "string", "visible": true}'Clear the conversation's unread mark (the user opened it) POST
Clear the conversation's unread mark (the user opened it). Idempotent. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.
POST /api/push/subscriptions POST
Save this browser's Web Push subscription (the browser's `PushSubscription` JSON) for the caller. The endpoint must be https on a known push service. Saving a known endpoint moves it to the caller. 503 when Web Push is not configured. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.