Sharing an Encrypted File

View as Markdown

Sharing an Encrypted File

The api/v1/files (Share and Encrypt File) endpoint returns you a short-lived pre-signed URL that you can use to upload your files. The file you upload using this pre-signed URL will only be stored during the encryption phase and will be deleted permanently after. The encryption phase typically takes a few seconds, until the file is permanently deleted.

In order to upload a file using the returned pre-signed URL, send a request as follows:

1curl --request PUT \
2 --upload-file 'FILENAME.EXTENSION' \
3 --url 'https://THE_PRE_SIGNED_URL' \
4 --header 'Content-Type: YOUR_CONTENT_TYPE' \
5 --header 'x-amz-meta-organization-id: ORG_ID' \
6 --header 'x-amz-meta-ttl-hours: 48' \
7 --header 'x-amz-meta-user-id: USER_ID'

You can obtain your organization ID and user ID details from the api/v1/files endpoint.