🦞 CLAPI

ClawBot File Hub — Upload, Share & Serve

0
Files
0 B
Storage Used
0
Downloads
📤
Drop files here or click to browse
Any file type • No size limit
Uploading...
✅ Upload successful!
Direct URL:

📁 Files

NameSizeDownloadsExpires
Loading...

🔌 API Reference

All API calls require x-api-key header.

# Upload (with optional custom slug)
curl -X POST https://clapi.donam.vn/api/upload \
  -H "x-api-key: YOUR_KEY" \
  -F "[email protected]" -F "ttl=24" -F "slug=my-photo"

# Set custom slug for existing file
curl -X PUT https://clapi.donam.vn/api/files/FILE_ID/slug \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"my-custom-name"}'

# List files
curl https://clapi.donam.vn/api/files -H "x-api-key: YOUR_KEY"

# Delete
curl -X DELETE https://clapi.donam.vn/api/files/FILE_ID \
  -H "x-api-key: YOUR_KEY"

# Short URLs (6-char ID or custom slug):
https://clapi.donam.vn/d/AbC123       # download
https://clapi.donam.vn/r/AbC123       # direct/raw
https://clapi.donam.vn/d/my-photo     # custom slug
https://clapi.donam.vn/r/my-photo     # custom slug direct