Developer API

Integrate anonymous file sharing directly into your applications, scripts, and build pipelines.

Upload a File

POST
Endpoint: /upload

Upload a file using multipart/form-data. To authenticate your request and get premium features, include your API token in the Authorization header.

Interactive Code Examples

curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  -F "file=@photo.png" \
  http://localhost:8081/upload

JSON Response

{
  "success": true,
  "id": "c393bc3c5a610fbc17316ef352bb88a2",
  "original_name": "photo.png",
  "sanitized_path": "c393bc3c5a610fbc17316ef352bb88a2.png",
  "size": 182741,
  "mime_type": "image/png",
  "access_url": "/static/files/c393bc3c5a610fbc17316ef352bb88a2.png",
  "created_at": "2026-06-15T18:00:00Z"
}

Download / Retrieve a File

GET
Endpoint: /download?id=FILE_ID

Download a file with the given file ID. As soon as this endpoint completes successfully, the file metadata and actual file content are permanently deleted from the system.

Example Request

curl -L http://localhost:8081/download?id=c393bc3c5a610fbc17316ef352bb88a2 --output download.png