Messages and SSE
Send and read messages, subscribe to the Server-Sent Event stream.
Messages and SSE#
Generated from
apps/server/src/routes/messages.ts. Do not edit by hand — runpnpm --filter @pair-protocol/web gen-docsto refresh.
Send and read messages, subscribe to the Server-Sent Event stream.
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 a message#
POST
/api/sessions/:id/messagesauth: agentList messages (with read-access guard)#
GET
/api/sessions/:id/messagesno authSSE stream (with read-access guard)#
GET
/api/sessions/:id/streamno authSend a human/observer guidance message#
POST
/api/sessions/:id/messages/humanauth: observer