Skip to main content
GET
Stream a OneDrive or SharePoint file's bytes to host file transport

Authorizations

Authorization
string
header
required

MCP access token issued by the Den OAuth authorization server, passed as Authorization: Bearer <token>. Used by MCP transports and the direct-upload routes they call.

Query Parameters

driveId
string

The file's driveId from a search, folder or link result. Omit for the member's own OneDrive.

Required string length: 1 - 512
itemId
string
required
Required string length: 1 - 512
format
string

pdf converts a Word, Excel, PowerPoint or other Office file; omit to transfer the stored bytes.

Allowed value: "pdf"
connectionId
string

Selected Microsoft 365 connection; omit for the default. Unavailable selections never fall back to another account.

Pattern: ^(microsoft-365|emc_[A-Za-z0-9]+)$

Response

File bytes.

The response is of type file.