HASE
API

REST API

Base URL: https://api.hase.web.id

POST
/shares/text
Buat share text.
POST
/shares/file
Init upload file → presigned URL.
POST
/shares/file/complete
Verifikasi object setelah upload.
GET
/shares/:id/meta
Metadata (filename tetap tersembunyi bila locked).
POST
/shares/:id/unlock
Tukar access key → unlock token.
GET
/shares/:id/download
Presigned download URL.
DELETE
/shares/:id
Hapus share pakai delete key.
GET
/admin/stats
Statistik storage & shares.
GET
/admin/shares
Daftar share terbaru.

Contoh

curl -X POST https://api.hase.web.id/shares/text \ -H 'Content-Type: application/json' \ -d '{"text":"hello","expiryHours":24}'