Get Download URL
Summary
Returns a URL for downloading files from your site. If you request multiple files at once, you'll receive a zip archive containing those files.
The response object will include a URL. To download the file(s), send a GET
request to that address, and the body of the response will be the contents of filePaths
.
Endpoint
GET https://mysite.files.com/v1.2/getDownloadFileUrl
Replace mysite.files.com with your site address.
Request Parameters
Name | Data Type | Description |
---|---|---|
access_token | string | Required. The session key that identifies which user is authenticated. Either an access token returned by the authenticateUser function, or a a Files.com user API Key. |
filePaths | string | Required. Path or folder to be downloaded. Can be an array of paths or just a single string, if downloading one item. |
downloadName | string | A name for an archive file, if you are downloading multiple items. The name will be used in the Content-Disposition header of the final download. |