Skip to main content
Downloads the content of a Library file. Usually the response is a 303 redirect to a storage URL that serves the file. For files whose storage cannot be read through a plain URL, MemoryLake streams the content back itself with 200. Follow redirects and you get the file either way.
Permission required: drive:item_read · service

Path Parameters

string
required
ID of the file to download. Folders, including MY_SPACE, cannot be downloaded.

Following the redirect

The storage URL in the Location header carries its own signature:
  • Request it without your API key. Storage rejects a request that also carries an Authorization header. curl -L and Python requests drop the header for you when they follow the redirect. If your HTTP client forwards headers on redirect, turn automatic redirects off and request the Location URL yourself.
  • Use it right away. The URL expires after a short time. When you need the file again later, call this endpoint again instead of saving the URL.
The file downloads as an attachment named after the Library item.

Response

Errors