Skip to main content
Downloads the original file a document was imported from: the bytes you uploaded, not the extracted memories. 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. The same file is also available through the Library: pass the document’s drive_item.id, returned by Get Document and List Documents, to Download Item.
Permissions required (both):

Path Parameters

string
required
Workspace ID that owns the project.
string
required
Project the document belongs to.
string
required
Document to download.

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