Back to Tool
📤

File Uploader API

Upload files and get temporary shareable links (7 days)

Endpoint

POST/api/v1/file-uploader

Authentication

Include your API key in the request header:

X-API-Key: your_api_key_here

Get your API key from the Dashboard

Request Body

Content-Type: multipart/form-data

FieldTypeRequiredDescription
filefileYesThe file to upload (max 100MB)
metadatastringNoJSON string with additional metadata

Response

FieldTypeDescription
successbooleanWhether the upload was successful
upload.uploadIdstringUnique identifier for the upload
upload.fileNamestringStored file name
upload.originalNamestringOriginal file name
upload.mimeTypestringMIME type of the file
upload.sizenumberFile size in bytes
upload.downloadUrlstringDirect download URL
upload.downloadUrlEncodedstringURL-encoded download URL (use this for sharing)
upload.providerstringStorage provider used
upload.expiresAtstringISO 8601 date when the file expires

Code Examples

# Upload a file
curl -X POST https://tools.shubhambadgujar.com/api/v1/file-uploader \
  -H "X-API-Key: your_api_key" \
  -F "file=@/path/to/document.pdf"

# Upload with metadata
curl -X POST https://tools.shubhambadgujar.com/api/v1/file-uploader \
  -H "X-API-Key: your_api_key" \
  -F "file=@/path/to/image.png" \
  -F 'metadata={"source": "screenshot", "project": "my-app"}'

Pricing

First 50 free, then $0.01 per call

Get API Key

Rate Limits

  • • 100 requests per minute
  • • 10,000 requests per day
  • • Max request size: 10MB

Need Help?

Contact us at support@shubhambadgujar.com