Documentation menu
These are pre-release docs from the main branch.

API reference

2 operations in presence. Raw spec: openapi.json.

POST/api/v1/presence/heartbeat

POST /api/presence/heartbeat — keep this viewer's presence alive on {entity, entity_id}; flips the editing flag when it changed. Returns the current roster so the caller can paint it immediately.

Request body

HeartbeatRequest

Responses

StatusDescription
200
401missing or invalid bearer token
422malformed entity/entity_id

Security: bearer

GET/api/v1/tickets/{id}/presence

GET /api/tickets/{id}/presence — current viewers/editors of the ticket, TTL-pruned. The ticket must exist in the caller's org (RLS); the roster is org-keyed, so it can never leak across orgs.

Parameters

NameInTypeRequiredDescription
idpathstringYesTicket id

Responses

StatusDescription
200
401missing or invalid bearer token
404ticket not visible in caller's org

Security: bearer