Create Encrypted File Upload
Step 1 of a file share. Reserves an upload slot for exactly ciphertext_size bytes of KNF1 ciphertext and returns a presigned URL. Step 2: PUT the ciphertext to upload_url with exactly upload_headers. Step 3: call POST /api/v1/files/{fileKey}/complete to receive the download URL. The file name and MIME type are encrypted inside the ciphertext and never sent in plaintext.
Authentication
Konfidant API key (kf_live_... or kf_test_...), created by an organization admin in the dashboard.
Request
Exact size in bytes of the KNF1 ciphertext that will be uploaded. Checked against the plan’s file size limit (allowing for KNF1 overhead) and the monthly storage quota.
Lifetime of the share link in hours. Optional; defaults to the maximum allowed by the organization’s plan. Values above the plan maximum are rejected with 400.
Response
Presigned URL for a single PUT of the ciphertext. Do not send your API key to it.
Identifier of the upload; pass it to the complete endpoint.
Headers that must be sent with the PUT, exactly as returned.
Seconds until upload_url expires.
