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):
project:doc_read·instancedrive:item_read·service
Path Parameters
Following the redirect
The storage URL in theLocation header carries its own signature:
- Request it without your API key. Storage rejects a request that also carries an
Authorizationheader.curl -Land Pythonrequestsdrop the header for you when they follow the redirect. If your HTTP client forwards headers on redirect, turn automatic redirects off and request theLocationURL 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.