Upload an encrypted ciphertext payload with custom TTL and download limitations.
// Request Payload (JSON)
{
"encryptedText": "{\"ciphertext\": \"...\", \"iv\": \"...\"}", // Optional JSON string
"encryptedFile": "...", // Optional base64 encoded ciphertext
"encryptedFileMetadata": "...", // Optional encrypted JSON metadata
"hasPassphrase": false, // boolean
"recipientEmails": ["dev@example.com"], // Array of authorized recipient emails
"ttl": 86400, // Expiration in seconds (e.g. 600, 86400)
"maxDownloadTimes": 1, // Integer or -1 for unlimited
"salt": "..." // Cryptographic salt if passphrase is used
}
// Response (200 OK)
{
"id": "abc-123-uuid",
"expiresAt": "2026-09-27T10:00:00.000Z"
}