API Documentation
Integrate SILENT TECH file hosting into your applications
Premium Feature
API access is available for premium and enterprise users.Upgrade your plan or contact sales.
Quick Start
1. Get your API Key
Generate an API key from your dashboard settings.
2. Make your first request
curl -X POST https://silent7.app/api/v1/upload \
-H "X-API-Key: your_api_key_here" \
-F "file=@/path/to/your/file.zip"3. Get your file URL
{
"success": true,
"file": {
"id": "abc123",
"name": "file.zip",
"size": 1024000,
"short_code": "xY7kL9mN",
"url": "https://silent7.app/f/xY7kL9mN",
"direct_url": "https://blob.vercel.storage/..."
}
}Authentication
All API requests require authentication via the X-API-Key header.
curl -H "X-API-Key: your_api_key_here" https://silent7.app/api/v1/accountError Codes
MISSING_API_KEY- No API key providedINVALID_API_KEY- API key is invalidAPI_DISABLED- API access has been disabledACCOUNT_BLOCKED- Account has been blocked
Endpoints
POST
/api/v1/uploadUpload a file to your account
Request
Send a multipart form with a file field.
curl -X POST https://silent7.app/api/v1/upload \
-H "X-API-Key: your_api_key" \
-F "file=@example.pdf"Response
{
"success": true,
"file": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "example.pdf",
"size": 2048576,
"type": "application/pdf",
"short_code": "xY7kL9mN",
"url": "https://silent7.app/f/xY7kL9mN",
"direct_url": "https://blob.vercel.storage/uploads/xY7kL9mN.pdf",
"created_at": "2024-01-15T10:30:00Z"
}
}Error Codes
NO_FILE- No file provided in requestFILE_TOO_LARGE- File exceeds size limitBANDWIDTH_EXCEEDED- Monthly bandwidth limit exceeded
Rate Limits
| Plan | Requests/minute | Uploads/day | Max File Size |
|---|---|---|---|
| Premium | 60 | 500 | 2 GB |
| Enterprise | Unlimited | Unlimited | Unlimited |
Code Examples
// Upload a file using JavaScript/Node.js
const formData = new FormData();
formData.append('file', fileInput.files[0]);
const response = await fetch('https://silent7.app/api/v1/upload', {
method: 'POST',
headers: {
'X-API-Key': 'your_api_key'
},
body: formData
});
const data = await response.json();
console.log('File URL:', data.file.url);Ready to get started?
Upgrade to Premium or Enterprise to unlock API access and integrate file hosting into your applications.