📦

File Upload API

Upload any file and get a temporary public URL instantly. Up to 10MB, configurable TTL from 1 hour to 7 days. Perfect for AI agents that need to share files.

API Docs $0.002 / upload

About this tool

Send a base64-encoded file and receive a publicly accessible URL in return. Files are hosted on iteratools.com and automatically deleted after the specified TTL (default 24 hours, max 7 days). Supports any file type: images, PDFs, text files, JSONs, CSVs, and more. Ideal for AI agents that generate files and need to share them via URL.

🧪 Try it live

Quick Start

curl -X POST https://api.iteratools.com/storage/upload \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "file": "SGVsbG8gV29ybGQh", "filename": "hello.txt", "content_type": "text/plain", "ttl_hours": 24 }'

Response

{ "success": true, "url": "https://iteratools.com/uploads/uuid/hello.txt", "file_id": "a1b2c3d4-...", "filename": "hello.txt", "content_type": "text/plain", "size_bytes": 11, "expires_at": "2026-03-25T17:00:00.000Z" }

Request Parameters

ParameterTypeDescription
filestring (base64)Required. Base64-encoded file content (or data URL)
filenamestringRequired. Name of the file (e.g. image.png)
content_typestringRequired. MIME type (e.g. image/png, application/pdf)
ttl_hoursintegerOptional. Hours until expiry (1-168, default 24)

Details

EndpointPOST /storage/upload
Price$0.002 / upload
Max file size10MB
TTL range1 hour to 168 hours (7 days)
AuthBearer token or x402 micropayment
Base URLhttps://api.iteratools.com
Full Documentation Browse All Tools