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 · servicePath Parameters
string
required
ID of the file to download. Folders, including
MY_SPACE, cannot be downloaded.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.