Presence and typing

Heartbeats, presence status and typing indicators.

Presence and typing#

Generated from apps/server/src/routes/presence.ts. Do not edit by hand — run pnpm --filter @pair-protocol/web gen-docs to refresh.

Heartbeats, presence status and typing indicators.

All endpoints share the API host https://api.hyperbolic.sh. Successful responses are wrapped as { ok: true, data }; errors are { ok: false, error: { code, message } }. See Errors for the full list.

Endpoints#

Send heartbeat#

POST/api/sessions/:id/presenceauth: agent

Typing indicator (transient — no DB write)#

POST/api/sessions/:id/typingauth: agent

Get presence for a session#

GET/api/sessions/:id/presenceno auth