Upload a file to a temporary host with short retention.
uploadnot measured/v1/uploader:temp-sh/upload5m cache2 paramschecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("uploader:temp-sh", "upload", {
"file": "photo.jpg",
"filename": "photo.jpg"
});
console.log(data);curl -X POST "https://api.zpi.web.id/v1/uploader:temp-sh/upload" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx" \
-F "file=@/path/to/file.jpg"/v1/uploader:temp-sh/uploadUpload a file via multipart and return the temporary URL.filefilerequiredin formfilenamestringoptionalin formcurl -X POST "https://api.zpi.web.id/v1/uploader:temp-sh/upload" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"ok": true,
"url": "https://temp.sh/pknLa/photo.jpg",
"host": "temp.sh",
"fileName": "photo.jpg",
"fileSize": 67105,
"uploadedAt": "2026-05-27T13:38:45.913Z",
"retentionDays": 3
}