Skip to main content

Downloading content from storage

Downloading content will allow you to programatically download documents instead of using the console.

Downloading content works by requesting a signed URL and executing a GET request. You can view the full Swagger documentation here.

Presigned URL request

curl --location 'https://storage-api.doclabs.cloud/api/v1/MyBucketName/download?contentPathName=DocumentIWantToDownload.docx' \
--header 'x-api-key: MY_API_KEY'

Presigned URL response

{
"message": "",
"preSignedUrl": "https://myPreSignedURL.com"
}

You can then download the content by executing a GET request against the preSignedUrl.