Keamanan

Konten Private API

Buat dan akses konten private dengan token

Endpoint Tersedia

POST/api/to-url-private

Buat konten private dengan token akses

Parameter:

filenamestringWajibNama file untuk konten
contentstringWajibKonten teks yang akan disimpan
GET/api/private/{id}

Akses konten private dengan token yang valid

Parameter:

tokenstringWajibToken akses dari response create

Contoh Kode

curl

# Buat Konten Private
curl -X POST "https://upload.ylizidev.tech/api/to-url-private" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "filename": "note.txt",
    "content": "Ini adalah konten private rahasia"
  }'

# Akses Konten  
curl "https://upload.ylizidev.tech/api/private/abc123?token=secret_token"

Format Request

Format JSON

{
  "filename": "secret-note.txt",
  "content": "This is very secret information that should be protected."
}

Format Form Data

Content-Disposition: form-data; name="filename"

secret-note.txt
Content-Disposition: form-data; name="content"

This is very secret information that should be protected.

Format Response

POST /api/to-url-private

{
  "id": "priv_abc123",
  "token": "sk_xyz789secret123",
  "private_link": "https://upload.ylizidev.tech/api/private/priv_abc123?token=sk_xyz789secret123"
}

GET /api/private/{id}

"This is very secret information that should be protected."

Catatan Keamanan

Token hanya ditampilkan sekali saat pembuatan

Simpan token dengan aman - tidak dapat dipulihkan

Konten dienkripsi dan disimpan dengan aman

Akses dihitung dalam rate limit harian