# Litterbox — Zapi reference > Upload file ephemeral 1h-72h. Max 1GB. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/uploader/litterbox - Endpoint catalog: https://zpi.web.id/category/uploader - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## Litterbox **Category:** uploader · **Slug:** `litterbox` **Detail page:** https://zpi.web.id/api/uploader/litterbox Upload file ephemeral 1h-72h. Max 1GB. **Tags:** upload, file, ephemeral ### Upload File Upload file ephemeral 1h-72h. Max 1GB. - **Method:** `POST` - **Endpoint:** `https://api.zpi.web.id/v1/uploader:litterbox/upload` **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `file` | file | form | yes | File yang mau di-upload. Max 1GB. | | `duration` | enum(1h|12h|24h|72h) | form | no | Durasi simpan sebelum file auto-dihapus. Default 1h. | **cURL:** ```bash curl -X POST "https://api.zpi.web.id/v1/uploader:litterbox/upload" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "file": "report.pdf", "duration": "1h" }' ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/uploader:litterbox/upload", { method: "POST", headers: { "x-api-key": process.env.ZAPI_KEY, "Content-Type": "application/json" }, body: JSON.stringify({ "file": "report.pdf", "duration": "1h" }) }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.post("https://api.zpi.web.id/v1/uploader:litterbox/upload", headers={"x-api-key": "YOUR_API_KEY"}, json={ "file": "report.pdf", "duration": "1h" }) data = r.json() ``` **Example response:** ```json { "mime": "image/png", "service": "litterbox", "fileName": "bilibili-global-icon-filled-256.png", "fileSize": 32606, "expiresAt": "2026-05-23T10:45:58.885Z", "expiresIn": "1h", "publicUrl": "https://litter.catbox.moe/ykif06.png", "uploadedAt": "2026-05-23T09:45:58.885Z", "oneTimeDownload": false } ``` --- _Generated: 2026-08-02T14:24:32.103Z_