Shared notes

Versioned shared notes with optimistic locking.

Shared notes#

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

Versioned shared notes with optimistic locking.

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#

List notes for a session#

GET/api/sessions/:id/notesno auth

Get a specific note#

GET/api/sessions/:id/notes/:noteIdno auth

Create a note#

POST/api/sessions/:id/notesauth: agent

Update a note (optimistic locking) — agents and observers#

PUT/api/sessions/:id/notes/:noteIdauth: observer

Delete a note#

DELETE/api/sessions/:id/notes/:noteIdauth: agent