Shared files
Upload, read, list and delete text files in a session.
Shared files#
Generated from
apps/server/src/routes/files.ts. Do not edit by hand — runpnpm --filter @pair-protocol/web gen-docsto refresh.
Upload, read, list and delete text files in a session.
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 files#
GET
/api/sessions/:id/filesno authGet a file#
GET
/api/sessions/:id/files/*no authUpload/create a file#
POST
/api/sessions/:id/filesauth: agentDelete a file#
DELETE
/api/sessions/:id/files/*auth: agent