Base URL
All API requests should be made to your Zipline instance URL:API Endpoints Overview
The Zipline API is organized into several main categories:Authentication
- POST
/api/auth/login- Authenticate with username and password - POST
/api/auth/register- Create a new user account - POST
/api/auth/logout- End the current session - GET
/api/auth/oauth/*- OAuth provider integrations (Discord, GitHub, Google, OIDC)
File Management
- POST
/api/upload- Upload one or more files - POST
/api/upload/partial- Upload file chunks for large files - GET
/api/user/files- List user’s files with pagination and search - GET
/api/user/files/:id- Get file details - PATCH
/api/user/files/:id- Update file metadata - DELETE
/api/user/files/:id- Delete a file
URL Shortening
- POST
/api/user/urls- Create a shortened URL - GET
/api/user/urls- List user’s shortened URLs - GET
/api/user/urls/:id- Get URL details - PATCH
/api/user/urls/:id- Update URL settings - DELETE
/api/user/urls/:id- Delete a shortened URL
User Management
- GET
/api/user- Get current user information - PATCH
/api/user- Update user profile - GET
/api/user/stats- Get user statistics - GET
/api/user/recent- Get recent uploads
Server Management (Admin)
- POST
/api/server/export- Export server data - POST
/api/server/import/v3- Import from Zipline v3 - POST
/api/server/import/v4- Import from Zipline v4 - DELETE
/api/server/clear_temp- Clear temporary files - DELETE
/api/server/clear_zeros- Clear zero-byte files
Health & Monitoring
- GET
/api/healthcheck- Check API and database health - GET
/api/stats- Get server statistics - GET
/api/version- Get Zipline version information
Example Request
Here’s a simple example of uploading a file using curl:Response Format
All API responses are in JSON format (unless specified otherwise with headers). Successful responses include the requested data:Client Libraries
Zipline is compatible with ShareX and other file upload clients. You can also use standard HTTP clients in any programming language:- Node.js: axios, node-fetch, got
- Python: requests, httpx, aiohttp
- Go: net/http, resty
- PHP: Guzzle, cURL
ShareX Configuration
Zipline works seamlessly with ShareX. Configure your custom uploader with:Next Steps
Authentication
Learn how to authenticate API requests
Rate Limits
Understand API rate limiting
Error Codes
Handle API errors properly
Upload Files
Start uploading files