---
title: "Read a OneDrive file's details without its content"
method: GET
path: "/v1/documents/microsoft-365/files/{fileId}/metadata"
tags: ["Documents"]
---

# Read a OneDrive file's details without its content

`GET /v1/documents/microsoft-365/files/{fileId}/metadata`

## Request

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

Requires organization membership and Documents, and the member's Microsoft 365 connection with OneDrive read access. Other people's drives and SharePoint need the read-all-files permission. Saves also require Document editing, OneDrive write access (full file access outside the member's own OneDrive) and a matching file version.

## 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`: Unsupported file or edit.
- `409`: Connect Microsoft 365, or reload the changed file.

## Changes

- **2026-10-27** `78491ac9c743`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/documents/microsoft-365/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/8117bc7c5626?raw)
