---
title: "Browse, search and list recent OneDrive files"
method: GET
path: "/v1/documents/microsoft-365/files"
tags: ["Documents"]
---

# Browse, search and list recent OneDrive files

`GET /v1/documents/microsoft-365/files`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/documents/microsoft-365/files`
- 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.

## Query parameters

- `view` 'recent' | 'folder'
- `folderId` union
  - 'root'
  - 'shared'
  - string
- `query` string
- `cursor` string

## Response `200`

Document result.

- object
  - `files` object[], required
    - `id` string, required
    - `name` string, required
    - `mimeType` string, required
    - `kind` 'folder' | 'file', required
    - `modifiedTime` string, nullable, required
    - `size` number, nullable, required
    - `openUrl` string, nullable, required
  - `nextCursor` 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/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)
