zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
On this page
  • Playground
  • Code examples
  • Full reference
  • Related APIs
Uploader/Tmpfiles
Logo Tmpfiles

Tmpfiles

Upload file ephemeral 1 jam. Max 100MB.

Endpoints
1
Requests
2
Updated
3 months ago
For LLMs
llms.txt
Endpoint health7 hours ago
  • uploadnot measured
no measurements yetdaily 01:00 WIB

Playground

1 endpoint
POST/v1/uploader:tmpfiles/uploadno cache2 paramschecking key…
Parameters
filefilerequired

File yang mau di-upload. Max 100MB.

expirenumber

Detik sebelum file dihapus (60-172800). Default 3600 (60 menit). Pilihan resmi: 3600 (60m), 21600 (6h), 86400 (24h), 172800 (48h).

·
Response
EXAMPLE
{
  "mime": "image/webp",
  "note": "File auto-dihapus dalam 1m.",
  "service": "tmpfiles",
  "fileName": "cekresi.com.webp",
  "fileSize": 8744,
  "expiresAt": "2026-05-23T10:00:29.062Z",
  "expiresIn": "1m",
  "publicUrl": "https://tmpfiles.org/dl/wdwpgZ8f2FKZ/cekresi.com.webp",
  "browserUrl": "https://tmpfiles.org/wdwpgZ8f2FKZ/cekresi.com.webp",
  "uploadedAt": "2026-05-23T09:59:29.062Z",
  "oneTimeDownload": false
}

Code examples

Upload File
zpi-sdkrecommended
// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";

const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });

const data = await client.run("uploader:tmpfiles", "upload", {
  "file": "image.png",
  "expire": 3600
});
console.log(data);
Full SDK reference →
request.sh
curl -X POST "https://api.zpi.web.id/v1/uploader:tmpfiles/upload" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -F "file=@/path/to/file.jpg"

Full reference

1 endpoint · plain text
POSTUpload File/v1/uploader:tmpfiles/uploadUpload file ephemeral 1 jam. Max 100MB.

Parameters

filefilerequiredin form
File yang mau di-upload. Max 100MB.
expirenumberoptionalin form
Detik sebelum file dihapus (60-172800). Default 3600 (60 menit). Pilihan resmi: 3600 (60m), 21600 (6h), 86400 (24h), 172800 (48h).

Request

curl -X POST "https://api.zpi.web.id/v1/uploader:tmpfiles/upload" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "mime": "image/webp",
  "note": "File auto-dihapus dalam 1m.",
  "service": "tmpfiles",
  "fileName": "cekresi.com.webp",
  "fileSize": 8744,
  "expiresAt": "2026-05-23T10:00:29.062Z",
  "expiresIn": "1m",
  "publicUrl": "https://tmpfiles.org/dl/wdwpgZ8f2FKZ/cekresi.com.webp",
  "browserUrl": "https://tmpfiles.org/wdwpgZ8f2FKZ/cekresi.com.webp",
  "uploadedAt": "2026-05-23T09:59:29.062Z",
  "oneTimeDownload": false
}

Related APIs

More in uploader

Uguu

uploader/uguu

Upload file ephemeral 3 jam. Max 128MB.

21 calls·no cache

Gofile

uploader/gofile

Upload file tanpa batas size. Reset expiry tiap download.

2 calls·no cache

Cutout Image

uploader/cutout

Upload gambar ke S3 presigned URL (3 jam). Khusus image.

2 calls·no cache

Litterbox

uploader/litterbox

Upload file ephemeral 1h-72h. Max 1GB.

1 calls·no cache

Kappa.lol

uploader/kappa-lol

Upload a file and receive a short shareable link.

0 calls·5m cache

Temp.sh

uploader/temp-sh

Upload a file to a temporary host with short retention.

0 calls·5m cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026