---
title: "Stream a Google Drive file's bytes to host file transport"
method: GET
path: "/v1/direct-downloads/google-workspace/drive-files/{fileId}/content"
tags: ["Direct uploads"]
---

# Stream a Google Drive file's bytes to host file transport

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

## Request

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

Streams stored files as-is (Range: bytes=START-END, up to 8 MiB per request) or exports Google files whole in the requested format. Den does not keep or inspect the bytes. Responses stop at the pull size limit.

## Path parameters

- `fileId` string, required

## Query parameters

- `format` string
- `connectionId` string

## Response `200`

File bytes.

## Other responses

- `206`: Requested byte range.
- `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`: 1 info
  - response property `anyOf[#/components/schemas/InvalidRequestError]/details/items/path/items/` list-of-types was narrowed by removing types `number` from media type `application/json` of response `400`
- **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/content/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)
