Skip to Content
Docs
APIπŸ§ͺ REST EndpointsNotifications

POST /api/presence

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.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
closing?boolean

The tab is closing; forget it

conversation_id?string

The conversation the tab shows, or null

tab_id*string

The tab's own random id (1-64 of A-Z a-z 0-9 _ . : -)

visible*boolean

Whether the tab is visible

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/presence' \  -H 'Content-Type: application/json' \  -d '{  "tab_id": "string",  "visible": true}'
Example Response200
Empty