Welcome to the AstraCollab API
The AstraCollab API provides programmatic access to all storage and file management features. Our RESTful API is designed to be simple, powerful, and developer-friendly.Base URL
All API requests should be made to:Authentication
All API endpoints require authentication using API keys. Include your API key in theAuthorization header:
Keep your API key secure and never expose it in client-side code. Use environment variables in production.
Rate Limiting
API requests are rate-limited to ensure fair usage:- Free Plan: 1,000 requests per hour
- Creator Plan: 10,000 requests per hour
- Studio Plan: 50,000 requests per hour
- Production Plan: 100,000 requests per hour
Response Format
All API responses are returned in JSON format with the following structure:Error Handling
The API uses standard HTTP status codes to indicate success or failure:200- Success400- Bad Request401- Unauthorized403- Forbidden404- Not Found429- Rate Limited500- Internal Server Error
SDKs and Libraries
For easier integration, we provide official SDKs:Next.js SDK
React hooks, components, and utilities for Next.js applications.
JavaScript SDK
Pure JavaScript SDK for Node.js and browser environments.
API Endpoints
Files
Manage file uploads, downloads, and metadata.GET /files- List filesPOST /files/upload- Upload a single fileGET /files/{fileId}- Get file detailsDELETE /files/{fileId}- Delete a filePOST /files/multipart-upload-start- Start multipart uploadPOST /files/multipart-upload-complete- Complete multipart upload
Folders
Organize files into folders and subfolders.GET /folders- List foldersPOST /folders- Create a folderDELETE /folders/{folderId}- Delete a folder
API Keys
Manage your API keys and access.GET /keys- List API keysPOST /keys- Create a new API keyDELETE /keys/{keyId}- Revoke an API key
Billing
Monitor usage and billing information.GET /billing- Get billing overviewGET /billing/usage- Get detailed usage statistics
Getting Started
Quickstart Guide
Follow our quickstart guide to make your first API call.
Examples
List Files
Upload a File
Create a Folder
Support
Need help with the API?- Documentation: Browse our comprehensive guides
- SDK Documentation: Use our official SDKs
- Support: Email us at [email protected]
- Community: Join our Discord server