v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-136454227.5 KB
files

Downloads the content of a file. For more information, see Download and export files. Operations are valid for 24 hours from the time of creation.

post/files/{fileId}/download

Path parameters

fileIdstring required

Required. The ID of the file to download.

Query parameters

mimeTypestring

Optional. The MIME type the file should be downloaded as. This field can only be set when downloading Google Workspace documents. For a list of supported MIME types, see Export MIME types for Google Workspace documents. If not set, a Google Workspace document is downloaded with a default MIME type. The default MIME type might change in the future.

revisionIdstring

Optional. The revision ID of the file to download. This field can only be set when downloading blob files, Google Docs, and Google Sheets. Returns INVALID_ARGUMENT if downloading a specific revision on the file is unsupported.

Response

Successful response