HTTP API
API reference
The API covers the same core actions as the dashboard: list files, upload content, manage folders, create shares, and download files or zip archives.
The API covers the same core actions as the dashboard: list files, upload content, manage folders, create shares, and download files or zip archives.
curl -X POST http://nathanielstam.com/api/auth/token \
-H "Content-Type: application/json" \
-d '{"username":"your-user","password":"your-password","label":"agent"}'curl http://nathanielstam.com/api/files?path=folder/subfolder \ -H "Authorization: Bearer <token>"
curl -X POST http://nathanielstam.com/api/files/upload \ -H "Authorization: Bearer <token>" \ -F "path=uploads" \ -F "[email protected]" \ -F "[email protected]"
For folder uploads, send matching `relativePaths[]` values for each multipart file.
curl -L "http://nathanielstam.com/api/files/download?path=reports/annual.pdf" \ -H "Authorization: Bearer <token>" \ -o annual.pdf
If the requested path is a folder, the response is a zip archive.
POST /api/folders
{"path":"projects","name":"drafts"}POST /api/files/move
{"source":"drafts/notes.txt","destination":"archive"}DELETE /api/files
{"path":"archive/notes.txt"}curl -X POST http://nathanielstam.com/api/shares \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"path":"projects/spec.md"}'curl http://nathanielstam.com/api/public/shares/TOKEN
Replace `TOKEN` with the real share token. Add `?path=subfolder/file.txt` on the public download endpoint for nested items inside a shared folder.