Drives are named storage spaces that multiple users can share. Each drive has an owner (the creator), an optional quota limit, and a membership list where each member is assigned a role:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ankit-bista/Final-Project/llms.txt
Use this file to discover all available pages before exploring further.
admin, editor, or viewer. Files and folders exist within drives, and all access checks are enforced per drive.
Every user also has a personal default drive created automatically on first login.
All drive endpoints require an authenticated session. A 401 is returned when the session cookie is absent or expired.
GET /api/drives/me
Lists all drives the authenticated user belongs to, including drives they own and drives they have been invited to.id, name, owner_id, quota_limit_bytes, and the caller’s membership role.
POST /api/drives
Creates a new collaborative drive owned by the authenticated user.Display name for the drive.
Maximum storage allowed for this drive in bytes. Defaults to
0 (unlimited until the admin sets a platform-level cap).GET /api/drives/:driveId/members
Returns the member list for a drive. The caller must be a member of the drive (any role).Numeric ID of the drive.
userId, username, walletAddress, and role.
Errors: 403 ACCESS_DENIED if the caller is not a member, 404 drive not found.
POST /api/drives/:driveId/invite
Invites a user to a drive. The caller must have theadmin role on the drive.
Numeric ID of the drive.
Username or Ethereum wallet address of the user to invite.
Role to assign. One of
admin, editor, or viewer.400 missing identifier, 403 caller lacks admin role, 404 target user not found.
Inviting a user who is already a member updates their role to the value provided.
DELETE /api/drives/:driveId/members/:userId
Removes a member from a drive. The caller must have theadmin role.
Numeric ID of the drive.
Numeric ID of the user to remove.
403 ACCESS_DENIED, 404 member not found.
POST /api/drives/:driveId/quota
Updates the storage quota for a drive. The caller must have theadmin role on the drive.
Numeric ID of the drive.
New quota limit in bytes. Set to
0 to remove the cap.403 ACCESS_DENIED (caller is not a drive admin), 404 drive not found.
GET /api/drives/:driveId/files
Lists files stored in a drive, optionally filtered to a specific folder. The caller must have at leastviewer role.
Numeric ID of the drive.
Restrict results to files in this folder. Omit to list files in the drive root.
GET /files.
GET /api/drives/:driveId/folders
Lists folders within a drive. The caller must have at leastviewer role.
Numeric ID of the drive.
List only folders whose parent is this folder. Omit to list top-level folders.
id, name, parentFolderId, driveId, and createdBy.
POST /api/drives/:driveId/folders
Creates a new folder inside a drive. The caller must have at leasteditor role.
Numeric ID of the drive.
Display name for the folder.
ID of the parent folder. Omit or set to
null to create a top-level folder.403 ACCESS_DENIED (caller lacks editor or admin role), 404 drive not found.