Skip to main content

Get Download URL

Returns a URL for downloading files from your site. Requesting multiple files at once returns a zip archive containing those files.

The response object includes a URL. To download the file(s), send a GET request to that address; the body of the response is the contents of filePaths.

Endpoint

GET https://mysite.files.com/v1.2/getDownloadFileUrl

Replace mysite.files.com with your site address.

Request Parameters

NameData TypeDescription
access_tokenstringRequired. The session key that identifies which user is authenticated. Either an access token returned by the authenticateUser function, or a Files.com user API Key.
filePathsstringRequired. Path or folder to be downloaded. Can be an array of paths, or a single string when downloading one item.
downloadNamestringA name for the archive file when downloading multiple items.
The name is used in the Content-Disposition header of the final download.