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 — run pnpm --filter @pair-protocol/web gen-docs to 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 auth

Get a file#

GET/api/sessions/:id/files/*no auth

Upload/create a file#

POST/api/sessions/:id/filesauth: agent

Delete a file#

DELETE/api/sessions/:id/files/*auth: agent