Repository navigation
AlphaDrive REST API Reference
Nawed Hossain edited this page Sep 17, 2026
·
3 revisions
AlphaDrive provides a clean, JSON-based REST API for programmatic access, client automation, and integration.
-
Session Cookie:
alphadrive_session=<token>(HTTP-only, SameSite=Lax). -
CSRF Header: For state-changing requests (
POST,DELETE,PUT), include:X-CSRF-Token: <csrf_token>
-
GET /api/meReturns authenticated user details and storage quota. -
POST /api/account/usernameChange personal username ({ "new_username": "..." }). -
POST /api/account/passwordChange password ({ "current_password": "...", "new_password": "..." }). -
POST /api/account/users(Admin only) — Create new user ({ "username": "...", "name": "...", "password": "...", "is_admin": bool }).
-
GET /api/nodes?parent_id=<id>List active files and folders inside a directory. -
GET /api/nodes/trashList items currently in trash. -
GET /api/nodes/{id}Get metadata for a specific item. -
POST /api/nodes/folderCreate a new folder ({ "name": "...", "parent_id": "..." }). -
POST /api/nodes/trashMove items to trash ({ "ids": ["id1", "id2"] }). -
POST /api/nodes/restoreRestore items from trash ({ "ids": ["id1", "id2"] }). -
DELETE /api/nodesPermanently delete items ({ "ids": ["id1", "id2"] }).
-
POST /api/uploadMulti-part file upload (file,parent_id,relative_path). -
GET /api/files/{id}/viewStream file content for browser preview (Supports Range headers). -
GET /api/files/{id}/downloadDownload file attachment. -
GET /api/folders/{id}/downloadDownload folder contents as a streamed ZIP archive.
-
GET /api/nodes/{id}/shareGet active share status for an item. -
POST /api/sharesCreate a public share link ({ "node_id": "...", "custom_slug": "...", "password": "...", "expires_in": "24h" }). -
DELETE /api/shares/{id}Revoke an active public share link. -
GET /s/{slug}Public share web page. -
POST /s/{slug}/unlockUnlock password-protected public share. -
GET /s/{slug}/files/{id}/viewPublic preview stream. -
GET /s/{slug}/files/{id}/downloadPublic file download. -
GET /s/{slug}/downloadPublic folder ZIP stream.
Lightweight. Self-hosted. Yours.
Documentation · GitHub · Releases · Contribute · MIT License
Self-hosted file storage built for simplicity, speed, and control.
© 2026 AlphaDrive contributors. Built for people who want their files to stay theirs.