Store a file for a user
Stores an encrypted file for a user. The file content is supplied as a base64-encoded filedata field. Each file is encrypted with a per-file key (wrapped by the user’s record key) and stored in the configured object-storage backend (local disk, Amazon S3, Google Cloud Storage, or Azure Blob Storage).
If the same content is uploaded again for the same user, the response sets duplicate to true and no new object is written.
Authorizations
API token for authentication
Body
Mode of user identification
login, token, email, phone, custom User identifier corresponding to the mode
Name of the file (1-255 characters)
Base64-encoded file content
MIME type of the file. If omitted, it is auto-detected from the content.
Sliding retention period for the file (e.g., '30d', '1y')
Absolute expiration time for the file (e.g., '90d', '2026-01-01')
Additional metadata for the request