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
}