API
Authentifizierung erfolgt per `x-api-key` Header oder `Authorization: Bearer <key>`.
API-Limits: bis zu 8 GB pro Datei, bis zu 10 Tage Ablauf.
API-Key anlegen
Auf `share.deldown.de/auth.html` im Bereich API einen neuen Key erzeugen. Der rohe Key wird nur einmal angezeigt.
Upload
POST /api/v1/shares
x-api-key: DEIN_KEY
Content-Type: multipart/form-data
Form-Felder:
- file Datei
- expiresInDays optional, max 10
- note optional
- maxDownloads optional
- accessCode optional
Beispiel Upload
curl -X POST https://share.deldown.de/api/v1/shares \
-H "x-api-key: DEIN_KEY" \
-F "file=@video.mp4" \
-F "expiresInDays=7" \
-F "note=API Upload"
Metadaten abrufen
GET /api/v1/shares/:slug
Datei herunterladen
GET /api/v1/shares/:slug/download
Optional bei geschützten Dateien:
?accessCode=DEIN_CODE
Beispiel Download
curl -L "https://share.deldown.de/api/v1/shares/SLUG/download" \
-H "x-api-key: DEIN_KEY" \
-o datei.bin