Documentation
Installation & Setup
Everything you need to start using the ZeroDrive API.
Requirements
- A ZeroDrive account
- Any HTTP client (cURL, Postman, or language-specific libraries)
- Your API key
Creating Your Account
- Visit drive.futurixai.com
- Click Sign Up or sign in with Google/Microsoft
- Complete the registration process
- You'll receive 5GB of free storage
Generating API Keys
From the Web Dashboard
- Log into your ZeroDrive account
- Click on your profile picture > Settings
- Navigate to Developer > API Keys
- Click Create New API Key
API Key Configuration
When creating an API key, you'll configure:
| Setting | Description |
|---|---|
| Name | A descriptive name for the key (e.g., "Production App") |
| Permissions | Select which endpoints the key can access |
| Expiration | Optional expiration date |
| Rate Limit | Optional custom rate limit |
Permission Categories
Choose permissions based on your use case:
File Management
GET /api/v1/files- List filesPOST /api/v1/files/upload- Upload filesGET /api/v1/files/{fileId}- Get file detailsPATCH /api/v1/files/{fileId}- Update fileDELETE /api/v1/files/{fileId}- Delete fileGET /api/v1/files/{fileId}/download- Download filePUT /api/v1/files/{fileId}/move- Move filePOST /api/v1/files/{fileId}/share- Share file
Folder Management
GET /api/v1/folders- List foldersPOST /api/v1/folders/create- Create folderGET /api/v1/folders/{folderId}- Get folder detailsPATCH /api/v1/folders/{folderId}- Update folderDELETE /api/v1/folders/{folderId}- Delete folderPUT /api/v1/folders/{folderId}/move- Move folderPOST /api/v1/folders/{folderId}/share- Share folder
Workspace Management
GET /api/v1/workspaces- List workspacesPOST /api/v1/workspaces- Create workspaceGET /api/v1/workspaces/{workspaceId}- Get workspacePATCH /api/v1/workspaces/{workspaceId}- Update workspaceDELETE /api/v1/workspaces/{workspaceId}- Delete workspaceGET /api/v1/workspaces/{workspaceId}/members- List membersPOST /api/v1/workspaces/{workspaceId}/members- Invite memberDELETE /api/v1/workspaces/{workspaceId}/members/{memberId}- Remove member
Trash Management
GET /api/v1/trash- List trashed itemsPOST /api/v1/trash/restore- Restore itemsDELETE /api/v1/trash/empty- Empty trash
API Key Format
API keys follow this format:
zd_- ZeroDrive prefixlive_ortest_- Environment indicatorxxx...- 32 character random string
Setting Up Your Development Environment
Environment Variables
Store your API key securely as an environment variable:
JavaScript/TypeScript Setup
Python Setup
Go Setup
Testing Your Setup
Run this quick test to verify everything is configured correctly:
Expected response:
Security Best Practices
-
Never expose API keys in client-side code
- Use server-side proxies for browser applications
-
Use environment variables
- Never hardcode API keys in source code
-
Rotate keys regularly
- Create new keys periodically and revoke old ones
-
Use minimal permissions
- Only grant the permissions your application needs
-
Set expiration dates
- For temporary integrations, set keys to expire
-
Monitor usage
- Check the usage logs in Developer Settings
Managing API Keys
List All Keys
Revoke a Key
Check Usage Statistics
Troubleshooting
"Unauthorized" (401) Error
- Verify your API key is correct
- Check that the key hasn't expired
- Ensure the
Authorizationheader format isBearer YOUR_KEY
"Forbidden" (403) Error
- The API key doesn't have permission for this endpoint
- Update the key's permissions in Developer Settings
"Rate Limited" (429) Error
- You've exceeded the rate limit
- Wait before making more requests
- Consider implementing exponential backoff