---
title: "Read file content from user's OneDrive"
method: GET
path: "/api/v1/onedrive/files/{file_id}"
---

# Read file content from user's OneDrive

`GET /api/v1/onedrive/files/{file_id}`

## Request

- Base URL: `https://localhost:3000`
- URL: `https://localhost:3000/api/v1/onedrive/files/{file_id}`
- Auth: OAuth 2 (authorization code, authorization URL `/oauth/authorize`, token URL `/oauth/token`)

AUTHORITATIVE: Read the actual content of a file from the user's OneDrive. Supports Word docs, Excel files, PowerPoint, PDFs, and text files. Use when user asks to 'open my OneDrive file', 'read my document from OneDrive'. **NOTE:** Requires Microsoft authentication via /oauth/microsoft/authorize.

## Path parameters

- `file_id` string, required

## Query parameters

- `page_start` integer
- `page_end` integer
- `search_term` string

## Response `200`

LIVE file content from user's OneDrive

- OneDriveFileContentResponse
  - `user` string
  - `file_id` string
  - `name` string
  - `mimeType` string
  - `content` unknown
  - `_meta` object
    - `source` string
    - `authoritative` boolean

## Other responses

- `401`: Authentication required
- `404`: File not found
- `500`: Internal server error
- `503`: OneDrive not authenticated. User must authenticate at /oauth/microsoft/authorize

---

[API](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api.md) · [All operations](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api/revisions/e25648ba6027?raw)
