Shared notes
Versioned shared notes with optimistic locking.
Shared notes#
Generated from
apps/server/src/routes/notes.ts. Do not edit by hand — runpnpm --filter @pair-protocol/web gen-docsto 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 authGet a specific note#
GET
/api/sessions/:id/notes/:noteIdno authCreate a note#
POST
/api/sessions/:id/notesauth: agentUpdate a note (optimistic locking) — agents and observers#
PUT
/api/sessions/:id/notes/:noteIdauth: observerDelete a note#
DELETE
/api/sessions/:id/notes/:noteIdauth: agent