File → Download
AI-generatedSummary
Download a file from Google Drive using its file ID with options for authentication via refresh token or bearer token.
Inputs
- Authentication — Choose between using a Refresh Token with auto-refresh or a Bearer Token provided manually.
- File ID (required) — The unique identifier of the file to download from Google Drive.
- Custom Refresh Token — An optional override for the refresh token from credentials if using Refresh Token authentication.
Output shape
A single output item containing an empty JSON object and a binary data property named 'data' with the downloaded file content.
The binary data is prepared from the raw response body as a Buffer under the field 'data'. Errors during download cause a workflow error unless 'Continue On Fail' is enabled.
Examples
Example 1: Download a file by its File ID using Refresh Token authentication with automatic token refreshing.
Set 'Authentication' to 'Refresh Token (Auto-Refresh)', provide the 'File ID' of the target file, optionally override the refresh token under 'Options' if needed.