Base URL: https://dropai.zone/api/v1
All API requests require an API key passed in the Authorization header:
Authorization: Bearer dz_your_api_key_here
Generate API keys from your account dashboard.
POST/api/v1/upload.php
curl -X POST https://dropai.zone/api/v1/upload.php \ -H "Authorization: Bearer dz_your_key" \ -F "file=@screenshot.png" \ -F "ttl_hours=24" \ -F "description=Error screenshot"
curl -X POST https://dropai.zone/api/v1/upload.php \
-H "Authorization: Bearer dz_your_key" \
-H "Content-Type: application/json" \
-d '{"file_base64": "iVBORw0...", "filename": "screenshot.png"}'| Field | Type | Required | Description |
|---|---|---|---|
file | binary | Yes* | File data (multipart) |
file_base64 | string | Yes* | Base64-encoded file (JSON) |
filename | string | With base64 | Filename with extension |
ttl_hours | integer | No | Hours until expiry (0 = permanent, Pro only) |
max_views | integer | No | Auto-delete after N views (0 = unlimited) |
visibility | string | No | public, unlisted, or private |
description | string | No | Description (max 500 chars) |
*Either file (multipart) or file_base64 + filename (JSON) required.
{
"success": true,
"data": {
"slug": "aB3xK9mQ",
"url": "https://dropai.zone/d/aB3xK9mQ",
"direct_url": "https://f005.backblazeb2.com/file/...",
"filename": "screenshot.png",
"size_bytes": 245760,
"mime_type": "image/png",
"expires_at": "2026-02-19T15:30:00Z",
"created_at": "2026-02-18T15:30:00Z"
},
"message": "Dropped!"
}GET/api/v1/drop.php?slug={slug}
curl https://dropai.zone/api/v1/drop.php?slug=aB3xK9mQ \ -H "Authorization: Bearer dz_your_key"
Add &include_content=true to include raw text content for text files.
DELETE/api/v1/delete.php?slug={slug}
curl -X DELETE https://dropai.zone/api/v1/delete.php?slug=aB3xK9mQ \ -H "Authorization: Bearer dz_your_key"
Requires full permission on the API key.
GET/api/v1/list.php
curl "https://dropai.zone/api/v1/list.php?limit=10&page=1" \ -H "Authorization: Bearer dz_your_key"
Parameters: page, limit (max 50), type_filter (image, text, document, all).
{
"success": false,
"error": "error_code",
"message": "Human-readable description"
}| Code | HTTP | Description |
|---|---|---|
unauthorized | 401 | Missing or invalid API key |
rate_limited | 429 | Too many requests |
not_found | 404 | Drop not found |
upload_failed | 400 | Upload validation or storage error |
insufficient_permissions | 403 | API key lacks required permission |
| Tier | Uploads/Hour | Uploads/Day | API Calls/Min |
|---|---|---|---|
| Free | 25 | 100 | 30 |
| Pro | 100 | 1,000 | 30 |