documents/ sind nicht öffentlich lesbar — Vorschau und Download laufen immer über signierte SquadVault-URLs.
Ablauf
1. Presigned Upload-URL anfordern
fileKey ← key, fileUrl ← fileRef. Die API überschreibt fileUrl mit einer privaten Storage-Referenz.
sizeBytes muss exakt der Byte-Länge der Datei aus Schritt 2 entsprechen.
2. Datei hochladen
Content-Type und dieselbe Größe wie in Schritt 1.
3. Dokumenteneintrag erstellen
GET /documents/{documentId}/download bzw. /preview nutzen — fileUrl ist kein öffentlicher HTTP-Link.
Erlaubte Content-Types
application/pdfapplication/mswordapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentapplication/vnd.ms-excelapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheettext/plainimage/jpeg,image/png,image/webp,image/gif
JavaScript-Beispiel
document:create.