Skip to main content
GET
/
file-entries
/
download
/
{hash}
# Download a file
curl -O -J https://app.drime.cloud/api/v1/file-entries/download/MzI2MHxwYWRkaQ \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

# -O: Save with original filename
# -J: Use filename from Content-Disposition header
HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Disposition: attachment; filename="photo.jpg"
Content-Length: 2048576

[binary file content]

Overview

Downloads a file by its hash. For folders, the contents are automatically zipped.

Path Parameters

hash
string
required
The file entry hash (e.g., MzI2MHxwYWRkaQ)

Response

Returns the file content with appropriate Content-Type and Content-Disposition headers.
  • For single files: The file is downloaded directly
  • For folders: A ZIP archive is created and downloaded
# Download a file
curl -O -J https://app.drime.cloud/api/v1/file-entries/download/MzI2MHxwYWRkaQ \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

# -O: Save with original filename
# -J: Use filename from Content-Disposition header
HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Disposition: attachment; filename="photo.jpg"
Content-Length: 2048576

[binary file content]
For folders, the response will have Content-Type: application/zip and the filename will end with .zip.