---
title: "Resolve an authorized Drive document link without downloading content"
method: GET
path: "/v1/documents/google-drive/files/{fileId}/metadata"
tags: ["Documents"]
---

# Resolve an authorized Drive document link without downloading content

`GET /v1/documents/google-drive/files/{fileId}/metadata`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/documents/google-drive/files/{fileId}/metadata`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Requires organization membership, Workbot and Documents, and the member’s currently authorized Drive connection. Reads recheck provider access.

## Path parameters

- `fileId` string, required

## Response `200`

Document result.

- object
  - `id` string, required
  - `name` string, required
  - `mimeType` string, required
  - `modifiedTime` string, nullable, required
  - `size` number, nullable, required
  - `openUrl` string, nullable, required

## Other responses

- `400`: The file cannot be shown.
- `409`: Reconnect or reload the changed file.

## Changes

- **2026-10-23** `c93387179b31`: 3 breaking, 3 info
  - the response property `modifiedTime` became nullable for the status `200`
  - the response property `openUrl` became nullable for the status `200`
  - the response property `size` became nullable for the status `200`
  - response property `modifiedTime` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - …2 more
- **2026-10-17** `018fac19dc53`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/documents/google-drive/files/:fileId/metadata/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)
