LiquidFiles Documentation
LiquidFiles Documentation

Download File Shares API

Request Info
Info Value
Request URL /shares/_share_id_/folders/_folder_id_/files/_file_id_/download
Request VERB GET
Request Parameters
Parameter Type Description
revision integer (Optional) If you don't want to download the current revision.
Responses
HTTP Status Description
200 The file download was successful. The response body will contain the raw file data.
404 The file was not found.

In addition to the HTTP response, the following HTTP headers will be set for the downloaded file:

HTTP headers for the download response
HTTP header Description
Content-Type The files original (or detected if not provided) Content-Type.
Content-Length The file size in bytes.
Content-Disposition The Content Disposition will contain the filename.

Example Request in JSON

curl -X GET -H "Authorization: Bearer nkpIxMK9ucUUE7FvfNpdAf" \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     https://test.host/shares/project-alpha/folders/goals/files/goals-2017-docx/download