API
Download a file
The bytes, exactly as stored.
GET/files/{id}/content
Runs the real call on your workspace.
GET /files/{id}/content
The bytes, exactly as stored.
Example
Needs files:read. The answer carries the file’s own Content-Type and name, inline for an image, a PDF or plain text and attachment otherwise, and download=true always asks for attachment.
curl "$OE/files/file_6bb640f5b99e47deb758f1f5/content" -H "$AUTH" -o invoice-0912.pdfHTTP/1.1 200 OKContent-Type: application/pdfContent-Length: 184233Content-Disposition: inline; filename="invoice-0912.pdf"A file whose bytes are gone from storage answers 404, the same as a missing one.
Google Workspace