---
title: "Describe a Google Drive file pull for host file transport"
method: GET
path: "/v1/direct-downloads/google-workspace/drive-files/{fileId}"
tags: ["Direct uploads"]
---

# Describe a Google Drive file pull for host file transport

`GET /v1/direct-downloads/google-workspace/drive-files/{fileId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/direct-downloads/google-workspace/drive-files/{fileId}`
- Auth: HTTP bearer

Returns the file's revision, checksum and the exact format and size a pull would save, without downloading content. Hosts then fetch the content route in ranged chunks. Optional connectionId selects a native Google Workspace connection; unavailable selections never fall back to the default.

## Path parameters

- `fileId` string, required

## Query parameters

- `format` string
- `connectionId` string

## Response `200`

Pull plan; no file content.

- GoogleDriveDownloadInfo
  - `ok` true, required
  - `file` object, required
    - `id` string, required
    - `name` string, required
    - `mimeType` string, required
    - `native` boolean, required: Google Docs, Sheets, Slides or Drawings file, pulled as an export.
    - `revision` string, nullable, required: Pass back as baseRevision when replacing this file, so newer Drive changes are never overwritten silently.
    - `md5Checksum` string, nullable, required
    - `size` integer, nullable, required
    - `modifiedTime` string, nullable, required
    - `webViewLink` string, nullable, required
    - `parents` string[], required
  - `download` object, required
    - `format` string, nullable, required
    - `mimeType` string, required
    - `extension` string, nullable, required: Extension the saved file needs, for exports.
    - `size` integer, nullable, required: Exact bytes for stored files; unknown until downloaded for exports.
    - `exported` boolean, required
    - `maxBytes` integer, required

## Other responses

- `400`: Folder, unsupported Google file type or invalid format.
- `401`: Sign in first.
- `403`: Organization policy blocks the selected connection.
- `409`: Connect Google with Drive read access, or the file is in the trash.
- `413`: The file is larger than the pull size limit.
- `502`: Google refused or did not return the file; the message gives Google's reason.

## Changes

- **2026-10-23** `c93387179b31`: 6 breaking, 7 info
  - the response property `download/extension` became nullable for the status `200`
  - the response property `download/format` became nullable for the status `200`
  - the response property `file/md5Checksum` became nullable for the status `200`
  - the response property `file/modifiedTime` became nullable for the status `200`
  - …9 more
- **2026-10-15** `370f072eddd0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/direct-downloads/google-workspace/drive-files/:fileId/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
