Storage

Permissions

Configure access control and sharing for Cludz Storage.
Storage Token is different from API Key. Get your Storage Token from Dashboard > Drive > Settings > Storage Token.

Permission System

Cludz Storage uses a hierarchical permission system with three levels of access control. To manage permissions, open your drive and click folder settings that has a icon.

Access Types

Public Access

Folders marked as Public allow anyone to read files without authentication:

# No token required for public resources
curl -X GET "https://storage.cludz.net/storage/{uuid}/public-folder/image.jpg"
Write and delete operations always require authentication, even on public folders.

Private Access

Private folders require authentication and explicit permissions:

PermissionCapabilities
ReadView and download files
WriteUpload and modify files (includes Read)
DeleteRemove files and folders (includes Read)

Guest Permissions

Folders can grant guest access with configurable permissions:

SettingDescription
guest_can_readAllow unauthenticated read
guest_can_writeAllow unauthenticated upload
guest_can_deleteAllow unauthenticated delete

Permission Inheritance

Permissions are inherited from parent folders. If a subfolder doesn't have explicit permissions, it inherits from the nearest parent with defined access.

/storage/{uuid}/
├── public-photos/     ← Public (Read for all)
│   └── events/        ← Inherits Public access
│       └── party.jpg  ← Accessible without token
├── private-docs/      ← Private
│   └── contracts/     ← Inherits Private access

User-Specific Access

Individual users can be granted access to specific folders:

Permission LevelReadWriteDelete
Read
Write
Delete

Quota Owner

Each folder can specify who the uploaded file quota counts against:

SettingDescription
ownerStorage owner's quota
uploaderUploading user's quota

Sharing Status

When listing directories, folders include a sharingStatus field:

{
  "name": "shared-folder",
  "isDirectory": true,
  "sharingStatus": "shared"
}
ValueDescription
"public"Folder is publicly accessible
"shared"Folder has user-specific access
nullPrivate folder (owner only)

Permission Checking

The API checks permissions in this order:

  1. Owner check - Storage owner has full access
  2. Storage token - Valid token grants configured access
  3. Folder permissions - Check folder-level access settings
  4. User access - Check user-specific folder_access entries
  5. Guest access - Check guest permission flags
  6. Parent inheritance - Check parent folders recursively

Error Responses

StatusMessage
401Token required
403Access denied
403No read permission
403No write permission
403No delete permission

Examples

Public Folder Access

// Public read - no token needed
const response = await fetch('https://storage.cludz.net/storage/{uuid}/public/');
const files = await response.json();

Authenticated Access

// Private read - token required
const response = await fetch('https://storage.cludz.net/storage/{uuid}/private/', {
  headers: { 'Token': 'YOUR_STORAGE_TOKEN' }
});

Check Permissions Before Action

// Try to upload, handle permission errors
const response = await fetch('https://storage.cludz.net/storage/{uuid}/folder/', {
  method: 'POST',
  headers: { 'Token': 'YOUR_STORAGE_TOKEN' },
  body: formData
});

if (response.status === 403) {
  console.error('No write permission for this folder');
}
Built with 💖 by Miza • © 2026 - Powered by Nuxt